Skip to content

Commit 575503d

Browse files
committed
chore: let's call it API rather than usage
1 parent e63c7e5 commit 575503d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+8
-8
lines changed

examples/usage-before-14.3/README.md renamed to examples/api-before-14.3/README.md

Lines changed: 1 addition & 1 deletion

examples/usage-before-14.3/package.json renamed to examples/api-before-14.3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "usage-before-14.3",
2+
"name": "api-before-14.3",
33
"version": "0.0.0",
44
"private": true,
55
"type": "module",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/index.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('should pass lint without error in new projects', () => {
5656
'with-playwright',
5757
'with-vitest',
5858
'type-checked',
59-
'usage-before-14.3',
59+
'api-before-14.3',
6060
]) {
6161
test(projectName, async () => {
6262
const { stdout } = await runLintAgainst(projectName)
@@ -82,7 +82,7 @@ describe('should report error on recommended rule violations in .vue files', ()
8282
'with-playwright',
8383
'with-vitest',
8484
'type-checked',
85-
'usage-before-14.3',
85+
'api-before-14.3',
8686
]) {
8787
test(`src/App.vue in ${projectName}`, async () => {
8888
const appVuePath = path.join(
@@ -122,7 +122,7 @@ describe('should report error on recommended rule violations in other script fil
122122
'with-playwright',
123123
'with-vitest',
124124
'type-checked',
125-
'usage-before-14.3',
125+
'api-before-14.3',
126126
]) {
127127
test(`main.ts in ${projectName}`, async () => {
128128
const mainTsPath = path.join(
@@ -200,8 +200,8 @@ test('#102: should set configs correctly for paths with glob-like syntax (e.g. f
200200
expect(stdout).toMatch(WHITESPACE_ONLY)
201201
})
202202

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

0 commit comments

Comments
 (0)