@nx/eslint-plugin 24.0.5 → 24.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/configs/javascript.d.ts +0 -20
- package/dist/src/configs/javascript.js +0 -20
- package/dist/src/configs/typescript.d.ts +0 -9
- package/dist/src/configs/typescript.js +0 -9
- package/dist/src/flat-configs/javascript.d.ts +0 -5
- package/dist/src/flat-configs/javascript.js +0 -20
- package/dist/src/flat-configs/typescript.js +0 -9
- package/dist/src/index.d.ts +0 -22
- package/package.json +4 -4
|
@@ -8,11 +8,6 @@
|
|
|
8
8
|
* We use @typescript-eslint/parser rather than the built in JS parser
|
|
9
9
|
* because that is what Nx ESLint configs have always done and we don't
|
|
10
10
|
* want to change too much all at once.
|
|
11
|
-
*
|
|
12
|
-
* TODO: Evaluate switching to the built-in JS parser (espree) in Nx v11,
|
|
13
|
-
* it should yield a performance improvement but could introduce subtle
|
|
14
|
-
* breaking changes - we should also look to replace all the @typescript-eslint
|
|
15
|
-
* related plugins and rules below.
|
|
16
11
|
*/
|
|
17
12
|
declare const _default: {
|
|
18
13
|
env: {
|
|
@@ -27,28 +22,15 @@ declare const _default: {
|
|
|
27
22
|
plugins: string[];
|
|
28
23
|
extends: string[];
|
|
29
24
|
rules: {
|
|
30
|
-
'@typescript-eslint/explicit-member-accessibility': string;
|
|
31
|
-
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
32
|
-
'@typescript-eslint/explicit-function-return-type': string;
|
|
33
|
-
'@typescript-eslint/no-parameter-properties': string;
|
|
34
|
-
/**
|
|
35
|
-
* Until ESM usage in Node matures, using require in e.g. JS config files
|
|
36
|
-
* is by far the more common thing to do, so disabling this to avoid users
|
|
37
|
-
* having to frequently use "eslint-disable-next-line" in their configs.
|
|
38
|
-
*/
|
|
39
|
-
'@typescript-eslint/no-var-requires': string;
|
|
40
25
|
/**
|
|
41
26
|
* From https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/#updated-configuration-rules
|
|
42
27
|
*
|
|
43
28
|
* The following rules were added to preserve the linting rules that were
|
|
44
29
|
* previously defined v5 of `@typescript-eslint`. v6 of `@typescript-eslint`
|
|
45
30
|
* changed how configurations are defined.
|
|
46
|
-
*
|
|
47
|
-
* TODO(eslint): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx
|
|
48
31
|
*/
|
|
49
32
|
'@typescript-eslint/no-non-null-assertion': string;
|
|
50
33
|
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
51
|
-
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
52
34
|
'no-empty-function': string;
|
|
53
35
|
'@typescript-eslint/no-empty-function': string;
|
|
54
36
|
'@typescript-eslint/no-inferrable-types': string;
|
|
@@ -58,8 +40,6 @@ declare const _default: {
|
|
|
58
40
|
/**
|
|
59
41
|
* During the migration to use ESLint v9 and typescript-eslint v8 for new workspaces,
|
|
60
42
|
* this rule would have created a lot of noise, so we are disabling it by default for now.
|
|
61
|
-
*
|
|
62
|
-
* TODO(eslint): we should make this part of what we re-evaluate in v20
|
|
63
43
|
*/
|
|
64
44
|
'@typescript-eslint/no-require-imports': string;
|
|
65
45
|
};
|
|
@@ -12,11 +12,6 @@ const isPrettierAvailable = (0, config_utils_1.packageExists)('prettier') && (0,
|
|
|
12
12
|
* We use @typescript-eslint/parser rather than the built in JS parser
|
|
13
13
|
* because that is what Nx ESLint configs have always done and we don't
|
|
14
14
|
* want to change too much all at once.
|
|
15
|
-
*
|
|
16
|
-
* TODO: Evaluate switching to the built-in JS parser (espree) in Nx v11,
|
|
17
|
-
* it should yield a performance improvement but could introduce subtle
|
|
18
|
-
* breaking changes - we should also look to replace all the @typescript-eslint
|
|
19
|
-
* related plugins and rules below.
|
|
20
15
|
*/
|
|
21
16
|
exports.default = {
|
|
22
17
|
env: {
|
|
@@ -36,28 +31,15 @@ exports.default = {
|
|
|
36
31
|
...(isPrettierAvailable ? ['prettier'] : []),
|
|
37
32
|
],
|
|
38
33
|
rules: {
|
|
39
|
-
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
40
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
41
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
42
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
|
43
|
-
/**
|
|
44
|
-
* Until ESM usage in Node matures, using require in e.g. JS config files
|
|
45
|
-
* is by far the more common thing to do, so disabling this to avoid users
|
|
46
|
-
* having to frequently use "eslint-disable-next-line" in their configs.
|
|
47
|
-
*/
|
|
48
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
49
34
|
/**
|
|
50
35
|
* From https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/#updated-configuration-rules
|
|
51
36
|
*
|
|
52
37
|
* The following rules were added to preserve the linting rules that were
|
|
53
38
|
* previously defined v5 of `@typescript-eslint`. v6 of `@typescript-eslint`
|
|
54
39
|
* changed how configurations are defined.
|
|
55
|
-
*
|
|
56
|
-
* TODO(eslint): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx
|
|
57
40
|
*/
|
|
58
41
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
59
42
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
60
|
-
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
61
43
|
'no-empty-function': 'off',
|
|
62
44
|
'@typescript-eslint/no-empty-function': 'error',
|
|
63
45
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
@@ -67,8 +49,6 @@ exports.default = {
|
|
|
67
49
|
/**
|
|
68
50
|
* During the migration to use ESLint v9 and typescript-eslint v8 for new workspaces,
|
|
69
51
|
* this rule would have created a lot of noise, so we are disabling it by default for now.
|
|
70
|
-
*
|
|
71
|
-
* TODO(eslint): we should make this part of what we re-evaluate in v20
|
|
72
52
|
*/
|
|
73
53
|
'@typescript-eslint/no-require-imports': 'off',
|
|
74
54
|
},
|
|
@@ -15,22 +15,15 @@ declare const _default: {
|
|
|
15
15
|
plugins: string[];
|
|
16
16
|
extends: string[];
|
|
17
17
|
rules: {
|
|
18
|
-
'@typescript-eslint/explicit-member-accessibility': string;
|
|
19
|
-
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
20
|
-
'@typescript-eslint/explicit-function-return-type': string;
|
|
21
|
-
'@typescript-eslint/no-parameter-properties': string;
|
|
22
18
|
/**
|
|
23
19
|
* From https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/#updated-configuration-rules
|
|
24
20
|
*
|
|
25
21
|
* The following rules were added to preserve the linting rules that were
|
|
26
22
|
* previously defined v5 of `@typescript-eslint`. v6 of `@typescript-eslint`
|
|
27
23
|
* changed how configurations are defined.
|
|
28
|
-
*
|
|
29
|
-
* TODO(eslint): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx
|
|
30
24
|
*/
|
|
31
25
|
'@typescript-eslint/no-non-null-assertion': string;
|
|
32
26
|
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
33
|
-
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
34
27
|
'no-empty-function': string;
|
|
35
28
|
'@typescript-eslint/no-empty-function': string;
|
|
36
29
|
'@typescript-eslint/no-inferrable-types': string;
|
|
@@ -40,8 +33,6 @@ declare const _default: {
|
|
|
40
33
|
/**
|
|
41
34
|
* During the migration to use ESLint v9 and typescript-eslint v8 for new workspaces,
|
|
42
35
|
* this rule would have created a lot of noise, so we are disabling it by default for now.
|
|
43
|
-
*
|
|
44
|
-
* TODO(eslint): we should make this part of what we re-evaluate in v20
|
|
45
36
|
*/
|
|
46
37
|
'@typescript-eslint/no-require-imports': string;
|
|
47
38
|
};
|
|
@@ -25,22 +25,15 @@ exports.default = {
|
|
|
25
25
|
...(isPrettierAvailable ? ['prettier'] : []),
|
|
26
26
|
],
|
|
27
27
|
rules: {
|
|
28
|
-
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
29
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
30
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
31
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
|
32
28
|
/**
|
|
33
29
|
* From https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/#updated-configuration-rules
|
|
34
30
|
*
|
|
35
31
|
* The following rules were added to preserve the linting rules that were
|
|
36
32
|
* previously defined v5 of `@typescript-eslint`. v6 of `@typescript-eslint`
|
|
37
33
|
* changed how configurations are defined.
|
|
38
|
-
*
|
|
39
|
-
* TODO(eslint): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx
|
|
40
34
|
*/
|
|
41
35
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
42
36
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
43
|
-
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
44
37
|
'no-empty-function': 'off',
|
|
45
38
|
'@typescript-eslint/no-empty-function': 'error',
|
|
46
39
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
@@ -50,8 +43,6 @@ exports.default = {
|
|
|
50
43
|
/**
|
|
51
44
|
* During the migration to use ESLint v9 and typescript-eslint v8 for new workspaces,
|
|
52
45
|
* this rule would have created a lot of noise, so we are disabling it by default for now.
|
|
53
|
-
*
|
|
54
|
-
* TODO(eslint): we should make this part of what we re-evaluate in v20
|
|
55
46
|
*/
|
|
56
47
|
'@typescript-eslint/no-require-imports': 'off',
|
|
57
48
|
},
|
|
@@ -9,11 +9,6 @@ import { type ConfigArray } from 'typescript-eslint';
|
|
|
9
9
|
* We use @typescript-eslint/parser rather than the built in JS parser
|
|
10
10
|
* because that is what Nx ESLint configs have always done and we don't
|
|
11
11
|
* want to change too much all at once.
|
|
12
|
-
*
|
|
13
|
-
* TODO: Evaluate switching to the built-in JS parser (espree) in Nx v11,
|
|
14
|
-
* it should yield a performance improvement but could introduce subtle
|
|
15
|
-
* breaking changes - we should also look to replace all the @typescript-eslint
|
|
16
|
-
* related plugins and rules below.
|
|
17
12
|
*/
|
|
18
13
|
declare const config: ConfigArray;
|
|
19
14
|
export default config;
|
|
@@ -16,11 +16,6 @@ const isPrettierAvailable = (0, config_utils_1.packageExists)('prettier') && (0,
|
|
|
16
16
|
* We use @typescript-eslint/parser rather than the built in JS parser
|
|
17
17
|
* because that is what Nx ESLint configs have always done and we don't
|
|
18
18
|
* want to change too much all at once.
|
|
19
|
-
*
|
|
20
|
-
* TODO: Evaluate switching to the built-in JS parser (espree) in Nx v11,
|
|
21
|
-
* it should yield a performance improvement but could introduce subtle
|
|
22
|
-
* breaking changes - we should also look to replace all the @typescript-eslint
|
|
23
|
-
* related plugins and rules below.
|
|
24
19
|
*/
|
|
25
20
|
const config = typescript_eslint_1.default.config({
|
|
26
21
|
files: ['**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs'],
|
|
@@ -40,28 +35,15 @@ const config = typescript_eslint_1.default.config({
|
|
|
40
35
|
}, {
|
|
41
36
|
files: ['**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs'],
|
|
42
37
|
rules: {
|
|
43
|
-
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
44
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
45
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
46
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
|
47
|
-
/**
|
|
48
|
-
* Until ESM usage in Node matures, using require in e.g. JS config files
|
|
49
|
-
* is by far the more common thing to do, so disabling this to avoid users
|
|
50
|
-
* having to frequently use "eslint-disable-next-line" in their configs.
|
|
51
|
-
*/
|
|
52
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
53
38
|
/**
|
|
54
39
|
* From https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/#updated-configuration-rules
|
|
55
40
|
*
|
|
56
41
|
* The following rules were added to preserve the linting rules that were
|
|
57
42
|
* previously defined v5 of `@typescript-eslint`. v6 of `@typescript-eslint`
|
|
58
43
|
* changed how configurations are defined.
|
|
59
|
-
*
|
|
60
|
-
* TODO(eslint): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx
|
|
61
44
|
*/
|
|
62
45
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
63
46
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
64
|
-
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
65
47
|
'no-empty-function': 'off',
|
|
66
48
|
'@typescript-eslint/no-empty-function': 'error',
|
|
67
49
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
@@ -71,8 +53,6 @@ const config = typescript_eslint_1.default.config({
|
|
|
71
53
|
/**
|
|
72
54
|
* During the migration to use ESLint v9 and typescript-eslint v8 for new workspaces,
|
|
73
55
|
* this rule would have created a lot of noise, so we are disabling it by default for now.
|
|
74
|
-
*
|
|
75
|
-
* TODO(eslint): we should make this part of what we re-evaluate in v20
|
|
76
56
|
*/
|
|
77
57
|
'@typescript-eslint/no-require-imports': 'off',
|
|
78
58
|
},
|
|
@@ -30,22 +30,15 @@ const config = typescript_eslint_1.default.config({
|
|
|
30
30
|
}, {
|
|
31
31
|
files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
|
|
32
32
|
rules: {
|
|
33
|
-
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
34
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
35
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
36
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
|
37
33
|
/**
|
|
38
34
|
* From https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/#updated-configuration-rules
|
|
39
35
|
*
|
|
40
36
|
* The following rules were added to preserve the linting rules that were
|
|
41
37
|
* previously defined v5 of `@typescript-eslint`. v6 of `@typescript-eslint`
|
|
42
38
|
* changed how configurations are defined.
|
|
43
|
-
*
|
|
44
|
-
* TODO(eslint): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx
|
|
45
39
|
*/
|
|
46
40
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
47
41
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
48
|
-
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
49
42
|
'no-empty-function': 'off',
|
|
50
43
|
'@typescript-eslint/no-empty-function': 'error',
|
|
51
44
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
@@ -55,8 +48,6 @@ const config = typescript_eslint_1.default.config({
|
|
|
55
48
|
/**
|
|
56
49
|
* During the migration to use ESLint v9 and typescript-eslint v8 for new workspaces,
|
|
57
50
|
* this rule would have created a lot of noise, so we are disabling it by default for now.
|
|
58
|
-
*
|
|
59
|
-
* TODO(eslint): we should make this part of what we re-evaluate in v20
|
|
60
51
|
*/
|
|
61
52
|
'@typescript-eslint/no-require-imports': 'off',
|
|
62
53
|
},
|
package/dist/src/index.d.ts
CHANGED
|
@@ -11,13 +11,8 @@ declare const configs: {
|
|
|
11
11
|
plugins: string[];
|
|
12
12
|
extends: string[];
|
|
13
13
|
rules: {
|
|
14
|
-
'@typescript-eslint/explicit-member-accessibility': string;
|
|
15
|
-
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
16
|
-
'@typescript-eslint/explicit-function-return-type': string;
|
|
17
|
-
'@typescript-eslint/no-parameter-properties': string;
|
|
18
14
|
'@typescript-eslint/no-non-null-assertion': string;
|
|
19
15
|
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
20
|
-
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
21
16
|
'no-empty-function': string;
|
|
22
17
|
'@typescript-eslint/no-empty-function': string;
|
|
23
18
|
'@typescript-eslint/no-inferrable-types': string;
|
|
@@ -40,14 +35,8 @@ declare const configs: {
|
|
|
40
35
|
plugins: string[];
|
|
41
36
|
extends: string[];
|
|
42
37
|
rules: {
|
|
43
|
-
'@typescript-eslint/explicit-member-accessibility': string;
|
|
44
|
-
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
45
|
-
'@typescript-eslint/explicit-function-return-type': string;
|
|
46
|
-
'@typescript-eslint/no-parameter-properties': string;
|
|
47
|
-
'@typescript-eslint/no-var-requires': string;
|
|
48
38
|
'@typescript-eslint/no-non-null-assertion': string;
|
|
49
39
|
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
50
|
-
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
51
40
|
'no-empty-function': string;
|
|
52
41
|
'@typescript-eslint/no-empty-function': string;
|
|
53
42
|
'@typescript-eslint/no-inferrable-types': string;
|
|
@@ -286,13 +275,8 @@ declare const _default: {
|
|
|
286
275
|
plugins: string[];
|
|
287
276
|
extends: string[];
|
|
288
277
|
rules: {
|
|
289
|
-
'@typescript-eslint/explicit-member-accessibility': string;
|
|
290
|
-
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
291
|
-
'@typescript-eslint/explicit-function-return-type': string;
|
|
292
|
-
'@typescript-eslint/no-parameter-properties': string;
|
|
293
278
|
'@typescript-eslint/no-non-null-assertion': string;
|
|
294
279
|
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
295
|
-
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
296
280
|
'no-empty-function': string;
|
|
297
281
|
'@typescript-eslint/no-empty-function': string;
|
|
298
282
|
'@typescript-eslint/no-inferrable-types': string;
|
|
@@ -315,14 +299,8 @@ declare const _default: {
|
|
|
315
299
|
plugins: string[];
|
|
316
300
|
extends: string[];
|
|
317
301
|
rules: {
|
|
318
|
-
'@typescript-eslint/explicit-member-accessibility': string;
|
|
319
|
-
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
320
|
-
'@typescript-eslint/explicit-function-return-type': string;
|
|
321
|
-
'@typescript-eslint/no-parameter-properties': string;
|
|
322
|
-
'@typescript-eslint/no-var-requires': string;
|
|
323
302
|
'@typescript-eslint/no-non-null-assertion': string;
|
|
324
303
|
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
325
|
-
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
326
304
|
'no-empty-function': string;
|
|
327
305
|
'@typescript-eslint/no-empty-function': string;
|
|
328
306
|
'@typescript-eslint/no-inferrable-types': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/eslint-plugin",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.1.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@nx/devkit": "24.0.
|
|
104
|
-
"@nx/js": "24.0.
|
|
103
|
+
"@nx/devkit": "24.1.0-beta.0",
|
|
104
|
+
"@nx/js": "24.1.0-beta.0",
|
|
105
105
|
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
106
106
|
"@typescript-eslint/type-utils": "^8.0.0",
|
|
107
107
|
"@typescript-eslint/utils": "^8.0.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"tslib": "^2.3.0"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"nx": "24.0.
|
|
116
|
+
"nx": "24.1.0-beta.0"
|
|
117
117
|
},
|
|
118
118
|
"publishConfig": {
|
|
119
119
|
"access": "public"
|