@nrwl/linter 14.8.8 → 14.9.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE +22 -22
  3. package/README.md +5 -26
  4. package/executors.json +0 -10
  5. package/migrations.json +12 -84
  6. package/package.json +4 -6
  7. package/src/executors/eslint/hasher.d.ts +1 -1
  8. package/src/executors/eslint/hasher.js +1 -1
  9. package/src/executors/eslint/hasher.js.map +1 -1
  10. package/src/executors/eslint/lint.impl.js +2 -2
  11. package/src/executors/eslint/lint.impl.js.map +1 -1
  12. package/src/executors/eslint/schema.json +12 -6
  13. package/src/generators/init/global-eslint-config.d.ts +36 -0
  14. package/src/generators/init/global-eslint-config.js +77 -0
  15. package/src/generators/init/global-eslint-config.js.map +1 -0
  16. package/src/generators/init/init-migration.d.ts +3 -0
  17. package/src/generators/init/init-migration.js +68 -0
  18. package/src/generators/init/init-migration.js.map +1 -0
  19. package/src/generators/init/init.d.ts +1 -0
  20. package/src/generators/init/init.js +12 -160
  21. package/src/generators/init/init.js.map +1 -1
  22. package/src/generators/lint-project/lint-project.d.ts +2 -0
  23. package/src/generators/lint-project/lint-project.js +65 -30
  24. package/src/generators/lint-project/lint-project.js.map +1 -1
  25. package/src/generators/utils/eslint-file.d.ts +4 -2
  26. package/src/generators/utils/eslint-file.js +18 -5
  27. package/src/generators/utils/eslint-file.js.map +1 -1
  28. package/src/generators/utils/eslint-targets.d.ts +2 -0
  29. package/src/generators/utils/eslint-targets.js +13 -0
  30. package/src/generators/utils/eslint-targets.js.map +1 -0
  31. package/src/generators/utils/linter.d.ts +0 -1
  32. package/src/generators/utils/linter.js +0 -1
  33. package/src/generators/utils/linter.js.map +1 -1
  34. package/src/generators/workspace-rule/files/__name__.ts__tmpl__ +1 -1
  35. package/src/generators/workspace-rule/schema.json +2 -11
  36. package/src/generators/workspace-rule/workspace-rule.d.ts +1 -1
  37. package/src/generators/workspace-rule/workspace-rule.js +2 -2
  38. package/src/generators/workspace-rule/workspace-rule.js.map +1 -1
  39. package/src/generators/workspace-rules-project/workspace-rules-project.d.ts +1 -1
  40. package/src/generators/workspace-rules-project/workspace-rules-project.js +30 -9
  41. package/src/generators/workspace-rules-project/workspace-rules-project.js.map +1 -1
  42. package/src/migrations/update-13-3-0/eslint-8-updates.js +3 -2
  43. package/src/migrations/update-13-3-0/eslint-8-updates.js.map +1 -1
  44. package/src/migrations/update-15-0-0/add-eslint-inputs.d.ts +2 -0
  45. package/src/migrations/update-15-0-0/add-eslint-inputs.js +33 -0
  46. package/src/migrations/update-15-0-0/add-eslint-inputs.js.map +1 -0
  47. package/src/migrations/update-15-7-1/add-eslint-ignore.d.ts +2 -0
  48. package/src/migrations/update-15-7-1/add-eslint-ignore.js +42 -0
  49. package/src/migrations/update-15-7-1/add-eslint-ignore.js.map +1 -0
  50. package/src/utils/convert-tslint-to-eslint/project-converter.d.ts +1 -1
  51. package/src/utils/convert-tslint-to-eslint/project-converter.js +9 -9
  52. package/src/utils/convert-tslint-to-eslint/project-converter.js.map +1 -1
  53. package/src/utils/convert-tslint-to-eslint/utils.d.ts +1 -1
  54. package/src/utils/testing.d.ts +1 -1
  55. package/src/utils/versions.d.ts +0 -2
  56. package/src/utils/versions.js +1 -3
  57. package/src/utils/versions.js.map +1 -1
  58. package/src/executors/lint/compat.d.ts +0 -2
  59. package/src/executors/lint/compat.js +0 -6
  60. package/src/executors/lint/compat.js.map +0 -1
  61. package/src/executors/lint/lint.impl.d.ts +0 -2
  62. package/src/executors/lint/lint.impl.js +0 -10
  63. package/src/executors/lint/lint.impl.js.map +0 -1
  64. package/src/executors/lint/schema.json +0 -124
  65. package/src/migrations/update-10-3-0/add-json-ext-to-eslintrc.d.ts +0 -1
  66. package/src/migrations/update-10-3-0/add-json-ext-to-eslintrc.js +0 -52
  67. package/src/migrations/update-10-3-0/add-json-ext-to-eslintrc.js.map +0 -1
  68. package/src/migrations/update-10-3-0/add-root-eslintrc-json-to-workspace-implicit-deps.d.ts +0 -1
  69. package/src/migrations/update-10-3-0/add-root-eslintrc-json-to-workspace-implicit-deps.js +0 -18
  70. package/src/migrations/update-10-3-0/add-root-eslintrc-json-to-workspace-implicit-deps.js.map +0 -1
  71. package/src/migrations/update-10-3-0/update-10-3-0.d.ts +0 -1
  72. package/src/migrations/update-10-3-0/update-10-3-0.js +0 -20
  73. package/src/migrations/update-10-3-0/update-10-3-0.js.map +0 -1
  74. package/src/migrations/update-10-3-0/update-eslint-builder-and-config.d.ts +0 -1
  75. package/src/migrations/update-10-3-0/update-eslint-builder-and-config.js +0 -81
  76. package/src/migrations/update-10-3-0/update-eslint-builder-and-config.js.map +0 -1
  77. package/src/migrations/update-10-3-1/revert-node-modules-files-in-eslint-builder-options.d.ts +0 -1
  78. package/src/migrations/update-10-3-1/revert-node-modules-files-in-eslint-builder-options.js +0 -24
  79. package/src/migrations/update-10-3-1/revert-node-modules-files-in-eslint-builder-options.js.map +0 -1
  80. package/src/migrations/update-10-4-0/update-eslint-configs-to-use-nx-presets.d.ts +0 -7
  81. package/src/migrations/update-10-4-0/update-eslint-configs-to-use-nx-presets.js +0 -447
  82. package/src/migrations/update-10-4-0/update-eslint-configs-to-use-nx-presets.js.map +0 -1
  83. package/src/migrations/update-10-4-0/update-root-eslint-config-to-use-overrides.d.ts +0 -1
  84. package/src/migrations/update-10-4-0/update-root-eslint-config-to-use-overrides.js +0 -107
  85. package/src/migrations/update-10-4-0/update-root-eslint-config-to-use-overrides.js.map +0 -1
  86. package/src/migrations/update-11-5-0/always-use-project-level-tsconfigs-with-eslint.d.ts +0 -3
  87. package/src/migrations/update-11-5-0/always-use-project-level-tsconfigs-with-eslint.js +0 -95
  88. package/src/migrations/update-11-5-0/always-use-project-level-tsconfigs-with-eslint.js.map +0 -1
