@nx/eslint 19.8.0 → 19.8.1
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": "19.8.
|
3
|
+
"version": "19.8.1",
|
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": "19.8.
|
39
|
-
"@nx/js": "19.8.
|
38
|
+
"@nx/devkit": "19.8.1",
|
39
|
+
"@nx/js": "19.8.1",
|
40
40
|
"semver": "^7.5.3",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"typescript": "~5.4.2",
|
43
|
-
"@nx/linter": "19.8.
|
43
|
+
"@nx/linter": "19.8.1"
|
44
44
|
},
|
45
45
|
"peerDependenciesMeta": {
|
46
46
|
"@zkochan/js-yaml": {
|
@@ -85,6 +85,7 @@ const getGlobalFlatEslintConfiguration = (rootProject) => {
|
|
85
85
|
content = (0, ast_utils_1.addBlockToFlatConfigExport)(content, (0, ast_utils_1.generateFlatPredefinedConfig)('flat/base'), { insertAtTheEnd: false });
|
86
86
|
content = (0, ast_utils_1.addBlockToFlatConfigExport)(content, (0, ast_utils_1.generateFlatPredefinedConfig)('flat/typescript'));
|
87
87
|
content = (0, ast_utils_1.addBlockToFlatConfigExport)(content, (0, ast_utils_1.generateFlatPredefinedConfig)('flat/javascript'));
|
88
|
+
content = (0, ast_utils_1.addBlockToFlatConfigExport)(content, (0, ast_utils_1.generateFlatOverride)({ ignores: ['**/dist'] }));
|
88
89
|
if (!rootProject) {
|
89
90
|
content = (0, ast_utils_1.addBlockToFlatConfigExport)(content, (0, ast_utils_1.generateFlatOverride)({
|
90
91
|
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
|
@@ -62,9 +62,11 @@ export declare function overrideNeedsCompat(override: Partial<Linter.ConfigOverr
|
|
62
62
|
* Generates an AST object or spread element representing a modern flat config entry,
|
63
63
|
* based on a given legacy eslintrc JSON override object
|
64
64
|
*/
|
65
|
-
export declare function generateFlatOverride(_override: Partial<Linter.ConfigOverride<Linter.RulesRecord>>
|
65
|
+
export declare function generateFlatOverride(_override: Partial<Linter.ConfigOverride<Linter.RulesRecord>> & {
|
66
|
+
ignores?: Linter.FlatConfig['ignores'];
|
67
|
+
}): ts.ObjectLiteralExpression | ts.SpreadElement;
|
66
68
|
export declare function generateFlatPredefinedConfig(predefinedConfigName: string, moduleName?: string, spread?: boolean): ts.ObjectLiteralExpression | ts.SpreadElement | ts.ElementAccessExpression;
|
67
|
-
export declare function mapFilePaths
|
69
|
+
export declare function mapFilePaths<T extends Partial<Linter.ConfigOverride<Linter.RulesRecord>>>(_override: T): T;
|
68
70
|
/**
|
69
71
|
* Generates an AST from a JSON-type input
|
70
72
|
*/
|
@@ -608,6 +608,9 @@ function generateFlatOverride(_override) {
|
|
608
608
|
const flatConfigOverride = {
|
609
609
|
files,
|
610
610
|
};
|
611
|
+
if (override.ignores) {
|
612
|
+
flatConfigOverride.ignores = override.ignores;
|
613
|
+
}
|
611
614
|
if (override.rules) {
|
612
615
|
flatConfigOverride.rules = override.rules;
|
613
616
|
}
|