@nx/eslint 0.0.0-pr-27404-ad15a9c → 0.0.0-pr-27404-00130f5
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": "0.0.0-pr-27404-
|
|
3
|
+
"version": "0.0.0-pr-27404-00130f5",
|
|
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,12 +35,12 @@
|
|
|
35
35
|
"eslint": "^8.0.0 || ^9.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@nx/devkit": "0.0.0-pr-27404-
|
|
39
|
-
"@nx/js": "0.0.0-pr-27404-
|
|
38
|
+
"@nx/devkit": "0.0.0-pr-27404-00130f5",
|
|
39
|
+
"@nx/js": "0.0.0-pr-27404-00130f5",
|
|
40
40
|
"semver": "^7.5.3",
|
|
41
41
|
"tslib": "^2.3.0",
|
|
42
42
|
"typescript": "~5.4.2",
|
|
43
|
-
"@nx/linter": "0.0.0-pr-27404-
|
|
43
|
+
"@nx/linter": "0.0.0-pr-27404-00130f5"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"@zkochan/js-yaml": {
|
|
@@ -91,7 +91,7 @@ function migrateEslintFile(projectEslintPath, tree) {
|
|
|
91
91
|
'plugin:@nrwl/typescript',
|
|
92
92
|
'plugin:@nrwl/javascript',
|
|
93
93
|
]);
|
|
94
|
-
config = (0, ast_utils_1.removePredefinedConfigs)(config, '
|
|
94
|
+
config = (0, ast_utils_1.removePredefinedConfigs)(config, '@nx/eslint-plugin', 'nx', [
|
|
95
95
|
'flat/base',
|
|
96
96
|
'flat/typescript',
|
|
97
97
|
'flat/javascript',
|
|
@@ -26,11 +26,7 @@ export declare function addBlockToFlatConfigExport(content: string, config: ts.E
|
|
|
26
26
|
}): string;
|
|
27
27
|
export declare function removePlugin(content: string, pluginName: string, pluginImport: string): string;
|
|
28
28
|
export declare function removeCompatExtends(content: string, compatExtends: string[]): string;
|
|
29
|
-
|
|
30
|
-
* Removes the pre-defined configs that match `configs` array from the config export.
|
|
31
|
-
* Also, removes the module matching `moduleImport` from imports if it is unused.
|
|
32
|
-
*/
|
|
33
|
-
export declare function removePredefinedConfigs(content: string, moduleVariable: string, moduleImport: string, configs: string[]): string;
|
|
29
|
+
export declare function removePredefinedConfigs(content: string, moduleImport: string, moduleVariable: string, configs: string[]): string;
|
|
34
30
|
/**
|
|
35
31
|
* Add plugins block to the top of the export blocks
|
|
36
32
|
*/
|
|
@@ -446,11 +446,7 @@ function removeCompatExtends(content, compatExtends) {
|
|
|
446
446
|
});
|
|
447
447
|
return (0, devkit_1.applyChangesToString)(content, changes);
|
|
448
448
|
}
|
|
449
|
-
|
|
450
|
-
* Removes the pre-defined configs that match `configs` array from the config export.
|
|
451
|
-
* Also, removes the module matching `moduleImport` from imports if it is unused.
|
|
452
|
-
*/
|
|
453
|
-
function removePredefinedConfigs(content, moduleVariable, moduleImport, configs) {
|
|
449
|
+
function removePredefinedConfigs(content, moduleImport, moduleVariable, configs) {
|
|
454
450
|
const source = ts.createSourceFile('', content, ts.ScriptTarget.Latest, true, ts.ScriptKind.JS);
|
|
455
451
|
const changes = [];
|
|
456
452
|
let removeImport = true;
|