@nx/eslint 20.4.3 → 20.5.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/eslint",
|
3
|
-
"version": "20.
|
3
|
+
"version": "20.5.0-beta.0",
|
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": {
|
@@ -35,8 +35,8 @@
|
|
35
35
|
"eslint": "^8.0.0 || ^9.0.0"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@nx/devkit": "20.
|
39
|
-
"@nx/js": "20.
|
38
|
+
"@nx/devkit": "20.5.0-beta.0",
|
39
|
+
"@nx/js": "20.5.0-beta.0",
|
40
40
|
"semver": "^7.5.3",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"typescript": "~5.7.2"
|
@@ -357,9 +357,9 @@ function addExtendsToLintConfig(tree, root, plugin, insertAtTheEnd = false) {
|
|
357
357
|
}
|
358
358
|
tree.write(fileName, content);
|
359
359
|
if (shouldImportEslintCompat) {
|
360
|
-
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@eslint/compat': versions_1.eslintCompat
|
360
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@eslint/compat': versions_1.eslintCompat }, undefined, true);
|
361
361
|
}
|
362
|
-
return (
|
362
|
+
return () => { };
|
363
363
|
}
|
364
364
|
else {
|
365
365
|
const plugins = (Array.isArray(plugin) ? plugin : [plugin]).map((p) => typeof p === 'string' ? p : p.name);
|
package/src/plugins/plugin.js
CHANGED
@@ -13,18 +13,7 @@ const semver_1 = require("semver");
|
|
13
13
|
const config_file_1 = require("../utils/config-file");
|
14
14
|
const resolve_eslint_class_1 = require("../utils/resolve-eslint-class");
|
15
15
|
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
16
|
-
const DEFAULT_EXTENSIONS = [
|
17
|
-
'ts',
|
18
|
-
'cts',
|
19
|
-
'mts',
|
20
|
-
'tsx',
|
21
|
-
'js',
|
22
|
-
'cjs',
|
23
|
-
'mjs',
|
24
|
-
'jsx',
|
25
|
-
'html',
|
26
|
-
'vue',
|
27
|
-
];
|
16
|
+
const DEFAULT_EXTENSIONS = ['ts', 'tsx', 'js', 'jsx', 'html', 'vue'];
|
28
17
|
const PROJECT_CONFIG_FILENAMES = ['project.json', 'package.json'];
|
29
18
|
const ESLINT_CONFIG_GLOB_V1 = (0, globs_1.combineGlobPatterns)(config_file_1.ESLINT_CONFIG_FILENAMES.map((f) => `**/${f}`));
|
30
19
|
const ESLINT_CONFIG_GLOB_V2 = (0, globs_1.combineGlobPatterns)([
|