@nx/eslint 18.0.0-beta.2 → 18.0.0-beta.3
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/eslint",
|
3
|
-
"version": "18.0.0-beta.
|
3
|
+
"version": "18.0.0-beta.3",
|
4
4
|
"private": false,
|
5
5
|
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
6
6
|
"repository": {
|
@@ -33,12 +33,12 @@
|
|
33
33
|
"js-yaml": "4.1.0"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@nx/devkit": "18.0.0-beta.
|
37
|
-
"@nx/js": "18.0.0-beta.
|
36
|
+
"@nx/devkit": "18.0.0-beta.3",
|
37
|
+
"@nx/js": "18.0.0-beta.3",
|
38
38
|
"eslint": "^8.0.0",
|
39
39
|
"tslib": "^2.3.0",
|
40
40
|
"typescript": "~5.3.2",
|
41
|
-
"@nx/linter": "18.0.0-beta.
|
41
|
+
"@nx/linter": "18.0.0-beta.3"
|
42
42
|
},
|
43
43
|
"peerDependenciesMeta": {
|
44
44
|
"js-yaml": {
|
@@ -38,7 +38,6 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
|
|
38
38
|
* not be any html files in the project, so keeping it true would break linting every time
|
39
39
|
*/
|
40
40
|
errorOnUnmatchedPattern: false,
|
41
|
-
reportUnusedDisableDirectives: options.reportUnusedDisableDirectives || undefined,
|
42
41
|
};
|
43
42
|
if (useFlatConfig) {
|
44
43
|
if (typeof options.useEslintrc !== 'undefined') {
|
@@ -50,6 +49,9 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
|
|
50
49
|
if (options.ignorePath !== undefined) {
|
51
50
|
throw new Error('For Flat Config, ESLint removed `ignorePath` and so it is not supported as an option. See https://eslint.org/docs/latest/use/configure/configuration-files-new');
|
52
51
|
}
|
52
|
+
if (options.reportUnusedDisableDirectives) {
|
53
|
+
throw new Error('For Flat Config, ESLint removed `reportedUnusedDisableDirectives` and so it is not supported as an option. See https://eslint.org/docs/latest/use/configure/configuration-files-new');
|
54
|
+
}
|
53
55
|
}
|
54
56
|
else {
|
55
57
|
eslintOptions.rulePaths = options.rulesdir || [];
|
@@ -61,6 +63,8 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
|
|
61
63
|
* merge the provided config with others it finds automatically.
|
62
64
|
*/
|
63
65
|
eslintOptions.useEslintrc = !options.noEslintrc;
|
66
|
+
eslintOptions.reportUnusedDisableDirectives =
|
67
|
+
options.reportUnusedDisableDirectives || undefined;
|
64
68
|
}
|
65
69
|
const eslint = new ESLint(eslintOptions);
|
66
70
|
return {
|