@@ -1,81 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_1 = require("@angular-devkit/schematics");
4
- const workspace_1 = require("@nrwl/workspace");
5
- const core_1 = require("@angular-devkit/core");
6
- /**
7
- * When migrating projects we need to look up any relevant tsconfig files
8
- * to figure out what glob patterns will stand the best chance of keeping
9
- * the file includes behavior as consistent as possible, before and after
10
- * the migration.
11
- */
12
- function updateESLintBuilder(host) {
13
- return (0, workspace_1.updateBuilderConfig)((options, target, project) => {
14
- if (options.linter === 'tslint') {
15
- return options;
16
- }
17
- target.builder = '@nrwl/linter:eslint';
18
- const tsconfigs = [];
19
- if (options.tsConfig) {
20
- const normalizedTsConfigOption = Array.isArray(options.tsConfig)
21
- ? options.tsConfig
22
- : [options.tsConfig];
23
- normalizedTsConfigOption.forEach((tsConfigPath) => {
24
- try {
25
- tsconfigs.push((0, workspace_1.readJsonInTree)(host, tsConfigPath));
26
- }
27
- catch (_a) { }
28
- try {
29
- tsconfigs.push((0, workspace_1.readJsonInTree)(host, `${project.root}/tsconfig.json`));
30
- }
31
- catch (_b) { }
32
- });
33
- }
34
- else {
35
- try {
36
- tsconfigs.push((0, workspace_1.readJsonInTree)(host, `${project.root}/tsconfig.json`));
37
- }
38
- catch (_a) { }
39
- try {
40
- tsconfigs.push((0, workspace_1.readJsonInTree)(host, `${project.root}/tsconfig.app.json`));
41
- }
42
- catch (_b) { }
43
- try {
44
- tsconfigs.push((0, workspace_1.readJsonInTree)(host, `${project.root}/tsconfig.lib.json`));
45
- }
46
- catch (_c) { }
47
- try {
48
- tsconfigs.push((0, workspace_1.readJsonInTree)(host, `${project.root}/tsconfig.spec.json`));
49
- }
50
- catch (_d) { }
51
- try {
52
- tsconfigs.push((0, workspace_1.readJsonInTree)(host, `${project.root}/tsconfig.e2e.json`));
53
- }
54
- catch (_e) { }
55
- }
56
- const defaultLintFilePatterns = [`${project.root}/**/*.ts`];
57
- // Merge any available `includes` and `files` from the tsconfig files
58
- let lintFilePatterns = !tsconfigs.length
59
- ? defaultLintFilePatterns
60
- : tsconfigs
61
- .map((tsconfig) => {
62
- return [...(tsconfig.include || []), ...(tsconfig.files || [])];
63
- })
64
- .reduce((flat, val) => flat.concat(val), [])
65
- .map((pattern) => (0, core_1.join)((0, core_1.normalize)(project.root), pattern))
66
- /**
67
- * Exclude any files coming from node_modules, they will be ignored by ESLint
68
- * and it will print a warning about it. We shouldn't be spending time linting
69
- * 3rd party files anyway, and if they are relevant to the TypeScript Program
70
- * for the linting run they will still be included in that.
71
- */
72
- .filter((pattern) => !pattern.includes('node_modules'));
73
- lintFilePatterns = [...new Set(lintFilePatterns)];
74
- return { lintFilePatterns };
75
- }, '@nrwl/linter:lint');
76
- }
77
- function default_1() {
78
- return (0, schematics_1.chain)([updateESLintBuilder, (0, workspace_1.formatFiles)()]);
79
- }
80
- exports.default = default_1;
81
- //# sourceMappingURL=update-eslint-builder-and-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-eslint-builder-and-config.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/migrations/update-10-3-0/update-eslint-builder-and-config.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AACzD,+CAIyB;AACzB,+CAAuD;AAEvD;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,IAAU;IACrC,OAAO,IAAA,+BAAmB,EAAC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;QACtD,IAAI,OAAO,CAAC,MAAM,KAAK,QAAQ,EAAE;YAC/B,OAAO,OAAO,CAAC;SAChB;QACD,MAAM,CAAC,OAAO,GAAG,qBAAqB,CAAC;QAEvC,MAAM,SAAS,GAAG,EAAE,CAAC;QAErB,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,MAAM,wBAAwB,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;gBAC9D,CAAC,CAAC,OAAO,CAAC,QAAQ;gBAClB,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YACvB,wBAAwB,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;gBAChD,IAAI;oBACF,SAAS,CAAC,IAAI,CAAC,IAAA,0BAAc,EAAC,IAAI,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AAC,GAAG,CAAC,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;YAClE,CAAC,CAAC;iBACD,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;iBAC3C,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,WAAI,EAAC,IAAA,gBAAS,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;gBACzD;;;;;mBAKG;iBACF,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;QAE9D,gBAAgB,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAElD,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC9B,CAAC,EAAE,mBAAmB,CAAC,CAAC;AAC1B,CAAC;AAED;IACE,OAAO,IAAA,kBAAK,EAAC,CAAC,mBAAmB,EAAE,IAAA,uBAAW,GAAE,CAAC,CAAC,CAAC;AACrD,CAAC;AAFD,4BAEC"}
@@ -1 +0,0 @@
1
- export default function (): import("@angular-devkit/schematics").Rule;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_1 = require("@angular-devkit/schematics");
4
- const workspace_1 = require("@nrwl/workspace");
5
- /**
6
- * The migration for v10.3.0 called "update-eslint-builder-and-config" initially had a bug
7
- * where it included files from node_modules in the `lintFilePatterns` option if they were
8
- * explicitly included in any of the relevant tsconfig files.
9
- *
10
- * This has now been fixed in the original migration, but this extra migration will handle
11
- * fixing up any setups which migrated in the interim and are currently experiencing lint
12
- * warnings as a result.
13
- */
14
- function updateESLintBuilder() {
15
- return (0, workspace_1.updateBuilderConfig)((options) => {
16
- const lintFilePatterns = options.lintFilePatterns || [];
17
- return Object.assign(Object.assign({}, options), { lintFilePatterns: lintFilePatterns.filter((pattern) => !pattern.includes('node_modules')) });
18
- }, '@nrwl/linter:eslint');
19
- }
20
- function default_1() {
21
- return (0, schematics_1.chain)([updateESLintBuilder, (0, workspace_1.formatFiles)()]);
22
- }
23
- exports.default = default_1;
24
- //# sourceMappingURL=revert-node-modules-files-in-eslint-builder-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"revert-node-modules-files-in-eslint-builder-options.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/migrations/update-10-3-1/revert-node-modules-files-in-eslint-builder-options.ts"],"names":[],"mappings":";;AAAA,2DAAmD;AACnD,+CAAmE;AAEnE;;;;;;;;GAQG;AACH,SAAS,mBAAmB;IAC1B,OAAO,IAAA,+BAAmB,EAAC,CAAC,OAAO,EAAE,EAAE;QACrC,MAAM,gBAAgB,GACnB,OAAO,CAAC,gBAA6B,IAAI,EAAE,CAAC;QAC/C,uCACK,OAAO,KACV,gBAAgB,EAAE,gBAAgB,CAAC,MAAM,CACvC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAC/C,IACD;IACJ,CAAC,EAAE,qBAAqB,CAAC,CAAC;AAC5B,CAAC;AAED;IACE,OAAO,IAAA,kBAAK,EAAC,CAAC,mBAAmB,EAAE,IAAA,uBAAW,GAAE,CAAC,CAAC,CAAC;AACrD,CAAC;AAFD,4BAEC"}
@@ -1,7 +0,0 @@
1
- import type { Linter } from 'eslint';
2
- export default function (): import("@angular-devkit/schematics").Rule;
3
- export declare function updateExtendsAndRemoveDuplication(json: Linter.Config, configBeingExtended: Linter.Config, deleteIfUltimatelyEmpty: boolean, extendsToAdd: string): void;
4
- export declare function updatePluginsAndRemoveDuplication(json: Linter.Config, configBeingExtended: Linter.Config, deleteIfUltimatelyEmpty: boolean, ensurePlugin?: string): void;
5
- export declare function updateParserOptionsAndRemoveDuplication(json: Linter.Config, configBeingExtended: Linter.Config): void;
6
- export declare function updateObjPropAndRemoveDuplication(json: Linter.Config, configBeingExtended: Linter.Config, objPropName: string, deleteIfUltimatelyEmpty: boolean): void;
7
- export declare function updateOverridesAndRemoveDuplication(json: Linter.Config, configBeingExtended: Linter.Config, deleteIfUltimatelyEmpty: boolean): void;
@@ -1,447 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateOverridesAndRemoveDuplication = exports.updateObjPropAndRemoveDuplication = exports.updateParserOptionsAndRemoveDuplication = exports.updatePluginsAndRemoveDuplication = exports.updateExtendsAndRemoveDuplication = void 0;
4
- const core_1 = require("@angular-devkit/core");
5
- const schematics_1 = require("@angular-devkit/schematics");
6
- const workspace_1 = require("@nrwl/workspace");
7
- const assert = require("assert");
8
- /**
9
- * We want to update the JSON in such a way that we:
10
- * - extend from our Nx shareable configs where applicable
11
- * - remove as much duplication between the JSON and the underlying
12
- * shareable config as is safely possible
13
- */
14
- function updateRootESLintConfig(host) {
15
- return host.exists('.eslintrc.json')
16
- ? (0, workspace_1.updateJsonInTree)('.eslintrc.json', (json) => {
17
- updateExtendsAndRemoveDuplication(json, currentTypescriptConfig, true, 'plugin:@nrwl/nx/typescript');
18
- /**
19
- * We always want to explicitly include the @nrwl/nx plugin
20
- * because we continue to use the @nrwl/nx/enforce-module-boundaries
21
- * in the first party config and it helps make things clearer
22
- */
23
- updatePluginsAndRemoveDuplication(json, currentTypescriptConfig, true, '@nrwl/nx');
24
- updateParserOptionsAndRemoveDuplication(json, currentTypescriptConfig);
25
- /**
26
- * In the case of the existing Nx root .eslintrc.json out of the box,
27
- * there is a single overrides for .tsx files. This is now covered
28
- * by the shared config, so if the user still has that defined we can
29
- * also remove that safely.
30
- */
31
- updateOverridesAndRemoveDuplication(json, currentTypescriptConfig, true);
32
- updateObjPropAndRemoveDuplication(json, currentTypescriptConfig, 'rules', false);
33
- if (json.parser === currentTypescriptConfig.parser) {
34
- delete json.parser;
35
- }
36
- return json;
37
- })
38
- : (0, schematics_1.noop)();
39
- }
40
- function updateReactESLintConfigs(host) {
41
- const workspace = (0, workspace_1.readWorkspace)(host);
42
- return (0, schematics_1.chain)([
43
- ...Object.keys(workspace.projects).map((k) => {
44
- const p = workspace.projects[k];
45
- const eslintConfigPath = (0, core_1.join)((0, core_1.normalize)(p.root), '.eslintrc.json');
46
- if (!host.exists(eslintConfigPath)) {
47
- return (0, schematics_1.noop)();
48
- }
49
- return (0, workspace_1.updateJsonInTree)(eslintConfigPath, (json) => {
50
- var _a, _b, _c;
51
- /**
52
- * There isn't a way to know for sure if a project was started with the Nx
53
- * original inline React ESLint config (for applications it is easy to know
54
- * from the project configuration, but that is not the case for all libraries).
55
- *
56
- * We therefore try and infer it based on the presence of react eslint plugins
57
- * within the config that is currently there.
58
- */
59
- if (((_a = json.plugins) === null || _a === void 0 ? void 0 : _a.includes('react')) ||
60
- ((_b = json.plugins) === null || _b === void 0 ? void 0 : _b.includes('react-hooks')) ||
61
- ((_c = json.plugins) === null || _c === void 0 ? void 0 : _c.includes('jsx-a11y'))) {
62
- updateExtendsAndRemoveDuplication(json, currentReactConfig, true, 'plugin:@nrwl/nx/react');
63
- updatePluginsAndRemoveDuplication(json, currentReactConfig, true);
64
- updateObjPropAndRemoveDuplication(json, currentReactConfig, 'rules', false);
65
- updateObjPropAndRemoveDuplication(json, currentReactConfig, 'env', true);
66
- updateObjPropAndRemoveDuplication(json, currentReactConfig, 'settings', true);
67
- }
68
- return json;
69
- });
70
- }),
71
- ]);
72
- }
73
- function default_1() {
74
- return (0, schematics_1.chain)([
75
- updateRootESLintConfig,
76
- updateReactESLintConfigs,
77
- (0, workspace_1.formatFiles)(),
78
- ]);
79
- }
80
- exports.default = default_1;
81
- const currentReactConfig = {
82
- rules: {
83
- 'array-callback-return': 'warn',
84
- 'dot-location': ['warn', 'property'],
85
- eqeqeq: ['warn', 'smart'],
86
- 'new-parens': 'warn',
87
- 'no-caller': 'warn',
88
- 'no-cond-assign': ['warn', 'except-parens'],
89
- 'no-const-assign': 'warn',
90
- 'no-control-regex': 'warn',
91
- 'no-delete-var': 'warn',
92
- 'no-dupe-args': 'warn',
93
- 'no-dupe-keys': 'warn',
94
- 'no-duplicate-case': 'warn',
95
- 'no-empty-character-class': 'warn',
96
- 'no-empty-pattern': 'warn',
97
- 'no-eval': 'warn',
98
- 'no-ex-assign': 'warn',
99
- 'no-extend-native': 'warn',
100
- 'no-extra-bind': 'warn',
101
- 'no-extra-label': 'warn',
102
- 'no-fallthrough': 'warn',
103
- 'no-func-assign': 'warn',
104
- 'no-implied-eval': 'warn',
105
- 'no-invalid-regexp': 'warn',
106
- 'no-iterator': 'warn',
107
- 'no-label-var': 'warn',
108
- 'no-labels': ['warn', { allowLoop: true, allowSwitch: false }],
109
- 'no-lone-blocks': 'warn',
110
- 'no-loop-func': 'warn',
111
- 'no-mixed-operators': [
112
- 'warn',
113
- {
114
- groups: [
115
- ['&', '|', '^', '~', '<<', '>>', '>>>'],
116
- ['==', '!=', '===', '!==', '>', '>=', '<', '<='],
117
- ['&&', '||'],
118
- ['in', 'instanceof'],
119
- ],
120
- allowSamePrecedence: false,
121
- },
122
- ],
123
- 'no-multi-str': 'warn',
124
- 'no-native-reassign': 'warn',
125
- 'no-negated-in-lhs': 'warn',
126
- 'no-new-func': 'warn',
127
- 'no-new-object': 'warn',
128
- 'no-new-symbol': 'warn',
129
- 'no-new-wrappers': 'warn',
130
- 'no-obj-calls': 'warn',
131
- 'no-octal': 'warn',
132
- 'no-octal-escape': 'warn',
133
- 'no-redeclare': 'warn',
134
- 'no-regex-spaces': 'warn',
135
- 'no-restricted-syntax': ['warn', 'WithStatement'],
136
- 'no-script-url': 'warn',
137
- 'no-self-assign': 'warn',
138
- 'no-self-compare': 'warn',
139
- 'no-sequences': 'warn',
140
- 'no-shadow-restricted-names': 'warn',
141
- 'no-sparse-arrays': 'warn',
142
- 'no-template-curly-in-string': 'warn',
143
- 'no-this-before-super': 'warn',
144
- 'no-throw-literal': 'warn',
145
- 'no-restricted-globals': [
146
- 'error',
147
- 'addEventListener',
148
- 'blur',
149
- 'close',
150
- 'closed',
151
- 'confirm',
152
- 'defaultStatus',
153
- 'defaultstatus',
154
- 'event',
155
- 'external',
156
- 'find',
157
- 'focus',
158
- 'frameElement',
159
- 'frames',
160
- 'history',
161
- 'innerHeight',
162
- 'innerWidth',
163
- 'length',
164
- 'location',
165
- 'locationbar',
166
- 'menubar',
167
- 'moveBy',
168
- 'moveTo',
169
- 'name',
170
- 'onblur',
171
- 'onerror',
172
- 'onfocus',
173
- 'onload',
174
- 'onresize',
175
- 'onunload',
176
- 'open',
177
- 'opener',
178
- 'opera',
179
- 'outerHeight',
180
- 'outerWidth',
181
- 'pageXOffset',
182
- 'pageYOffset',
183
- 'parent',
184
- 'print',
185
- 'removeEventListener',
186
- 'resizeBy',
187
- 'resizeTo',
188
- 'screen',
189
- 'screenLeft',
190
- 'screenTop',
191
- 'screenX',
192
- 'screenY',
193
- 'scroll',
194
- 'scrollbars',
195
- 'scrollBy',
196
- 'scrollTo',
197
- 'scrollX',
198
- 'scrollY',
199
- 'self',
200
- 'status',
201
- 'statusbar',
202
- 'stop',
203
- 'toolbar',
204
- 'top',
205
- ],
206
- 'no-unexpected-multiline': 'warn',
207
- 'no-unreachable': 'warn',
208
- 'no-unused-expressions': 'off',
209
- 'no-unused-labels': 'warn',
210
- 'no-useless-computed-key': 'warn',
211
- 'no-useless-concat': 'warn',
212
- 'no-useless-escape': 'warn',
213
- 'no-useless-rename': [
214
- 'warn',
215
- {
216
- ignoreDestructuring: false,
217
- ignoreImport: false,
218
- ignoreExport: false,
219
- },
220
- ],
221
- 'no-with': 'warn',
222
- 'no-whitespace-before-property': 'warn',
223
- 'react-hooks/exhaustive-deps': 'warn',
224
- 'require-yield': 'warn',
225
- 'rest-spread-spacing': ['warn', 'never'],
226
- strict: ['warn', 'never'],
227
- 'unicode-bom': ['warn', 'never'],
228
- 'use-isnan': 'warn',
229
- 'valid-typeof': 'warn',
230
- 'no-restricted-properties': [
231
- 'error',
232
- {
233
- object: 'require',
234
- property: 'ensure',
235
- message: 'Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting',
236
- },
237
- {
238
- object: 'System',
239
- property: 'import',
240
- message: 'Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting',
241
- },
242
- ],
243
- 'getter-return': 'warn',
244
- 'import/first': 'error',
245
- 'import/no-amd': 'error',
246
- 'import/no-webpack-loader-syntax': 'error',
247
- 'react/forbid-foreign-prop-types': ['warn', { allowInPropTypes: true }],
248
- 'react/jsx-no-comment-textnodes': 'warn',
249
- 'react/jsx-no-duplicate-props': 'warn',
250
- 'react/jsx-no-target-blank': 'warn',
251
- 'react/jsx-no-undef': 'error',
252
- 'react/jsx-pascal-case': ['warn', { allowAllCaps: true, ignore: [] }],
253
- 'react/jsx-uses-react': 'warn',
254
- 'react/jsx-uses-vars': 'warn',
255
- 'react/no-danger-with-children': 'warn',
256
- 'react/no-direct-mutation-state': 'warn',
257
- 'react/no-is-mounted': 'warn',
258
- 'react/no-typos': 'error',
259
- 'react/react-in-jsx-scope': 'error',
260
- 'react/require-render-return': 'error',
261
- 'react/style-prop-object': 'warn',
262
- 'react/jsx-no-useless-fragment': 'warn',
263
- 'jsx-a11y/accessible-emoji': 'warn',
264
- 'jsx-a11y/alt-text': 'warn',
265
- 'jsx-a11y/anchor-has-content': 'warn',
266
- 'jsx-a11y/anchor-is-valid': [
267
- 'warn',
268
- { aspects: ['noHref', 'invalidHref'] },
269
- ],
270
- 'jsx-a11y/aria-activedescendant-has-tabindex': 'warn',
271
- 'jsx-a11y/aria-props': 'warn',
272
- 'jsx-a11y/aria-proptypes': 'warn',
273
- 'jsx-a11y/aria-role': 'warn',
274
- 'jsx-a11y/aria-unsupported-elements': 'warn',
275
- 'jsx-a11y/heading-has-content': 'warn',
276
- 'jsx-a11y/iframe-has-title': 'warn',
277
- 'jsx-a11y/img-redundant-alt': 'warn',
278
- 'jsx-a11y/no-access-key': 'warn',
279
- 'jsx-a11y/no-distracting-elements': 'warn',
280
- 'jsx-a11y/no-redundant-roles': 'warn',
281
- 'jsx-a11y/role-has-required-aria-props': 'warn',
282
- 'jsx-a11y/role-supports-aria-props': 'warn',
283
- 'jsx-a11y/scope': 'warn',
284
- 'react-hooks/rules-of-hooks': 'error',
285
- 'default-case': 'off',
286
- 'no-dupe-class-members': 'off',
287
- 'no-undef': 'off',
288
- '@typescript-eslint/consistent-type-assertions': 'warn',
289
- 'no-array-constructor': 'off',
290
- '@typescript-eslint/no-array-constructor': 'warn',
291
- '@typescript-eslint/no-namespace': 'error',
292
- 'no-use-before-define': 'off',
293
- '@typescript-eslint/no-use-before-define': [
294
- 'warn',
295
- {
296
- functions: false,
297
- classes: false,
298
- variables: false,
299
- typedefs: false,
300
- },
301
- ],
302
- 'no-unused-vars': 'off',
303
- '@typescript-eslint/no-unused-vars': [
304
- 'warn',
305
- { args: 'none', ignoreRestSiblings: true },
306
- ],
307
- 'no-useless-constructor': 'off',
308
- '@typescript-eslint/no-useless-constructor': 'warn',
309
- '@typescript-eslint/no-unused-expressions': [
310
- 'error',
311
- {
312
- allowShortCircuit: true,
313
- allowTernary: true,
314
- allowTaggedTemplates: true,
315
- },
316
- ],
317
- },
318
- env: {
319
- browser: true,
320
- commonjs: true,
321
- es6: true,
322
- jest: true,
323
- node: true,
324
- },
325
- settings: { react: { version: 'detect' } },
326
- plugins: ['import', 'jsx-a11y', 'react', 'react-hooks'],
327
- };
328
- const currentTypescriptConfig = {
329
- parser: '@typescript-eslint/parser',
330
- parserOptions: {
331
- ecmaVersion: 2020,
332
- sourceType: 'module',
333
- },
334
- plugins: ['@typescript-eslint'],
335
- extends: [
336
- 'eslint:recommended',
337
- 'plugin:@typescript-eslint/eslint-recommended',
338
- 'plugin:@typescript-eslint/recommended',
339
- 'prettier',
340
- 'prettier/@typescript-eslint',
341
- ],
342
- rules: {
343
- '@typescript-eslint/explicit-member-accessibility': 'off',
344
- '@typescript-eslint/explicit-module-boundary-types': 'off',
345
- '@typescript-eslint/explicit-function-return-type': 'off',
346
- '@typescript-eslint/no-parameter-properties': 'off',
347
- },
348
- overrides: [
349
- {
350
- files: ['*.tsx'],
351
- rules: {
352
- '@typescript-eslint/no-unused-vars': 'off',
353
- },
354
- },
355
- ],
356
- };
357
- function ensureStringArray(val) {
358
- if (typeof val === 'string') {
359
- return [val];
360
- }
361
- return val || [];
362
- }
363
- function updateExtendsAndRemoveDuplication(json, configBeingExtended, deleteIfUltimatelyEmpty, extendsToAdd) {
364
- // Extends can be a string or an array, normalize first
365
- json.extends = ensureStringArray(json.extends);
366
- configBeingExtended.extends = ensureStringArray(configBeingExtended.extends);
367
- json.extends.unshift(extendsToAdd);
368
- json.extends = json.extends.filter((extended) => !configBeingExtended.extends.includes(extended));
369
- json.extends = Array.from(new Set(json.extends));
370
- if (deleteIfUltimatelyEmpty && json.extends.length === 0) {
371
- delete json.extends;
372
- }
373
- }
374
- exports.updateExtendsAndRemoveDuplication = updateExtendsAndRemoveDuplication;
375
- function updatePluginsAndRemoveDuplication(json, configBeingExtended, deleteIfUltimatelyEmpty, ensurePlugin) {
376
- json.plugins || (json.plugins = []);
377
- configBeingExtended.plugins || (configBeingExtended.plugins = []);
378
- if (ensurePlugin && !json.plugins.includes(ensurePlugin)) {
379
- json.plugins.unshift(ensurePlugin);
380
- }
381
- json.plugins = json.plugins.filter((extended) => !configBeingExtended.plugins.includes(extended));
382
- json.plugins = Array.from(new Set(json.plugins));
383
- if (deleteIfUltimatelyEmpty && json.plugins.length === 0) {
384
- delete json.plugins;
385
- }
386
- }
387
- exports.updatePluginsAndRemoveDuplication = updatePluginsAndRemoveDuplication;
388
- function updateParserOptionsAndRemoveDuplication(json, configBeingExtended) {
389
- json.parserOptions || (json.parserOptions = {});
390
- configBeingExtended.parserOptions || (configBeingExtended.parserOptions = {});
391
- /**
392
- * If the user is still using the 2018 ecmaVersion that Nx set for them
393
- * previously we can just remove it and let them inherit the new 2020 value.
394
- * If the user has set something else (other than 2018 or 2020), we just leave it.
395
- */
396
- if (Number(json.parserOptions.ecmaVersion) === 2018 ||
397
- Number(json.parserOptions.ecmaVersion) ===
398
- Number(configBeingExtended.parserOptions.ecmaVersion)) {
399
- delete json.parserOptions.ecmaVersion;
400
- }
401
- for (const [parserOptionName, parserOptionVal] of Object.entries(json.parserOptions)) {
402
- if (parserOptionVal === configBeingExtended.parserOptions[parserOptionName]) {
403
- delete json.parserOptions[parserOptionName];
404
- }
405
- }
406
- }
407
- exports.updateParserOptionsAndRemoveDuplication = updateParserOptionsAndRemoveDuplication;
408
- function updateObjPropAndRemoveDuplication(json, configBeingExtended, objPropName, deleteIfUltimatelyEmpty) {
409
- json[objPropName] || (json[objPropName] = {});
410
- configBeingExtended[objPropName] || (configBeingExtended[objPropName] = {});
411
- for (const [name, val] of Object.entries(json[objPropName])) {
412
- const valueOfSamePropInExtendedConfig = configBeingExtended[objPropName][name];
413
- try {
414
- assert.deepStrictEqual(val, valueOfSamePropInExtendedConfig);
415
- delete json[objPropName][name];
416
- }
417
- catch (_a) { }
418
- }
419
- if (deleteIfUltimatelyEmpty && Object.keys(json[objPropName]).length === 0) {
420
- delete json[objPropName];
421
- }
422
- }
423
- exports.updateObjPropAndRemoveDuplication = updateObjPropAndRemoveDuplication;
424
- function updateOverridesAndRemoveDuplication(json, configBeingExtended, deleteIfUltimatelyEmpty) {
425
- if (!Array.isArray(json.overrides) || !json.overrides.length) {
426
- return;
427
- }
428
- if (!Array.isArray(configBeingExtended.overrides) ||
429
- !configBeingExtended.overrides.length) {
430
- return;
431
- }
432
- json.overrides = json.overrides.filter((o) => {
433
- for (const extendedOverride of configBeingExtended.overrides) {
434
- try {
435
- assert.deepStrictEqual(o, extendedOverride);
436
- return false;
437
- }
438
- catch (_a) { }
439
- }
440
- return false;
441
- });
442
- if (deleteIfUltimatelyEmpty && json.overrides.length === 0) {
443
- delete json.overrides;
444
- }
445
- }
446
- exports.updateOverridesAndRemoveDuplication = updateOverridesAndRemoveDuplication;
447
- //# sourceMappingURL=update-eslint-configs-to-use-nx-presets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-eslint-configs-to-use-nx-presets.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/migrations/update-10-4-0/update-eslint-configs-to-use-nx-presets.ts"],"names":[],"mappings":";;;AAAA,+CAAuD;AACvD,2DAA+D;AAC/D,+CAA+E;AAC/E,iCAAiC;AAGjC;;;;;GAKG;AACH,SAAS,sBAAsB,CAAC,IAAU;IACxC,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;QAClC,CAAC,CAAC,IAAA,4BAAgB,EAAC,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE;YAC1C,iCAAiC,CAC/B,IAAI,EACJ,uBAAuB,EACvB,IAAI,EACJ,4BAA4B,CAC7B,CAAC;YAEF;;;;eAIG;YACH,iCAAiC,CAC/B,IAAI,EACJ,uBAAuB,EACvB,IAAI,EACJ,UAAU,CACX,CAAC;YAEF,uCAAuC,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;YAEvE;;;;;eAKG;YACH,mCAAmC,CACjC,IAAI,EACJ,uBAAuB,EACvB,IAAI,CACL,CAAC;YAEF,iCAAiC,CAC/B,IAAI,EACJ,uBAAuB,EACvB,OAAO,EACP,KAAK,CACN,CAAC;YAEF,IAAI,IAAI,CAAC,MAAM,KAAK,uBAAuB,CAAC,MAAM,EAAE;gBAClD,OAAO,IAAI,CAAC,MAAM,CAAC;aACpB;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;QACJ,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC;AACb,CAAC;AAED,SAAS,wBAAwB,CAAC,IAAU;IAC1C,MAAM,SAAS,GAAG,IAAA,yBAAa,EAAC,IAAI,CAAC,CAAC;IACtC,OAAO,IAAA,kBAAK,EAAC;QACX,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,Q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