@nx/eslint-plugin 20.4.4 → 20.5.0-beta.0

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-plugin",
3
- "version": "20.4.4",
3
+ "version": "20.5.0-beta.0",
4
4
  "private": false,
5
5
  "description": "The eslint-plugin package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
6
6
  "repository": {
@@ -34,8 +34,8 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "20.4.4",
38
- "@nx/js": "20.4.4",
37
+ "@nx/devkit": "20.5.0-beta.0",
38
+ "@nx/js": "20.5.0-beta.0",
39
39
  "@typescript-eslint/type-utils": "^8.0.0",
40
40
  "@typescript-eslint/utils": "^8.0.0",
41
41
  "chalk": "^4.1.0",
package/src/index.d.ts CHANGED
@@ -1,560 +1 @@
1
- declare const configs: {
2
- typescript: {
3
- parser: string;
4
- parserOptions: {
5
- ecmaVersion: number;
6
- sourceType: string;
7
- tsconfigRootDir: string;
8
- };
9
- plugins: string[];
10
- extends: string[];
11
- rules: {
12
- '@typescript-eslint/explicit-member-accessibility': string;
13
- '@typescript-eslint/explicit-module-boundary-types': string;
14
- '@typescript-eslint/explicit-function-return-type': string;
15
- '@typescript-eslint/no-parameter-properties': string;
16
- '@typescript-eslint/no-non-null-assertion': string;
17
- '@typescript-eslint/adjacent-overload-signatures': string;
18
- '@typescript-eslint/prefer-namespace-keyword': string;
19
- 'no-empty-function': string;
20
- '@typescript-eslint/no-empty-function': string;
21
- '@typescript-eslint/no-inferrable-types': string;
22
- '@typescript-eslint/no-unused-vars': string;
23
- '@typescript-eslint/no-empty-interface': string;
24
- '@typescript-eslint/no-explicit-any': string;
25
- '@typescript-eslint/no-require-imports': string;
26
- };
27
- };
28
- javascript: {
29
- env: {
30
- browser: boolean;
31
- node: boolean;
32
- };
33
- parser: string;
34
- parserOptions: {
35
- ecmaVersion: number;
36
- sourceType: string;
37
- };
38
- plugins: string[];
39
- extends: string[];
40
- rules: {
41
- '@typescript-eslint/explicit-member-accessibility': string;
42
- '@typescript-eslint/explicit-module-boundary-types': string;
43
- '@typescript-eslint/explicit-function-return-type': string;
44
- '@typescript-eslint/no-parameter-properties': string;
45
- '@typescript-eslint/no-var-requires': string;
46
- '@typescript-eslint/no-non-null-assertion': string;
47
- '@typescript-eslint/adjacent-overload-signatures': string;
48
- '@typescript-eslint/prefer-namespace-keyword': string;
49
- 'no-empty-function': string;
50
- '@typescript-eslint/no-empty-function': string;
51
- '@typescript-eslint/no-inferrable-types': string;
52
- '@typescript-eslint/no-unused-vars': string;
53
- '@typescript-eslint/no-empty-interface': string;
54
- '@typescript-eslint/no-explicit-any': string;
55
- '@typescript-eslint/no-require-imports': string;
56
- };
57
- };
58
- react: {
59
- extends: string[];
60
- };
61
- 'react-base': {
62
- plugins: string[];
63
- env: {
64
- browser: boolean;
65
- commonjs: boolean;
66
- es6: boolean;
67
- jest: boolean;
68
- node: boolean;
69
- };
70
- rules: {
71
- 'array-callback-return': string;
72
- 'dot-location': string[];
73
- eqeqeq: string[];
74
- 'new-parens': string;
75
- 'no-caller': string;
76
- 'no-cond-assign': string[];
77
- 'no-const-assign': string;
78
- 'no-control-regex': string;
79
- 'no-delete-var': string;
80
- 'no-dupe-args': string;
81
- 'no-dupe-keys': string;
82
- 'no-duplicate-case': string;
83
- 'no-empty-character-class': string;
84
- 'no-empty-pattern': string;
85
- 'no-eval': string;
86
- 'no-ex-assign': string;
87
- 'no-extend-native': string;
88
- 'no-extra-bind': string;
89
- 'no-extra-label': string;
90
- 'no-fallthrough': string;
91
- 'no-func-assign': string;
92
- 'no-implied-eval': string;
93
- 'no-invalid-regexp': string;
94
- 'no-iterator': string;
95
- 'no-label-var': string;
96
- 'no-labels': (string | {
97
- allowLoop: boolean;
98
- allowSwitch: boolean;
99
- })[];
100
- 'no-lone-blocks': string;
101
- 'no-loop-func': string;
102
- 'no-mixed-operators': (string | {
103
- groups: string[][];
104
- allowSamePrecedence: boolean;
105
- })[];
106
- 'no-multi-str': string;
107
- 'no-native-reassign': string;
108
- 'no-negated-in-lhs': string;
109
- 'no-new-func': string;
110
- 'no-new-object': string;
111
- 'no-new-symbol': string;
112
- 'no-new-wrappers': string;
113
- 'no-obj-calls': string;
114
- 'no-octal': string;
115
- 'no-octal-escape': string;
116
- 'no-redeclare': string;
117
- 'no-regex-spaces': string;
118
- 'no-restricted-syntax': string[];
119
- 'no-script-url': string;
120
- 'no-self-assign': string;
121
- 'no-self-compare': string;
122
- 'no-sequences': string;
123
- 'no-shadow-restricted-names': string;
124
- 'no-sparse-arrays': string;
125
- 'no-template-curly-in-string': string;
126
- 'no-this-before-super': string;
127
- 'no-throw-literal': string;
128
- 'no-restricted-globals': string[];
129
- 'no-unexpected-multiline': string;
130
- 'no-unreachable': string;
131
- 'no-unused-expressions': string;
132
- 'no-unused-labels': string;
133
- 'no-useless-computed-key': string;
134
- 'no-useless-concat': string;
135
- 'no-useless-escape': string;
136
- 'no-useless-rename': (string | {
137
- ignoreDestructuring: boolean;
138
- ignoreImport: boolean;
139
- ignoreExport: boolean;
140
- })[];
141
- 'no-with': string;
142
- 'no-whitespace-before-property': string;
143
- 'require-yield': string;
144
- 'rest-spread-spacing': string[];
145
- strict: string[];
146
- 'unicode-bom': string[];
147
- 'use-isnan': string;
148
- 'valid-typeof': string;
149
- 'no-restricted-properties': (string | {
150
- object: string;
151
- property: string;
152
- message: string;
153
- })[];
154
- 'getter-return': string;
155
- 'import/first': string;
156
- 'import/no-amd': string;
157
- 'import/no-webpack-loader-syntax': string;
158
- };
159
- };
160
- 'react-typescript': {
161
- rules: {
162
- 'default-case': string;
163
- 'no-dupe-class-members': string;
164
- 'no-undef': string;
165
- 'no-array-constructor': string;
166
- '@typescript-eslint/no-array-constructor': string;
167
- '@typescript-eslint/no-namespace': string;
168
- 'no-use-before-define': string;
169
- '@typescript-eslint/no-use-before-define': (string | {
170
- functions: boolean;
171
- classes: boolean;
172
- variables: boolean;
173
- typedefs: boolean;
174
- })[];
175
- 'no-unused-vars': string;
176
- '@typescript-eslint/no-unused-vars': (string | {
177
- args: string;
178
- ignoreRestSiblings: boolean;
179
- })[];
180
- 'no-useless-constructor': string;
181
- '@typescript-eslint/no-useless-constructor': string;
182
- '@typescript-eslint/no-unused-expressions': (string | {
183
- allowShortCircuit: boolean;
184
- allowTernary: boolean;
185
- allowTaggedTemplates: boolean;
186
- })[];
187
- };
188
- };
189
- 'react-jsx': {
190
- settings: {
191
- react: {
192
- version: string;
193
- };
194
- };
195
- plugins: string[];
196
- extends: string[];
197
- rules: {
198
- 'react/forbid-foreign-prop-types': (string | {
199
- allowInPropTypes: boolean;
200
- })[];
201
- 'react/jsx-no-comment-textnodes': string;
202
- 'react/jsx-no-duplicate-props': string;
203
- 'react/jsx-no-target-blank': string;
204
- 'react/jsx-no-undef': string;
205
- 'react/jsx-pascal-case': (string | {
206
- allowAllCaps: boolean;
207
- ignore: any[];
208
- })[];
209
- 'react/jsx-uses-vars': string;
210
- 'react/no-danger-with-children': string;
211
- 'react/no-direct-mutation-state': string;
212
- 'react/no-is-mounted': string;
213
- 'react/no-typos': string;
214
- 'react/jsx-uses-react': string;
215
- 'react/react-in-jsx-scope': string;
216
- 'react/require-render-return': string;
217
- 'react/style-prop-object': string;
218
- 'react/jsx-no-useless-fragment': string;
219
- 'jsx-a11y/accessible-emoji': string;
220
- 'jsx-a11y/alt-text': string;
221
- 'jsx-a11y/anchor-has-content': string;
222
- 'jsx-a11y/anchor-is-valid': (string | {
223
- aspects: string[];
224
- })[];
225
- 'jsx-a11y/aria-activedescendant-has-tabindex': string;
226
- 'jsx-a11y/aria-props': string;
227
- 'jsx-a11y/aria-proptypes': string;
228
- 'jsx-a11y/aria-role': string;
229
- 'jsx-a11y/aria-unsupported-elements': string;
230
- 'jsx-a11y/heading-has-content': string;
231
- 'jsx-a11y/iframe-has-title': string;
232
- 'jsx-a11y/img-redundant-alt': string;
233
- 'jsx-a11y/no-access-key': string;
234
- 'jsx-a11y/no-distracting-elements': string;
235
- 'jsx-a11y/no-redundant-roles': string;
236
- 'jsx-a11y/role-has-required-aria-props': string;
237
- 'jsx-a11y/role-supports-aria-props': string;
238
- 'jsx-a11y/scope': string;
239
- };
240
- };
241
- angular: {
242
- env: {
243
- browser: boolean;
244
- es6: boolean;
245
- node: boolean;
246
- };
247
- plugins: string[];
248
- extends: string[];
249
- parserOptions: {
250
- project: any[];
251
- };
252
- rules: {};
253
- };
254
- 'angular-template': {
255
- plugins: string[];
256
- extends: string[];
257
- rules: {};
258
- };
259
- 'flat/base': {
260
- plugins: {
261
- readonly "@nx": any;
262
- };
263
- ignores: string[];
264
- }[];
265
- readonly "flat/typescript": typeof import("./flat-configs/typescript").default;
266
- readonly "flat/javascript": typeof import("./flat-configs/javascript").default;
267
- readonly "flat/react": typeof import("./flat-configs/react-tmp").default;
268
- readonly "flat/react-base": typeof import("./flat-configs/react-base").default;
269
- readonly "flat/react-typescript": typeof import("./flat-configs/react-typescript").default;
270
- readonly "flat/react-jsx": typeof import("./flat-configs/react-jsx").default;
271
- readonly "flat/angular": typeof import("./flat-configs/angular").default;
272
- readonly "flat/angular-template": typeof import("./flat-configs/angular-template").default;
273
- };
274
- declare const rules: {
275
- "enforce-module-boundaries": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/enforce-module-boundaries").MessageIds, import("./rules/enforce-module-boundaries").Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
276
- "nx-plugin-checks": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/nx-plugin-checks").MessageIds, import("./rules/nx-plugin-checks").Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
277
- "dependency-checks": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/dependency-checks").MessageIds, import("./rules/dependency-checks").Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
278
- };
279
- declare const _default: {
280
- configs: {
281
- typescript: {
282
- parser: string;
283
- parserOptions: {
284
- ecmaVersion: number;
285
- sourceType: string;
286
- tsconfigRootDir: string;
287
- };
288
- plugins: string[];
289
- extends: string[];
290
- rules: {
291
- '@typescript-eslint/explicit-member-accessibility': string;
292
- '@typescript-eslint/explicit-module-boundary-types': string;
293
- '@typescript-eslint/explicit-function-return-type': string;
294
- '@typescript-eslint/no-parameter-properties': string;
295
- '@typescript-eslint/no-non-null-assertion': string;
296
- '@typescript-eslint/adjacent-overload-signatures': string;
297
- '@typescript-eslint/prefer-namespace-keyword': string;
298
- 'no-empty-function': string;
299
- '@typescript-eslint/no-empty-function': string;
300
- '@typescript-eslint/no-inferrable-types': string;
301
- '@typescript-eslint/no-unused-vars': string;
302
- '@typescript-eslint/no-empty-interface': string;
303
- '@typescript-eslint/no-explicit-any': string;
304
- '@typescript-eslint/no-require-imports': string;
305
- };
306
- };
307
- javascript: {
308
- env: {
309
- browser: boolean;
310
- node: boolean;
311
- };
312
- parser: string;
313
- parserOptions: {
314
- ecmaVersion: number;
315
- sourceType: string;
316
- };
317
- plugins: string[];
318
- extends: string[];
319
- rules: {
320
- '@typescript-eslint/explicit-member-accessibility': string;
321
- '@typescript-eslint/explicit-module-boundary-types': string;
322
- '@typescript-eslint/explicit-function-return-type': string;
323
- '@typescript-eslint/no-parameter-properties': string;
324
- '@typescript-eslint/no-var-requires': string;
325
- '@typescript-eslint/no-non-null-assertion': string;
326
- '@typescript-eslint/adjacent-overload-signatures': string;
327
- '@typescript-eslint/prefer-namespace-keyword': string;
328
- 'no-empty-function': string;
329
- '@typescript-eslint/no-empty-function': string;
330
- '@typescript-eslint/no-inferrable-types': string;
331
- '@typescript-eslint/no-unused-vars': string;
332
- '@typescript-eslint/no-empty-interface': string;
333
- '@typescript-eslint/no-explicit-any': string;
334
- '@typescript-eslint/no-require-imports': string;
335
- };
336
- };
337
- react: {
338
- extends: string[];
339
- };
340
- 'react-base': {
341
- plugins: string[];
342
- env: {
343
- browser: boolean;
344
- commonjs: boolean;
345
- es6: boolean;
346
- jest: boolean;
347
- node: boolean;
348
- };
349
- rules: {
350
- 'array-callback-return': string;
351
- 'dot-location': string[];
352
- eqeqeq: string[];
353
- 'new-parens': string;
354
- 'no-caller': string;
355
- 'no-cond-assign': string[];
356
- 'no-const-assign': string;
357
- 'no-control-regex': string;
358
- 'no-delete-var': string;
359
- 'no-dupe-args': string;
360
- 'no-dupe-keys': string;
361
- 'no-duplicate-case': string;
362
- 'no-empty-character-class': string;
363
- 'no-empty-pattern': string;
364
- 'no-eval': string;
365
- 'no-ex-assign': string;
366
- 'no-extend-native': string;
367
- 'no-extra-bind': string;
368
- 'no-extra-label': string;
369
- 'no-fallthrough': string;
370
- 'no-func-assign': string;
371
- 'no-implied-eval': string;
372
- 'no-invalid-regexp': string;
373
- 'no-iterator': string;
374
- 'no-label-var': string;
375
- 'no-labels': (string | {
376
- allowLoop: boolean;
377
- allowSwitch: boolean;
378
- })[];
379
- 'no-lone-blocks': string;
380
- 'no-loop-func': string;
381
- 'no-mixed-operators': (string | {
382
- groups: string[][];
383
- allowSamePrecedence: boolean;
384
- })[];
385
- 'no-multi-str': string;
386
- 'no-native-reassign': string;
387
- 'no-negated-in-lhs': string;
388
- 'no-new-func': string;
389
- 'no-new-object': string;
390
- 'no-new-symbol': string;
391
- 'no-new-wrappers': string;
392
- 'no-obj-calls': string;
393
- 'no-octal': string;
394
- 'no-octal-escape': string;
395
- 'no-redeclare': string;
396
- 'no-regex-spaces': string;
397
- 'no-restricted-syntax': string[];
398
- 'no-script-url': string;
399
- 'no-self-assign': string;
400
- 'no-self-compare': string;
401
- 'no-sequences': string;
402
- 'no-shadow-restricted-names': string;
403
- 'no-sparse-arrays': string;
404
- 'no-template-curly-in-string': string;
405
- 'no-this-before-super': string;
406
- 'no-throw-literal': string;
407
- 'no-restricted-globals': string[];
408
- 'no-unexpected-multiline': string;
409
- 'no-unreachable': string;
410
- 'no-unused-expressions': string;
411
- 'no-unused-labels': string;
412
- 'no-useless-computed-key': string;
413
- 'no-useless-concat': string;
414
- 'no-useless-escape': string;
415
- 'no-useless-rename': (string | {
416
- ignoreDestructuring: boolean;
417
- ignoreImport: boolean;
418
- ignoreExport: boolean;
419
- })[];
420
- 'no-with': string;
421
- 'no-whitespace-before-property': string;
422
- 'require-yield': string;
423
- 'rest-spread-spacing': string[];
424
- strict: string[];
425
- 'unicode-bom': string[];
426
- 'use-isnan': string;
427
- 'valid-typeof': string;
428
- 'no-restricted-properties': (string | {
429
- object: string;
430
- property: string;
431
- message: string;
432
- })[];
433
- 'getter-return': string;
434
- 'import/first': string;
435
- 'import/no-amd': string;
436
- 'import/no-webpack-loader-syntax': string;
437
- };
438
- };
439
- 'react-typescript': {
440
- rules: {
441
- 'default-case': string;
442
- 'no-dupe-class-members': string;
443
- 'no-undef': string;
444
- 'no-array-constructor': string;
445
- '@typescript-eslint/no-array-constructor': string;
446
- '@typescript-eslint/no-namespace': string;
447
- 'no-use-before-define': string;
448
- '@typescript-eslint/no-use-before-define': (string | {
449
- functions: boolean;
450
- classes: boolean;
451
- variables: boolean;
452
- typedefs: boolean;
453
- })[];
454
- 'no-unused-vars': string;
455
- '@typescript-eslint/no-unused-vars': (string | {
456
- args: string;
457
- ignoreRestSiblings: boolean;
458
- })[];
459
- 'no-useless-constructor': string;
460
- '@typescript-eslint/no-useless-constructor': string;
461
- '@typescript-eslint/no-unused-expressions': (string | {
462
- allowShortCircuit: boolean;
463
- allowTernary: boolean;
464
- allowTaggedTemplates: boolean;
465
- })[];
466
- };
467
- };
468
- 'react-jsx': {
469
- settings: {
470
- react: {
471
- version: string;
472
- };
473
- };
474
- plugins: string[];
475
- extends: string[];
476
- rules: {
477
- 'react/forbid-foreign-prop-types': (string | {
478
- allowInPropTypes: boolean;
479
- })[];
480
- 'react/jsx-no-comment-textnodes': string;
481
- 'react/jsx-no-duplicate-props': string;
482
- 'react/jsx-no-target-blank': string;
483
- 'react/jsx-no-undef': string;
484
- 'react/jsx-pascal-case': (string | {
485
- allowAllCaps: boolean;
486
- ignore: any[];
487
- })[];
488
- 'react/jsx-uses-vars': string;
489
- 'react/no-danger-with-children': string;
490
- 'react/no-direct-mutation-state': string;
491
- 'react/no-is-mounted': string;
492
- 'react/no-typos': string;
493
- 'react/jsx-uses-react': string;
494
- 'react/react-in-jsx-scope': string;
495
- 'react/require-render-return': string;
496
- 'react/style-prop-object': string;
497
- 'react/jsx-no-useless-fragment': string;
498
- 'jsx-a11y/accessible-emoji': string;
499
- 'jsx-a11y/alt-text': string;
500
- 'jsx-a11y/anchor-has-content': string;
501
- 'jsx-a11y/anchor-is-valid': (string | {
502
- aspects: string[];
503
- })[];
504
- 'jsx-a11y/aria-activedescendant-has-tabindex': string;
505
- 'jsx-a11y/aria-props': string;
506
- 'jsx-a11y/aria-proptypes': string;
507
- 'jsx-a11y/aria-role': string;
508
- 'jsx-a11y/aria-unsupported-elements': string;
509
- 'jsx-a11y/heading-has-content': string;
510
- 'jsx-a11y/iframe-has-title': string;
511
- 'jsx-a11y/img-redundant-alt': string;
512
- 'jsx-a11y/no-access-key': string;
513
- 'jsx-a11y/no-distracting-elements': string;
514
- 'jsx-a11y/no-redundant-roles': string;
515
- 'jsx-a11y/role-has-required-aria-props': string;
516
- 'jsx-a11y/role-supports-aria-props': string;
517
- 'jsx-a11y/scope': string;
518
- };
519
- };
520
- angular: {
521
- env: {
522
- browser: boolean;
523
- es6: boolean;
524
- node: boolean;
525
- };
526
- plugins: string[];
527
- extends: string[];
528
- parserOptions: {
529
- project: any[];
530
- };
531
- rules: {};
532
- };
533
- 'angular-template': {
534
- plugins: string[];
535
- extends: string[];
536
- rules: {};
537
- };
538
- 'flat/base': {
539
- plugins: {
540
- readonly "@nx": any;
541
- };
542
- ignores: string[];
543
- }[];
544
- readonly "flat/typescript": typeof import("./flat-configs/typescript").default;
545
- readonly "flat/javascript": typeof import("./flat-configs/javascript").default;
546
- readonly "flat/react": typeof import("./flat-configs/react-tmp").default;
547
- readonly "flat/react-base": typeof import("./flat-configs/react-base").default;
548
- readonly "flat/react-typescript": typeof import("./flat-configs/react-typescript").default;
549
- readonly "flat/react-jsx": typeof import("./flat-configs/react-jsx").default;
550
- readonly "flat/angular": typeof import("./flat-configs/angular").default;
551
- readonly "flat/angular-template": typeof import("./flat-configs/angular-template").default;
552
- };
553
- rules: {
554
- "enforce-module-boundaries": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/enforce-module-boundaries").MessageIds, import("./rules/enforce-module-boundaries").Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
555
- "nx-plugin-checks": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/nx-plugin-checks").MessageIds, import("./rules/nx-plugin-checks").Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
556
- "dependency-checks": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/dependency-checks").MessageIds, import("./rules/dependency-checks").Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
557
- };
558
- };
559
- export default _default;
560
- export { configs, rules };
1
+ export {};
package/src/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rules = exports.configs = void 0;
4
3
  const tslib_1 = require("tslib");
5
4
  const typescript_1 = tslib_1.__importDefault(require("./configs/typescript"));
6
5
  const javascript_1 = tslib_1.__importDefault(require("./configs/javascript"));
@@ -16,50 +15,49 @@ const nx_plugin_checks_1 = tslib_1.__importStar(require("./rules/nx-plugin-check
16
15
  const dependency_checks_1 = tslib_1.__importStar(require("./rules/dependency-checks"));
17
16
  // Resolve any custom rules that might exist in the current workspace
18
17
  const resolve_workspace_rules_1 = require("./resolve-workspace-rules");
19
- const configs = {
20
- // eslintrc configs
21
- typescript: typescript_1.default,
22
- javascript: javascript_1.default,
23
- react: react_tmp_1.default,
24
- 'react-base': react_base_1.default,
25
- 'react-typescript': react_typescript_1.default,
26
- 'react-jsx': react_jsx_1.default,
27
- angular: angular_1.default,
28
- 'angular-template': angular_template_1.default,
29
- // flat configs
30
- // Note: Using getters here to avoid importing packages `angular-eslint` statically, which can lead to errors if not installed.
31
- 'flat/base': base_1.default,
32
- get ['flat/typescript']() {
33
- return require('./flat-configs/typescript').default;
18
+ module.exports = {
19
+ configs: {
20
+ // eslintrc configs
21
+ typescript: typescript_1.default,
22
+ javascript: javascript_1.default,
23
+ react: react_tmp_1.default,
24
+ 'react-base': react_base_1.default,
25
+ 'react-typescript': react_typescript_1.default,
26
+ 'react-jsx': react_jsx_1.default,
27
+ angular: angular_1.default,
28
+ 'angular-template': angular_template_1.default,
29
+ // flat configs
30
+ // Note: Using getters here to avoid importing packages `angular-eslint` statically, which can lead to errors if not installed.
31
+ 'flat/base': base_1.default,
32
+ get ['flat/typescript']() {
33
+ return require('./flat-configs/typescript').default;
34
+ },
35
+ get ['flat/javascript']() {
36
+ return require('./flat-configs/javascript').default;
37
+ },
38
+ get ['flat/react']() {
39
+ return require('./flat-configs/react-tmp').default;
40
+ },
41
+ get ['flat/react-base']() {
42
+ return require('./flat-configs/react-base').default;
43
+ },
44
+ get ['flat/react-typescript']() {
45
+ return require('./flat-configs/react-typescript').default;
46
+ },
47
+ get ['flat/react-jsx']() {
48
+ return require('./flat-configs/react-jsx').default;
49
+ },
50
+ get ['flat/angular']() {
51
+ return require('./flat-configs/angular').default;
52
+ },
53
+ get ['flat/angular-template']() {
54
+ return require('./flat-configs/angular-template').default;
55
+ },
56
+ },
57
+ rules: {
58
+ [enforce_module_boundaries_1.RULE_NAME]: enforce_module_boundaries_1.default,
59
+ [nx_plugin_checks_1.RULE_NAME]: nx_plugin_checks_1.default,
60
+ [dependency_checks_1.RULE_NAME]: dependency_checks_1.default,
61
+ ...resolve_workspace_rules_1.workspaceRules,
34
62
  },
35
- get ['flat/javascript']() {
36
- return require('./flat-configs/javascript').default;
37
- },
38
- get ['flat/react']() {
39
- return require('./flat-configs/react-tmp').default;
40
- },
41
- get ['flat/react-base']() {
42
- return require('./flat-configs/react-base').default;
43
- },
44
- get ['flat/react-typescript']() {
45
- return require('./flat-configs/react-typescript').default;
46
- },
47
- get ['flat/react-jsx']() {
48
- return require('./flat-configs/react-jsx').default;
49
- },
50
- get ['flat/angular']() {
51
- return require('./flat-configs/angular').default;
52
- },
53
- get ['flat/angular-template']() {
54
- return require('./flat-configs/angular-template').default;
55
- },
56
- };
57
- exports.configs = configs;
58
- const rules = {
59
- [enforce_module_boundaries_1.RULE_NAME]: enforce_module_boundaries_1.default,
60
- [nx_plugin_checks_1.RULE_NAME]: nx_plugin_checks_1.default,
61
- [dependency_checks_1.RULE_NAME]: dependency_checks_1.default,
62
- ...resolve_workspace_rules_1.workspaceRules,
63
63
  };
64
- exports.rules = rules;
65
- exports.default = { configs, rules };
@@ -129,13 +129,7 @@ exports.default = utils_1.ESLintUtils.RuleCreator(() => `https://github.com/nrwl
129
129
  packageRange.startsWith('file:') ||
130
130
  npmDependencies[packageName] === '*' ||
131
131
  packageRange === '*' ||
132
- packageRange.startsWith('workspace:') ||
133
- /**
134
- * Catalogs can be named, or left unnamed
135
- * So just checking up until the : will catch both cases
136
- * e.g. catalog:some-catalog or catalog:
137
- */
138
- packageRange.startsWith('catalog:') ||
132
+ packageRange === 'workspace:*' ||
139
133
  (0, semver_1.satisfies)(npmDependencies[packageName], packageRange, {
140
134
  includePrerelease: true,
141
135
  })) {