Skip to content

Commit

Permalink
chore: let's call it API rather than usage
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Dec 26, 2024
1 parent e63c7e5 commit 575503d
Show file tree
Hide file tree
Showing 42 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# usage-before-14.3
# api-before-14.3

This template should help get you started developing with Vue 3 in Vite.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "usage-before-14.3",
"name": "api-before-14.3",
"version": "0.0.0",
"private": true,
"type": "module",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('should pass lint without error in new projects', () => {
'with-playwright',
'with-vitest',
'type-checked',
'usage-before-14.3',
'api-before-14.3',
]) {
test(projectName, async () => {
const { stdout } = await runLintAgainst(projectName)
Expand All @@ -82,7 +82,7 @@ describe('should report error on recommended rule violations in .vue files', ()
'with-playwright',
'with-vitest',
'type-checked',
'usage-before-14.3',
'api-before-14.3',
]) {
test(`src/App.vue in ${projectName}`, async () => {
const appVuePath = path.join(
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('should report error on recommended rule violations in other script fil
'with-playwright',
'with-vitest',
'type-checked',
'usage-before-14.3',
'api-before-14.3',
]) {
test(`main.ts in ${projectName}`, async () => {
const mainTsPath = path.join(
Expand Down Expand Up @@ -200,8 +200,8 @@ test('#102: should set configs correctly for paths with glob-like syntax (e.g. f
expect(stdout).toMatch(WHITESPACE_ONLY)
})

test('(usage before 14.3) should guide user to use camelCase names in "extends"', async () => {
const eslintConfigPath = path.join(__dirname, '../examples/usage-before-14.3/eslint.config.js')
test('(API before 14.3) should guide user to use camelCase names in "extends"', async () => {
const eslintConfigPath = path.join(__dirname, '../examples/api-before-14.3/eslint.config.js')
const { modify, restore } = setupFileMutations(eslintConfigPath)
modify((oldContents) => oldContents.replace('recommendedTypeChecked', 'recommended-type-checked'))
const { failed, stderr } = await runLintAgainst('type-checked')
Expand Down

0 comments on commit 575503d

Please sign in to comment.