Skip to content

Commit d4c9ca5

Browse files
committed
docs: mark 'excepts' and 'extensions' as deprecated in 'naming-convention/filename'
1 parent 8c704f4 commit d4c9ca5

File tree

22 files changed

+201
-161
lines changed

22 files changed

+201
-161
lines changed

eslint.config.mts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ type FlatConfig = Parameters<typeof tseslint.config>[number];
1717
const dirname = url.fileURLToPath(new URL(".", import.meta.url));
1818
const config: FlatConfig[] = [
1919
// register all of the plugins up-front
20+
gitignore(),
21+
{
22+
ignores: [
23+
"docs",
24+
"examples",
25+
"website",
26+
"eslint.config.js",
27+
"eslint.config.d.ts",
28+
],
29+
},
2030
{
2131
// note - intentionally uses computed syntax to make it easy to sort the keys
2232
plugins: {
@@ -267,16 +277,6 @@ const config: FlatConfig[] = [
267277
},
268278
},
269279
},
270-
gitignore(),
271-
{
272-
ignores: [
273-
"docs",
274-
"examples",
275-
"website",
276-
"eslint.config.js",
277-
"eslint.config.d.ts",
278-
],
279-
},
280280
];
281281

282282
export default tseslint.config(...config);

examples/vite-react-dom-ts-flat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"eslint-plugin-react-hooks": "4.6.2",
2525
"eslint-plugin-react-refresh": "0.4.7",
2626
"typescript": "^5.5.3",
27-
"typescript-eslint": "7.15.0",
27+
"typescript-eslint": "catalog:tseslint7",
2828
"vite": "5.3.3"
2929
}
3030
}

