@perfective/eslint-config 0.27.1 → 0.28.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.
Files changed (40) hide show
  1. package/README.adoc +18 -19
  2. package/README.md +21 -24
  3. package/index.js +151 -121
  4. package/package.json +13 -15
  5. package/rules/array-func/index.js +40 -4
  6. package/rules/cypress/index.js +52 -12
  7. package/rules/eslint/index.js +7 -6
  8. package/rules/eslint/layout-formatting.js +65 -65
  9. package/rules/eslint/possible-problems.js +89 -89
  10. package/rules/eslint/suggestions.js +178 -178
  11. package/rules/eslint-comments/best-practices.js +9 -9
  12. package/rules/eslint-comments/index.js +43 -8
  13. package/rules/eslint-comments/stylistic-issues.js +16 -16
  14. package/rules/import/helpful-warnings.js +11 -11
  15. package/rules/import/index.js +12 -10
  16. package/rules/import/module-systems.js +11 -11
  17. package/rules/import/static-analysis.js +27 -27
  18. package/rules/import/style-guide.js +34 -34
  19. package/rules/jest/index.js +53 -78
  20. package/rules/jest/typescript-eslint.js +6 -6
  21. package/rules/jest-dom/index.js +40 -4
  22. package/rules/jsdoc/index.js +42 -4
  23. package/rules/n/index.js +40 -4
  24. package/rules/prefer-arrow/index.js +40 -4
  25. package/rules/promise/index.js +54 -7
  26. package/rules/rxjs/index.js +40 -4
  27. package/rules/security/index.js +40 -4
  28. package/rules/simple-import-sort/index.js +41 -4
  29. package/rules/stylistic/js/index.js +40 -4
  30. package/rules/stylistic/jsx/index.js +41 -5
  31. package/rules/stylistic/plus/index.js +40 -4
  32. package/rules/stylistic/ts/index.js +40 -4
  33. package/rules/testing-library/index.js +40 -4
  34. package/rules/typescript-eslint/extension-rules.js +114 -114
  35. package/rules/typescript-eslint/index.js +43 -8
  36. package/rules/typescript-eslint/supported-rules.js +315 -314
  37. package/rules/unicorn/index.js +40 -4
  38. package/rules/sonarjs/bug-detection.js +0 -15
  39. package/rules/sonarjs/code-smell-detection.js +0 -27
  40. package/rules/sonarjs/index.js +0 -10
@@ -1,180 +1,180 @@
1
1
  "use strict";