package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@
2323
"url": "https://github.com/Rel1cx/eslint-react"
2424
},
2525
"license": "MIT",
26-
"author": "Eva1ent<[email protected]>",
27-
"workspaces": [
28-
"packages/*",
29-
"packages/*/*",
30-
"examples/*",
31-
"website"
32-
],
26+
"author": "Eva1ent<[email protected]>",
3327
"scripts": {
3428
"build": "pnpm run update:version && turbo build --filter=\"./packages/**\"",
3529
"build:all": "pnpm run build && pnpm run build:docs && pnpm run build:website",
@@ -63,9 +57,9 @@
6357
"@types/node": "20.14.10",
6458
"@types/react": "18.3.3",
6559
"@types/react-dom": "18.3.0",
66-
"@typescript-eslint/eslint-plugin": "7.15.0",
67-
"@typescript-eslint/parser": "7.15.0",
68-
"@typescript-eslint/rule-tester": "7.15.0",
60+
"@typescript-eslint/eslint-plugin": "catalog:tseslint7",
61+
"@typescript-eslint/parser": "catalog:tseslint7",
62+
"@typescript-eslint/rule-tester": "catalog:tseslint7",
6963
"@vitest/ui": "1.6.0",
7064
"bun": "1.1.18",
7165
"bun-types": "1.1.18",
@@ -108,7 +102,7 @@
108102
"typescript": "^5.5.3",
109103
"vitest": "1.6.0"
110104
},
111-
"packageManager": "pnpm@9.4.0",
105+
"packageManager": "pnpm@9.5.0",
112106
"engines": {
113107
"bun": ">=1.0.15",
114108
"node": ">=18.18.0"
@@ -122,7 +116,6 @@
122116
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@^1",
123117
"array.prototype.toreversed": "npm:@nolyfill/array.prototype.toreversed@^1",
124118
"array.prototype.tosorted": "npm:@nolyfill/array.prototype.tosorted@^1",
125-
"dprint": "0.46.3",
126119
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
127120
"esbuild": "0.23.0",
128121
"eslint": "^9.6.0",

packages/core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"directory": "packages/core"
1313
},
1414
"license": "MIT",
15-
"author": "Eva1ent<let@ik.me>",
15+
"author": "Eva1ent<rel1cx@proton.me>",
1616
"sideEffects": false,
1717
"exports": {
1818
".": {
@@ -48,10 +48,10 @@
4848
"@eslint-react/tools": "workspace:*",
4949
"@eslint-react/types": "workspace:*",
5050
"@eslint-react/var": "workspace:*",
51-
"@typescript-eslint/scope-manager": "7.15.0",
52-
"@typescript-eslint/type-utils": "7.15.0",
53-
"@typescript-eslint/types": "7.15.0",
54-
"@typescript-eslint/utils": "7.15.0"
51+
"@typescript-eslint/scope-manager": "catalog:tseslint7",
52+
"@typescript-eslint/type-utils": "catalog:tseslint7",
53+
"@typescript-eslint/types": "catalog:tseslint7",
54+
"@typescript-eslint/utils": "catalog:tseslint7"
5555
},
5656
"devDependencies": {
5757
"effect": "3.4.7",

packages/plugins/eslint-plugin-react-debug/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"directory": "packages/plugins/eslint-plugin-react-debug"
1313
},
1414
"license": "MIT",
15-
"author": "Eva1ent<let@ik.me>",
15+
"author": "Eva1ent<rel1cx@proton.me>",
1616
"sideEffects": false,
1717
"exports": {
1818
".": {
@@ -47,10 +47,10 @@
4747
"@eslint-react/shared": "workspace:*",
4848
"@eslint-react/tools": "workspace:*",
4949
"@eslint-react/types": "workspace:*",
50-
"@typescript-eslint/scope-manager": "7.15.0",
51-
"@typescript-eslint/type-utils": "7.15.0",
52-
"@typescript-eslint/types": "7.15.0",
53-
"@typescript-eslint/utils": "7.15.0",
50+
"@typescript-eslint/scope-manager": "catalog:tseslint7",
51+
"@typescript-eslint/type-utils": "catalog:tseslint7",
52+
"@typescript-eslint/types": "catalog:tseslint7",
53+
"@typescript-eslint/utils": "catalog:tseslint7",
5454
"string-ts": "^2.2.0"
5555
},
5656
"devDependencies": {

packages/plugins/eslint-plugin-react-dom/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"directory": "packages/plugins/eslint-plugin-react-dom"
1313
},
1414
"license": "MIT",
15-
"author": "Eva1ent<let@ik.me>",
15+
"author": "Eva1ent<rel1cx@proton.me>",
1616
"sideEffects": false,
1717
"exports": {
1818
".": {
@@ -48,9 +48,9 @@
4848
"@eslint-react/tools": "workspace:*",
4949
"@eslint-react/types": "workspace:*",
5050
"@eslint-react/var": "workspace:*",
51-
"@typescript-eslint/scope-manager": "7.15.0",
52-
"@typescript-eslint/types": "7.15.0",
53-
"@typescript-eslint/utils": "7.15.0"
51+
"@typescript-eslint/scope-manager": "catalog:tseslint7",
52+
"@typescript-eslint/types": "catalog:tseslint7",
53+
"@typescript-eslint/utils": "catalog:tseslint7"
5454
},
5555
"devDependencies": {
5656
"dedent": "1.5.3",

packages/plugins/eslint-plugin-react-hooks-extra/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"directory": "packages/plugins/eslint-plugin-react-hooks-extra"
1313
},
1414
"license": "MIT",
15-
"author": "Eva1ent<let@ik.me>",
15+
"author": "Eva1ent<rel1cx@proton.me>",
1616
"sideEffects": false,
1717
"exports": {
1818
".": {
@@ -48,10 +48,10 @@
4848
"@eslint-react/tools": "workspace:*",
4949
"@eslint-react/types": "workspace:*",
5050
"@eslint-react/var": "workspace:*",
51-
"@typescript-eslint/scope-manager": "7.15.0",
52-
"@typescript-eslint/type-utils": "7.15.0",
53-
"@typescript-eslint/types": "7.15.0",
54-
"@typescript-eslint/utils": "7.15.0"
51+
"@typescript-eslint/scope-manager": "catalog:tseslint7",
52+
"@typescript-eslint/type-utils": "catalog:tseslint7",
53+
"@typescript-eslint/types": "catalog:tseslint7",
54+
"@typescript-eslint/utils": "catalog:tseslint7"
5555
},
5656
"devDependencies": {
5757
"dedent": "1.5.3",

packages/plugins/eslint-plugin-react-naming-convention/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"directory": "packages/plugins/eslint-plugin-react-naming-convention"
1313
},
1414
"license": "MIT",
15-
"author": "Eva1ent<let@ik.me>",
15+
"author": "Eva1ent<rel1cx@proton.me>",
1616
"sideEffects": false,
1717
"exports": {
1818
".": {
@@ -47,10 +47,10 @@
4747
"@eslint-react/shared": "workspace:*",
4848
"@eslint-react/tools": "workspace:*",
4949
"@eslint-react/types": "workspace:*",
50-
"@typescript-eslint/scope-manager": "7.15.0",
51-
"@typescript-eslint/type-utils": "7.15.0",
52-
"@typescript-eslint/types": "7.15.0",
53-
"@typescript-eslint/utils": "7.15.0"
50+
"@typescript-eslint/scope-manager": "catalog:tseslint7",
51+
"@typescript-eslint/type-utils": "catalog:tseslint7",
52+
"@typescript-eslint/types": "catalog:tseslint7",
53+
"@typescript-eslint/utils": "catalog:tseslint7"
5454
},
5555
"devDependencies": {
5656
"dedent": "1.5.3",

packages/plugins/eslint-plugin-react-naming-convention/src/rules/filename-extension.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ type Options = readonly [
1717
| {
1818
allow?: Allow;
1919
extensions?: readonly string[];
20-
// Reserved for future use
21-
// excepts?: readonly string[];
2220
}
2321
| Allow
2422
| undefined,

packages/plugins/eslint-plugin-react-naming-convention/src/rules/filename.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ type Case = "PascalCase" | "camelCase" | "kebab-case" | "snake_case";
2020
/* eslint-disable no-restricted-syntax */
2121
type Options = readonly [
2222
| {
23+
/**
24+
* @deprecated Use ESLint's [files](https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-and-ignores) feature instead.
25+
*/
2326
excepts?: readonly string[];
27+
/**
28+
* @deprecated Use ESLint's [files](https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-and-ignores) feature instead.
29+
*/
2430
extensions?: readonly string[];
2531
rule?: Case;
2632
}

0 commit comments

Comments
 (0)