2
- module.exports = {
3
- rules: {
4
- 'accessor-pairs': 'error',
5
- 'arrow-body-style': ['warn', 'as-needed'],
6
- 'block-scoped-var': 'error',
7
- 'camelcase': 'off',
8
- 'capitalized-comments': ['warn', 'always', {
9
- ignorePattern: 'eslint|tslint',
10
- ignoreConsecutiveComments: true,
11
- }],
12
- 'class-methods-use-this': 'off',
13
- 'complexity': ['error', 3],
14
- 'consistent-return': 'error',
15
- 'consistent-this': ['error', 'self'],
16
- 'curly': ['warn', 'all'],
17
- 'default-case': 'error',
18
- 'default-case-last': 'error',
19
- 'default-param-last': 'error',
20
- 'dot-notation': ['warn', {
21
- allowKeywords: true,
22
- }],
23
- 'eqeqeq': ['warn', 'always'],
24
- 'func-name-matching': ['error', 'always'],
25
- 'func-names': ['error', 'always'],
26
- 'func-style': ['error', 'declaration'],
27
- 'grouped-accessor-pairs': ['error', 'setBeforeGet'],
28
- 'guard-for-in': 'error',
29
- 'id-denylist': ['error', 'arr', 'ctx', 'el', 'elem', 'err', 'ind', 'ptr'],
30
- 'id-length': 'off',
31
- 'id-match': 'off',
32
- 'init-declarations': ['error', 'always'],
33
- 'logical-assignment-operators': ['warn', 'always', {
34
- enforceForIfStatements: true,
35
- }],
36
- 'max-classes-per-file': ['error', 1],
37
- 'max-depth': ['error', 4],
38
- 'max-lines': 'off',
39
- 'max-lines-per-function': 'off',
40
- 'max-nested-callbacks': ['error', 2],
41
- 'max-params': ['off', {
42
- max: 3,
43
- }],
44
- 'max-statements': ['off', {
45
- max: 10,
46
- }],
47
- 'multiline-comment-style': 'off',
48
- 'new-cap': ['error', {
49
- newIsCap: true,
50
- capIsNew: true,
51
- properties: true,
52
- }],
53
- 'no-alert': 'error',
54
- 'no-array-constructor': 'error',
55
- 'no-bitwise': 'error',
56
- 'no-caller': 'error',
57
- 'no-case-declarations': 'error',
58
- 'no-confusing-arrow': 'off',
59
- 'no-console': 'error',
60
- 'no-continue': 'error',
61
- 'no-delete-var': 'error',
62
- 'no-div-regex': 'warn',
63
- 'no-else-return': ['warn', {
64
- allowElseIf: false,
65
- }],
66
- 'no-empty': 'error',
67
- 'no-empty-function': 'error',
68
- 'no-empty-static-block': 'error',
69
- 'no-eq-null': 'error',
70
- 'no-eval': 'error',
71
- 'no-extend-native': 'error',
72
- 'no-extra-bind': 'warn',
73
- 'no-extra-boolean-cast': 'warn',
74
- 'no-extra-label': 'warn',
75
- 'no-extra-semi': 'off',
76
- 'no-floating-decimal': 'off',
77
- 'no-global-assign': 'error',
78
- 'no-implicit-coercion': 'warn',
79
- 'no-implicit-globals': 'error',
80
- 'no-implied-eval': 'error',
81
- 'no-inline-comments': ['error', {
82
- ignorePattern: '^ == .+',
83
- }],
84
- 'no-invalid-this': 'error',
85
- 'no-iterator': 'error',
86
- 'no-label-var': 'error',
87
- 'no-labels': 'error',
88
- 'no-lone-blocks': 'error',
89
- 'no-lonely-if': 'warn',
90
- 'no-loop-func': 'error',
91
- 'no-magic-numbers': 'off',
92
- 'no-mixed-operators': 'off',
93
- 'no-multi-assign': 'error',
94
- 'no-multi-str': 'error',
95
- 'no-negated-condition': 'off',
96
- 'no-nested-ternary': 'error',
97
- 'no-new': 'error',
98
- 'no-new-func': 'error',
99
- 'no-new-object': 'off',
100
- 'no-new-wrappers': 'error',
101
- 'no-nonoctal-decimal-escape': 'error',
102
- 'no-object-constructor': 'error',
103
- 'no-octal': 'error',
104
- 'no-octal-escape': 'error',
105
- 'no-param-reassign': 'error',
106
- 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
107
- 'no-proto': 'error',
108
- 'no-redeclare': 'error',
109
- 'no-regex-spaces': 'warn',
110
- 'no-restricted-exports': 'off',
111
- 'no-restricted-globals': 'error',
112
- 'no-restricted-imports': 'error',
113
- 'no-restricted-properties': 'error',
114
- 'no-restricted-syntax': ['error', 'ForInStatement'],
115
- 'no-return-assign': 'error',
116
- 'no-script-url': 'error',
117
- 'no-sequences': ['error', {
118
- allowInParentheses: false,
119
- }],
120
- 'no-shadow': 'off',
121
- 'no-shadow-restricted-names': 'error',
122
- 'no-ternary': 'off',
123
- 'no-throw-literal': 'error',
124
- 'no-undef-init': 'warn',
125
- 'no-undefined': 'off',
126
- 'no-underscore-dangle': ['error', {
127
- allowAfterSuper: false,
128
- allowAfterThis: true,
129
- allowAfterThisConstructor: false,
130
- allowFunctionParams: true,
131
- enforceInMethodNames: true,
132
- enforceInClassFields: true,
133
- }],
134
- 'no-unneeded-ternary': 'warn',
135
- 'no-unused-expressions': 'error',
136
- 'no-unused-labels': 'warn',
137
- 'no-useless-call': 'error',
138
- 'no-useless-catch': 'error',
139
- 'no-useless-computed-key': 'warn',
140
- 'no-useless-concat': 'error',
141
- 'no-useless-constructor': 'error',
142
- 'no-useless-escape': 'error',
143
- 'no-useless-rename': 'warn',
144
- 'no-useless-return': 'warn',
145
- 'no-var': 'warn',
146
- 'no-void': 'error',
147
- 'no-warning-comments': 'off',
148
- 'no-with': 'error',
149
- 'object-shorthand': ['warn', 'always'],
150
- 'one-var': ['warn', 'never'],
151
- 'one-var-declaration-per-line': 'off',
152
- 'operator-assignment': ['warn', 'always'],
153
- 'prefer-arrow-callback': 'warn',
154
- 'prefer-const': 'warn',
155
- 'prefer-destructuring': 'off',
156
- 'prefer-exponentiation-operator': 'warn',
157
- 'prefer-named-capture-group': 'off',
158
- 'prefer-numeric-literals': 'warn',
159
- 'prefer-object-has-own': 'off',
160
- 'prefer-object-spread': 'warn',
161
- 'prefer-promise-reject-errors': 'error',
162
- 'prefer-regex-literals': 'off',
163
- 'prefer-rest-params': 'error',
164
- 'prefer-spread': 'error',
165
- 'prefer-template': 'warn',
166
- 'quote-props': 'off',
167
- 'radix': 'error',
168
- 'require-await': 'error',
169
- 'require-unicode-regexp': 'error',
170
- 'require-yield': 'error',
171
- 'sort-imports': 'off',
172
- 'sort-keys': 'off',
173
- 'sort-vars': 'off',
174
- 'spaced-comment': 'off',
175
- 'strict': 'warn',
176
- 'symbol-description': 'error',
177
- 'vars-on-top': 'error',
178
- 'yoda': ['warn', 'never'],
179
- },
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.eslintSuggestionsRules = void 0;
4
+ exports.eslintSuggestionsRules = {
5
+ 'accessor-pairs': 'error',
6
+ 'arrow-body-style': ['warn', 'as-needed'],
7
+ 'block-scoped-var': 'error',
8
+ 'camelcase': 'off',
9
+ 'capitalized-comments': ['warn', 'always', {
10
+ ignorePattern: 'eslint|tslint',
11
+ ignoreConsecutiveComments: true,
12
+ }],
13
+ 'class-methods-use-this': 'off',
14
+ 'complexity': ['error', 3],
15
+ 'consistent-return': 'error',
16
+ 'consistent-this': ['error', 'self'],
17
+ 'curly': ['warn', 'all'],
18
+ 'default-case': 'error',
19
+ 'default-case-last': 'error',
20
+ 'default-param-last': 'error',
21
+ 'dot-notation': ['warn', {
22
+ allowKeywords: true,
23
+ }],
24
+ 'eqeqeq': ['warn', 'always'],
25
+ 'func-name-matching': ['error', 'always'],
26
+ 'func-names': ['error', 'always'],
27
+ 'func-style': ['error', 'declaration'],
28
+ 'grouped-accessor-pairs': ['error', 'setBeforeGet'],
29
+ 'guard-for-in': 'error',
30
+ 'id-denylist': ['error', 'arr', 'ctx', 'el', 'elem', 'err', 'ind', 'ptr'],
31
+ 'id-length': 'off',
32
+ 'id-match': 'off',
33
+ 'init-declarations': ['error', 'always'],
34
+ 'logical-assignment-operators': ['warn', 'always', {
35
+ enforceForIfStatements: true,
36
+ }],
37
+ 'max-classes-per-file': ['error', 1],
38
+ 'max-depth': ['error', 4],
39
+ 'max-lines': 'off',
40
+ 'max-lines-per-function': 'off',
41
+ 'max-nested-callbacks': ['error', 2],
42
+ 'max-params': ['off', {
43
+ max: 3,
44
+ }],
45
+ 'max-statements': ['off', {
46
+ max: 10,
47
+ }],
48
+ 'multiline-comment-style': 'off',
49
+ 'new-cap': ['error', {
50
+ newIsCap: true,
51
+ capIsNew: true,
52
+ properties: true,
53
+ }],
54
+ 'no-alert': 'error',
55
+ 'no-array-constructor': 'error',
56
+ 'no-bitwise': 'error',
57
+ 'no-caller': 'error',
58
+ 'no-case-declarations': 'error',
59
+ 'no-confusing-arrow': 'off',
60
+ 'no-console': 'error',
61
+ 'no-continue': 'error',
62
+ 'no-delete-var': 'error',
63
+ 'no-div-regex': 'warn',
64
+ 'no-else-return': ['warn', {
65
+ allowElseIf: false,
66
+ }],
67
+ 'no-empty': 'error',
68
+ 'no-empty-function': 'error',
69
+ 'no-empty-static-block': 'error',
70
+ 'no-eq-null': 'error',
71
+ 'no-eval': 'error',
72
+ 'no-extend-native': 'error',
73
+ 'no-extra-bind': 'warn',
74
+ 'no-extra-boolean-cast': 'warn',
75
+ 'no-extra-label': 'warn',
76
+ 'no-extra-semi': 'off',
77
+ 'no-floating-decimal': 'off',
78
+ 'no-global-assign': 'error',
79
+ 'no-implicit-coercion': 'warn',
80
+ 'no-implicit-globals': 'error',
81
+ 'no-implied-eval': 'error',
82
+ 'no-inline-comments': ['error', {
83
+ ignorePattern: '^ == .+',
84
+ }],
85
+ 'no-invalid-this': 'error',
86
+ 'no-iterator': 'error',
87
+ 'no-label-var': 'error',
88
+ 'no-labels': 'error',
89
+ 'no-lone-blocks': 'error',
90
+ 'no-lonely-if': 'warn',
91
+ 'no-loop-func': 'error',
92
+ 'no-magic-numbers': 'off',
93
+ 'no-mixed-operators': 'off',
94
+ 'no-multi-assign': 'error',
95
+ 'no-multi-str': 'error',
96
+ 'no-negated-condition': 'off',
97
+ 'no-nested-ternary': 'error',
98
+ 'no-new': 'error',
99
+ 'no-new-func': 'error',
100
+ 'no-new-object': 'off',
101
+ 'no-new-wrappers': 'error',
102
+ 'no-nonoctal-decimal-escape': 'error',
103
+ 'no-object-constructor': 'error',
104
+ 'no-octal': 'error',
105
+ 'no-octal-escape': 'error',
106
+ 'no-param-reassign': 'error',
107
+ 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
108
+ 'no-proto': 'error',
109
+ 'no-redeclare': 'error',
110
+ 'no-regex-spaces': 'warn',
111
+ 'no-restricted-exports': 'off',
112
+ 'no-restricted-globals': 'error',
113
+ 'no-restricted-imports': 'error',
114
+ 'no-restricted-properties': 'error',
115
+ 'no-restricted-syntax': ['error', 'ForInStatement'],
116
+ 'no-return-assign': 'error',
117
+ 'no-script-url': 'error',
118
+ 'no-sequences': ['error', {
119
+ allowInParentheses: false,
120
+ }],
121
+ 'no-shadow': 'off',
122
+ 'no-shadow-restricted-names': 'error',
123
+ 'no-ternary': 'off',
124
+ 'no-throw-literal': 'error',
125
+ 'no-undef-init': 'warn',
126
+ 'no-undefined': 'off',
127
+ 'no-underscore-dangle': ['error', {
128
+ allowAfterSuper: false,
129
+ allowAfterThis: true,
130
+ allowAfterThisConstructor: false,
131
+ allowFunctionParams: true,
132
+ enforceInMethodNames: true,
133
+ enforceInClassFields: true,
134
+ }],
135
+ 'no-unneeded-ternary': 'warn',
136
+ 'no-unused-expressions': 'error',
137
+ 'no-unused-labels': 'warn',
138
+ 'no-useless-call': 'error',
139
+ 'no-useless-catch': 'error',
140
+ 'no-useless-computed-key': 'warn',
141
+ 'no-useless-concat': 'error',
142
+ 'no-useless-constructor': 'error',
143
+ 'no-useless-escape': 'error',
144
+ 'no-useless-rename': 'warn',
145
+ 'no-useless-return': 'warn',
146
+ 'no-var': 'warn',
147
+ 'no-void': 'error',
148
+ 'no-warning-comments': 'off',
149
+ 'no-with': 'error',
150
+ 'object-shorthand': ['warn', 'always'],
151
+ 'one-var': ['warn', 'never'],
152
+ 'one-var-declaration-per-line': 'off',
153
+ 'operator-assignment': ['warn', 'always'],
154
+ 'prefer-arrow-callback': 'warn',
155
+ 'prefer-const': 'warn',
156
+ 'prefer-destructuring': 'off',
157
+ 'prefer-exponentiation-operator': 'warn',
158
+ 'prefer-named-capture-group': 'off',
159
+ 'prefer-numeric-literals': 'warn',
160
+ 'prefer-object-has-own': 'off',
161
+ 'prefer-object-spread': 'warn',
162
+ 'prefer-promise-reject-errors': 'error',
163
+ 'prefer-regex-literals': 'off',
164
+ 'prefer-rest-params': 'error',
165
+ 'prefer-spread': 'error',
166
+ 'prefer-template': 'warn',
167
+ 'quote-props': 'off',
168
+ 'radix': 'error',
169
+ 'require-await': 'error',
170
+ 'require-unicode-regexp': 'error',
171
+ 'require-yield': 'error',
172
+ 'sort-imports': 'off',
173
+ 'sort-keys': 'off',
174
+ 'sort-vars': 'off',
175
+ 'spaced-comment': 'off',
176
+ 'strict': 'warn',
177
+ 'symbol-description': 'error',
178
+ 'vars-on-top': 'error',
179
+ 'yoda': ['warn', 'never'],
180
180
  };
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
- module.exports = {
3
- rules: {
4
- 'eslint-comments/disable-enable-pair': 'error',
5
- 'eslint-comments/no-aggregating-enable': 'error',
6
- 'eslint-comments/no-duplicate-disable': 'error',
7
- 'eslint-comments/no-unlimited-disable': 'error',
8
- 'eslint-comments/no-unused-disable': 'error',
9
- 'eslint-comments/no-unused-enable': 'error',
10
- },
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bestPracticesRules = void 0;
4
+ exports.bestPracticesRules = {
5
+ 'eslint-comments/disable-enable-pair': 'error',
6
+ 'eslint-comments/no-aggregating-enable': 'error',
7
+ 'eslint-comments/no-duplicate-disable': 'error',
8
+ 'eslint-comments/no-unlimited-disable': 'error',
9
+ 'eslint-comments/no-unused-disable': 'error',
10
+ 'eslint-comments/no-unused-enable': 'error',
11
11
  };
@@ -1,10 +1,45 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- 'eslint-comments',
5
- ],
6
- extends: [
7
- './best-practices',
8
- './stylistic-issues',
9
- ],
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.eslintCommentsConfig = void 0;
37
+ const eslintPluginEslintComments = __importStar(require("eslint-plugin-eslint-comments"));
38
+ const best_practices_1 = require("./best-practices");
39
+ const stylistic_issues_1 = require("./stylistic-issues");
40
+ exports.eslintCommentsConfig = {
41
+ plugins: {
42
+ 'eslint-comments': eslintPluginEslintComments,
43
+ },
44
+ rules: Object.assign(Object.assign({}, best_practices_1.bestPracticesRules), stylistic_issues_1.stylisticIssuesRules),
10
45
  };
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
- module.exports = {
3
- rules: {
4
- 'eslint-comments/no-restricted-disable': 'off',
5
- 'eslint-comments/no-use': ['error', {
6
- allow: [
7
- 'eslint-disable',
8
- 'eslint-disable-next-line',
9
- 'eslint-enable',
10
- ],
11
- }],
12
- 'eslint-comments/require-description': ['error', {
13
- ignore: [
14
- 'eslint-enable',
15
- ],
16
- }],
17
- },
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stylisticIssuesRules = void 0;
4
+ exports.stylisticIssuesRules = {
5
+ 'eslint-comments/no-restricted-disable': 'off',
6
+ 'eslint-comments/no-use': ['error', {
7
+ allow: [
8
+ 'eslint-disable',
9
+ 'eslint-disable-next-line',
10
+ 'eslint-enable',
11
+ ],
12
+ }],
13
+ 'eslint-comments/require-description': ['error', {
14
+ ignore: [
15
+ 'eslint-enable',
16
+ ],
17
+ }],
18
18
  };
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.helpfulWarningsRules = void 0;
2
4
  const no_extraneous_dependencies_1 = require("./rules/no-extraneous-dependencies");
3
- module.exports = {
4
- rules: {
5
- 'import/export': 'error',
6
- 'import/no-deprecated': 'off',
7
- 'import/no-empty-named-blocks': 'warn',
8
- 'import/no-extraneous-dependencies': ['error', (0, no_extraneous_dependencies_1.importNoExtraneousDependencies)()],
9
- 'import/no-mutable-exports': 'error',
10
- 'import/no-named-as-default': 'error',
11
- 'import/no-named-as-default-member': 'error',
12
- 'import/no-unused-modules': 'error',
13
- },
5
+ exports.helpfulWarningsRules = {
6
+ 'import/export': 'error',
7
+ 'import/no-deprecated': 'off',
8
+ 'import/no-empty-named-blocks': 'warn',
9
+ 'import/no-extraneous-dependencies': ['error', (0, no_extraneous_dependencies_1.importNoExtraneousDependencies)()],
10
+ 'import/no-mutable-exports': 'error',
11
+ 'import/no-named-as-default': 'error',
12
+ 'import/no-named-as-default-member': 'error',
13
+ 'import/no-unused-modules': 'error',
14
14
  };
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- 'import',
5
- ],
6
- extends: [
7
- './static-analysis',
8
- './helpful-warnings',
9
- './module-systems',
10
- './style-guide',
11
- ],
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.importConfig = void 0;
4
+ const eslint_plugin_import_1 = require("eslint-plugin-import");
5
+ const helpful_warnings_1 = require("./helpful-warnings");
6
+ const module_systems_1 = require("./module-systems");
7
+ const static_analysis_1 = require("./static-analysis");
8
+ const style_guide_1 = require("./style-guide");
9
+ exports.importConfig = {
10
+ plugins: {
11
+ import: eslint_plugin_import_1.flatConfigs.recommended.plugins.import,
12
+ },
13
+ rules: Object.assign(Object.assign(Object.assign(Object.assign({}, static_analysis_1.staticAnalysisRules), helpful_warnings_1.helpfulWarningsRules), module_systems_1.moduleSystemsRules), style_guide_1.styleGuideRules),
12
14
  };
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
- module.exports = {
3
- rules: {
4
- 'import/no-amd': 'error',
5
- 'import/no-commonjs': ['error', {
6
- allowConditionalRequire: true,
7
- allowPrimitiveModules: true,
8
- }],
9
- 'import/no-import-module-exports': 'error',
10
- 'import/no-nodejs-modules': 'off',
11
- 'import/unambiguous': 'error',
12
- },
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.moduleSystemsRules = void 0;
4
+ exports.moduleSystemsRules = {
5
+ 'import/no-amd': 'error',
6
+ 'import/no-commonjs': ['error', {
7
+ allowConditionalRequire: true,
8
+ allowPrimitiveModules: true,
9
+ }],
10
+ 'import/no-import-module-exports': 'error',
11
+ 'import/no-nodejs-modules': 'off',
12
+ 'import/unambiguous': 'error',
13
13
  };
@@ -1,29 +1,29 @@
1
1
  "use strict";
2
- module.exports = {
3
- rules: {
4
- 'import/default': 'error',
5
- 'import/named': ['error', {
6
- commonjs: false,
7
- }],
8
- 'import/namespace': 'error',
9
- 'import/no-absolute-path': 'error',
10
- 'import/no-cycle': ['error', {
11
- ignoreExternal: true,
12
- allowUnsafeDynamicCyclicDependency: false,
13
- }],
14
- 'import/no-dynamic-require': ['error', {
15
- esmodule: true,
16
- }],
17
- 'import/no-internal-modules': 'off',
18
- 'import/no-relative-packages': 'warn',
19
- 'import/no-relative-parent-imports': 'off',
20
- 'import/no-restricted-paths': 'off',
21
- 'import/no-self-import': 'error',
22
- 'import/no-unresolved': ['error', {
23
- caseSensitive: true,
24
- caseSensitiveStrict: true,
25
- }],
26
- 'import/no-useless-path-segments': 'warn',
27
- 'import/no-webpack-loader-syntax': 'error',
28
- },
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.staticAnalysisRules = void 0;
4
+ exports.staticAnalysisRules = {
5
+ 'import/default': 'error',
6
+ 'import/named': ['error', {
7
+ commonjs: false,
8
+ }],
9
+ 'import/namespace': 'error',
10
+ 'import/no-absolute-path': 'error',
11
+ 'import/no-cycle': ['error', {
12
+ ignoreExternal: true,
13
+ allowUnsafeDynamicCyclicDependency: false,
14
+ }],
15
+ 'import/no-dynamic-require': ['error', {
16
+ esmodule: true,
17
+ }],
18
+ 'import/no-internal-modules': 'off',
19
+ 'import/no-relative-packages': 'warn',
20
+ 'import/no-relative-parent-imports': 'off',
21
+ 'import/no-restricted-paths': 'off',
22
+ 'import/no-self-import': 'error',
23
+ 'import/no-unresolved': ['error', {
24
+ caseSensitive: true,
25
+ caseSensitiveStrict: true,
26
+ }],
27
+ 'import/no-useless-path-segments': 'warn',
28
+ 'import/no-webpack-loader-syntax': 'error',
29
29
  };