@perfective/eslint-config 0.28.0 → 0.29.1

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 (56) hide show
  1. package/README.adoc +29 -31
  2. package/README.md +24 -4
  3. package/config/plugin.d.ts +0 -3
  4. package/config/plugin.js +0 -24
  5. package/config.d.ts +1 -1
  6. package/config.js +1 -4
  7. package/cypress.d.ts +1 -0
  8. package/cypress.js +58 -0
  9. package/index.d.ts +1734 -0
  10. package/index.js +2 -35
  11. package/jest-dom.d.ts +1 -0
  12. package/jest-dom.js +11 -0
  13. package/jest.d.ts +1 -0
  14. package/jest.js +24 -0
  15. package/package.json +49 -17
  16. package/rules/array-func/index.d.ts +14 -0
  17. package/rules/cypress/index.d.ts +21 -0
  18. package/rules/cypress/index.js +4 -1
  19. package/rules/eslint/index.d.ts +339 -0
  20. package/rules/eslint/layout-formatting.d.ts +64 -0
  21. package/rules/eslint/possible-problems.d.ts +96 -0
  22. package/rules/eslint/possible-problems.js +10 -2
  23. package/rules/eslint/suggestions.d.ts +181 -0
  24. package/rules/eslint/suggestions.js +3 -1
  25. package/rules/eslint-comments/best-practices.d.ts +8 -0
  26. package/rules/eslint-comments/index.d.ts +21 -0
  27. package/rules/eslint-comments/stylistic-issues.d.ts +9 -0
  28. package/rules/import/helpful-warnings.d.ts +10 -0
  29. package/rules/import/index.d.ts +78 -0
  30. package/rules/import/module-systems.d.ts +10 -0
  31. package/rules/import/static-analysis.d.ts +26 -0
  32. package/rules/import/style-guide.d.ts +33 -0
  33. package/rules/jest/index.d.ts +124 -0
  34. package/rules/jest/typescript-eslint.d.ts +5 -0
  35. package/rules/jest-dom/index.d.ts +32 -0
  36. package/rules/jsdoc/index.d.ts +134 -0
  37. package/rules/n/index.d.ts +66 -0
  38. package/rules/prefer-arrow/index.d.ts +14 -0
  39. package/rules/promise/index.d.ts +35 -0
  40. package/rules/rxjs/index.d.ts +60 -0
  41. package/rules/rxjs/index.js +41 -42
  42. package/rules/security/index.d.ts +22 -0
  43. package/rules/simple-import-sort/index.d.ts +10 -0
  44. package/rules/stylistic/js/index.d.ts +197 -0
  45. package/rules/stylistic/jsx/index.d.ts +81 -0
  46. package/rules/stylistic/plus/index.d.ts +14 -0
  47. package/rules/stylistic/ts/index.d.ts +135 -0
  48. package/rules/testing-library/index.d.ts +62 -0
  49. package/rules/typescript-eslint/extension-rules.d.ts +113 -0
  50. package/rules/typescript-eslint/index.d.ts +369 -0
  51. package/rules/typescript-eslint/supported-rules.d.ts +253 -0
  52. package/rules/unicorn/index.d.ts +178 -0
  53. package/rxjs.d.ts +1 -0
  54. package/rxjs.js +58 -0
  55. package/testing-library.d.ts +1 -0
  56. package/testing-library.js +11 -0
@@ -0,0 +1,64 @@
1
+ export declare const eslintLayoutFormattingRules: {
2
+ 'array-bracket-newline': string;
3
+ 'array-bracket-spacing': string;
4
+ 'array-element-newline': string;
5
+ 'arrow-parens': string;
6
+ 'arrow-spacing': string;
7
+ 'block-spacing': string;
8
+ 'brace-style': string;
9
+ 'comma-dangle': string;
10
+ 'comma-spacing': string;
11
+ 'comma-style': string;
12
+ 'computed-property-spacing': string;
13
+ 'dot-location': string;
14
+ 'eol-last': string;
15
+ 'func-call-spacing': string;
16
+ 'function-call-argument-newline': string;
17
+ 'function-paren-newline': string;
18
+ 'generator-star-spacing': string;
19
+ 'implicit-arrow-linebreak': string;
20
+ indent: string;
21
+ 'jsx-quotes': string;
22
+ 'key-spacing': string;
23
+ 'keyword-spacing': string;
24
+ 'line-comment-position': string;
25
+ 'linebreak-style': string;
26
+ 'lines-around-comment': string;
27
+ 'lines-between-class-members': string;
28
+ 'max-len': string;
29
+ 'max-statements-per-line': string;
30
+ 'multiline-ternary': string;
31
+ 'new-parens': string;
32
+ 'newline-per-chained-call': string;
33
+ 'no-extra-parens': string;
34
+ 'no-mixed-spaces-and-tabs': string;
35
+ 'no-multi-spaces': string;
36
+ 'no-multiple-empty-lines': string;
37
+ 'no-tabs': string;
38
+ 'no-trailing-spaces': string;
39
+ 'no-whitespace-before-property': string;
40
+ 'nonblock-statement-body-position': string;
41
+ 'object-curly-newline': string;
42
+ 'object-curly-spacing': string;
43
+ 'object-property-newline': string;
44
+ 'operator-linebreak': string;
45
+ 'padded-blocks': string;
46
+ 'padding-line-between-statements': string;
47
+ quotes: string;
48
+ 'rest-spread-spacing': string;
49
+ semi: string;
50
+ 'semi-spacing': string;
51
+ 'semi-style': string;
52
+ 'space-before-blocks': string;
53
+ 'space-before-function-paren': string;
54
+ 'space-in-parens': string;
55
+ 'space-infix-ops': string;
56
+ 'space-unary-ops': string;
57
+ 'switch-colon-spacing': string;
58
+ 'template-curly-spacing': string;
59
+ 'template-tag-spacing': string;
60
+ 'unicode-bom': string[];
61
+ 'wrap-iife': string;
62
+ 'wrap-regex': string;
63
+ 'yield-star-spacing': string;
64
+ };
@@ -0,0 +1,96 @@
1
+ export declare const eslintPossibleProblemsRules: {
2
+ 'array-callback-return': (string | {
3
+ allowImplicit: boolean;
4
+ checkForEach: boolean;
5
+ allowVoid: boolean;
6
+ })[];
7
+ 'constructor-super': string;
8
+ 'for-direction': string;
9
+ 'getter-return': string;
10
+ 'no-async-promise-executor': string;
11
+ 'no-await-in-loop': string;
12
+ 'no-class-assign': string;
13
+ 'no-compare-neg-zero': string;
14
+ 'no-cond-assign': string[];
15
+ 'no-const-assign': string;
16
+ 'no-constant-binary-expression': string;
17
+ 'no-constant-condition': string;
18
+ 'no-constructor-return': string;
19
+ 'no-control-regex': string;
20
+ 'no-debugger': string;
21
+ 'no-dupe-args': string;
22
+ 'no-dupe-class-members': string;
23
+ 'no-dupe-else-if': string;
24
+ 'no-dupe-keys': string;
25
+ 'no-duplicate-case': string;
26
+ 'no-duplicate-imports': (string | {
27
+ includeExports: boolean;
28
+ })[];
29
+ 'no-empty-character-class': string;
30
+ 'no-empty-pattern': string;
31
+ 'no-ex-assign': string;
32
+ 'no-fallthrough': (string | {
33
+ allowEmptyCase: boolean;
34
+ reportUnusedFallthroughComment: boolean;
35
+ })[];
36
+ 'no-func-assign': string;
37
+ 'no-import-assign': string;
38
+ 'no-inner-declarations': string;
39
+ 'no-invalid-regexp': string;
40
+ 'no-irregular-whitespace': (string | {
41
+ skipStrings: boolean;
42
+ skipComments: boolean;
43
+ skipRegExps: boolean;
44
+ skipTemplates: boolean;
45
+ skipJSXText: boolean;
46
+ })[];
47
+ 'no-loss-of-precision': string;
48
+ 'no-misleading-character-class': (string | {
49
+ allowEscape: boolean;
50
+ })[];
51
+ 'no-new-native-nonconstructor': string;
52
+ 'no-new-symbol': string;
53
+ 'no-obj-calls': string;
54
+ 'no-promise-executor-return': string;
55
+ 'no-prototype-builtins': string;
56
+ 'no-self-assign': string;
57
+ 'no-self-compare': string;
58
+ 'no-setter-return': string;
59
+ 'no-sparse-arrays': string;
60
+ 'no-template-curly-in-string': string;
61
+ 'no-this-before-super': string;
62
+ 'no-undef': string;
63
+ 'no-unexpected-multiline': string;
64
+ 'no-unmodified-loop-condition': string;
65
+ 'no-unreachable': string;
66
+ 'no-unreachable-loop': string;
67
+ 'no-unsafe-finally': string;
68
+ 'no-unsafe-negation': string;
69
+ 'no-unsafe-optional-chaining': string;
70
+ 'no-unused-private-class-members': string;
71
+ 'no-unused-vars': (string | {
72
+ args: string;
73
+ argsIgnorePattern: string;
74
+ caughtErrors: string;
75
+ destructuredArrayIgnorePattern: string;
76
+ ignoreClassWithStaticInitBlock: boolean;
77
+ ignoreRestSiblings: boolean;
78
+ reportUsedIgnorePattern: boolean;
79
+ vars: string;
80
+ })[];
81
+ 'no-use-before-define': (string | {
82
+ functions: boolean;
83
+ classes: boolean;
84
+ variables: boolean;
85
+ allowNamedExports: boolean;
86
+ })[];
87
+ 'no-useless-backreference': string;
88
+ 'no-useless-assignment': string;
89
+ 'require-atomic-updates': (string | {
90
+ allowProperties: boolean;
91
+ })[];
92
+ 'use-isnan': string;
93
+ 'valid-typeof': (string | {
94
+ requireStringLiterals: boolean;
95
+ })[];
96
+ };
@@ -32,7 +32,10 @@ exports.eslintPossibleProblemsRules = {
32
32
  'no-empty-character-class': 'error',
33
33
  'no-empty-pattern': 'error',
34
34
  'no-ex-assign': 'error',
35
- 'no-fallthrough': 'error',
35
+ 'no-fallthrough': ['error', {
36
+ allowEmptyCase: false,
37
+ reportUnusedFallthroughComment: true,
38
+ }],
36
39
  'no-func-assign': 'error',
37
40
  'no-import-assign': 'error',
38
41
  'no-inner-declarations': 'error',
@@ -45,7 +48,9 @@ exports.eslintPossibleProblemsRules = {
45
48
  skipJSXText: false,
46
49
  }],
47
50
  'no-loss-of-precision': 'error',
48
- 'no-misleading-character-class': 'error',
51
+ 'no-misleading-character-class': ['error', {
52
+ allowEscape: false,
53
+ }],
49
54
  'no-new-native-nonconstructor': 'error',
50
55
  'no-new-symbol': 'error',
51
56
  'no-obj-calls': 'error',
@@ -71,7 +76,9 @@ exports.eslintPossibleProblemsRules = {
71
76
  argsIgnorePattern: '^_',
72
77
  caughtErrors: 'all',
73
78
  destructuredArrayIgnorePattern: '^_',
79
+ ignoreClassWithStaticInitBlock: false,
74
80
  ignoreRestSiblings: false,
81
+ reportUsedIgnorePattern: false,
75
82
  vars: 'all',
76
83
  }],
77
84
  'no-use-before-define': ['error', {
@@ -81,6 +88,7 @@ exports.eslintPossibleProblemsRules = {
81
88
  allowNamedExports: false,
82
89
  }],
83
90
  'no-useless-backreference': 'error',
91
+ 'no-useless-assignment': 'error',
84
92
  'require-atomic-updates': ['error', {
85
93
  allowProperties: false,
86
94
  }],
@@ -0,0 +1,181 @@
1
+ export declare const eslintSuggestionsRules: {
2
+ 'accessor-pairs': string;
3
+ 'arrow-body-style': string[];
4
+ 'block-scoped-var': string;
5
+ camelcase: string;
6
+ 'capitalized-comments': (string | {
7
+ ignorePattern: string;
8
+ ignoreConsecutiveComments: boolean;
9
+ })[];
10
+ 'class-methods-use-this': string;
11
+ complexity: (string | number)[];
12
+ 'consistent-return': string;
13
+ 'consistent-this': string[];
14
+ curly: string[];
15
+ 'default-case': string;
16
+ 'default-case-last': string;
17
+ 'default-param-last': string;
18
+ 'dot-notation': (string | {
19
+ allowKeywords: boolean;
20
+ })[];
21
+ eqeqeq: string[];
22
+ 'func-name-matching': string[];
23
+ 'func-names': string[];
24
+ 'func-style': string[];
25
+ 'grouped-accessor-pairs': string[];
26
+ 'guard-for-in': string;
27
+ 'id-denylist': string[];
28
+ 'id-length': string;
29
+ 'id-match': string;
30
+ 'init-declarations': string[];
31
+ 'logical-assignment-operators': (string | {
32
+ enforceForIfStatements: boolean;
33
+ })[];
34
+ 'max-classes-per-file': (string | number)[];
35
+ 'max-depth': (string | number)[];
36
+ 'max-lines': string;
37
+ 'max-lines-per-function': string;
38
+ 'max-nested-callbacks': (string | number)[];
39
+ 'max-params': (string | {
40
+ max: number;
41
+ })[];
42
+ 'max-statements': (string | {
43
+ max: number;
44
+ })[];
45
+ 'multiline-comment-style': string;
46
+ 'new-cap': (string | {
47
+ newIsCap: boolean;
48
+ capIsNew: boolean;
49
+ properties: boolean;
50
+ })[];
51
+ 'no-alert': string;
52
+ 'no-array-constructor': string;
53
+ 'no-bitwise': string;
54
+ 'no-caller': string;
55
+ 'no-case-declarations': string;
56
+ 'no-confusing-arrow': string;
57
+ 'no-console': string;
58
+ 'no-continue': string;
59
+ 'no-delete-var': string;
60
+ 'no-div-regex': string;
61
+ 'no-else-return': (string | {
62
+ allowElseIf: boolean;
63
+ })[];
64
+ 'no-empty': string;
65
+ 'no-empty-function': string;
66
+ 'no-empty-static-block': string;
67
+ 'no-eq-null': string;
68
+ 'no-eval': string;
69
+ 'no-extend-native': string;
70
+ 'no-extra-bind': string;
71
+ 'no-extra-boolean-cast': (string | {
72
+ enforceForInnerExpressions: boolean;
73
+ })[];
74
+ 'no-extra-label': string;
75
+ 'no-extra-semi': string;
76
+ 'no-floating-decimal': string;
77
+ 'no-global-assign': string;
78
+ 'no-implicit-coercion': string;
79
+ 'no-implicit-globals': string;
80
+ 'no-implied-eval': string;
81
+ 'no-inline-comments': (string | {
82
+ ignorePattern: string;
83
+ })[];
84
+ 'no-invalid-this': string;
85
+ 'no-iterator': string;
86
+ 'no-label-var': string;
87
+ 'no-labels': string;
88
+ 'no-lone-blocks': string;
89
+ 'no-lonely-if': string;
90
+ 'no-loop-func': string;
91
+ 'no-magic-numbers': string;
92
+ 'no-mixed-operators': string;
93
+ 'no-multi-assign': string;
94
+ 'no-multi-str': string;
95
+ 'no-negated-condition': string;
96
+ 'no-nested-ternary': string;
97
+ 'no-new': string;
98
+ 'no-new-func': string;
99
+ 'no-new-object': string;
100
+ 'no-new-wrappers': string;
101
+ 'no-nonoctal-decimal-escape': string;
102
+ 'no-object-constructor': string;
103
+ 'no-octal': string;
104
+ 'no-octal-escape': string;
105
+ 'no-param-reassign': string;
106
+ 'no-plusplus': (string | {
107
+ allowForLoopAfterthoughts: boolean;
108
+ })[];
109
+ 'no-proto': string;
110
+ 'no-redeclare': string;
111
+ 'no-regex-spaces': string;
112
+ 'no-restricted-exports': string;
113
+ 'no-restricted-globals': string;
114
+ 'no-restricted-imports': string;
115
+ 'no-restricted-properties': string;
116
+ 'no-restricted-syntax': string[];
117
+ 'no-return-assign': string;
118
+ 'no-script-url': string;
119
+ 'no-sequences': (string | {
120
+ allowInParentheses: boolean;
121
+ })[];
122
+ 'no-shadow': string;
123
+ 'no-shadow-restricted-names': string;
124
+ 'no-ternary': string;
125
+ 'no-throw-literal': string;
126
+ 'no-undef-init': string;
127
+ 'no-undefined': string;
128
+ 'no-underscore-dangle': (string | {
129
+ allowAfterSuper: boolean;
130
+ allowAfterThis: boolean;
131
+ allowAfterThisConstructor: boolean;
132
+ allowFunctionParams: boolean;
133
+ enforceInMethodNames: boolean;
134
+ enforceInClassFields: boolean;
135
+ })[];
136
+ 'no-unneeded-ternary': string;
137
+ 'no-unused-expressions': string;
138
+ 'no-unused-labels': string;
139
+ 'no-useless-call': string;
140
+ 'no-useless-catch': string;
141
+ 'no-useless-computed-key': string;
142
+ 'no-useless-concat': string;
143
+ 'no-useless-constructor': string;
144
+ 'no-useless-escape': string;
145
+ 'no-useless-rename': string;
146
+ 'no-useless-return': string;
147
+ 'no-var': string;
148
+ 'no-void': string;
149
+ 'no-warning-comments': string;
150
+ 'no-with': string;
151
+ 'object-shorthand': string[];
152
+ 'one-var': string[];
153
+ 'one-var-declaration-per-line': string;
154
+ 'operator-assignment': string[];
155
+ 'prefer-arrow-callback': string;
156
+ 'prefer-const': string;
157
+ 'prefer-destructuring': string;
158
+ 'prefer-exponentiation-operator': string;
159
+ 'prefer-named-capture-group': string;
160
+ 'prefer-numeric-literals': string;
161
+ 'prefer-object-has-own': string;
162
+ 'prefer-object-spread': string;
163
+ 'prefer-promise-reject-errors': string;
164
+ 'prefer-regex-literals': string;
165
+ 'prefer-rest-params': string;
166
+ 'prefer-spread': string;
167
+ 'prefer-template': string;
168
+ 'quote-props': string;
169
+ radix: string;
170
+ 'require-await': string;
171
+ 'require-unicode-regexp': string;
172
+ 'require-yield': string;
173
+ 'sort-imports': string;
174
+ 'sort-keys': string;
175
+ 'sort-vars': string;
176
+ 'spaced-comment': string;
177
+ strict: string;
178
+ 'symbol-description': string;
179
+ 'vars-on-top': string;
180
+ yoda: string[];
181
+ };
@@ -71,7 +71,9 @@ exports.eslintSuggestionsRules = {
71
71
  'no-eval': 'error',
72
72
  'no-extend-native': 'error',
73
73
  'no-extra-bind': 'warn',
74
- 'no-extra-boolean-cast': 'warn',
74
+ 'no-extra-boolean-cast': ['warn', {
75
+ enforceForInnerExpressions: true,
76
+ }],
75
77
  'no-extra-label': 'warn',
76
78
  'no-extra-semi': 'off',
77
79
  'no-floating-decimal': 'off',
@@ -0,0 +1,8 @@
1
+ export declare const bestPracticesRules: {
2
+ 'eslint-comments/disable-enable-pair': string;
3
+ 'eslint-comments/no-aggregating-enable': string;
4
+ 'eslint-comments/no-duplicate-disable': string;
5
+ 'eslint-comments/no-unlimited-disable': string;
6
+ 'eslint-comments/no-unused-disable': string;
7
+ 'eslint-comments/no-unused-enable': string;
8
+ };
@@ -0,0 +1,21 @@
1
+ import * as eslintPluginEslintComments from 'eslint-plugin-eslint-comments';
2
+ export declare const eslintCommentsConfig: {
3
+ plugins: {
4
+ 'eslint-comments': typeof eslintPluginEslintComments;
5
+ };
6
+ rules: {
7
+ 'eslint-comments/no-restricted-disable': string;
8
+ 'eslint-comments/no-use': (string | {
9
+ allow: string[];
10
+ })[];
11
+ 'eslint-comments/require-description': (string | {
12
+ ignore: string[];
13
+ })[];
14
+ 'eslint-comments/disable-enable-pair': string;
15
+ 'eslint-comments/no-aggregating-enable': string;
16
+ 'eslint-comments/no-duplicate-disable': string;
17
+ 'eslint-comments/no-unlimited-disable': string;
18
+ 'eslint-comments/no-unused-disable': string;
19
+ 'eslint-comments/no-unused-enable': string;
20
+ };
21
+ };
@@ -0,0 +1,9 @@
1
+ export declare const stylisticIssuesRules: {
2
+ 'eslint-comments/no-restricted-disable': string;
3
+ 'eslint-comments/no-use': (string | {
4
+ allow: string[];
5
+ })[];
6
+ 'eslint-comments/require-description': (string | {
7
+ ignore: string[];
8
+ })[];
9
+ };
@@ -0,0 +1,10 @@
1
+ export declare const helpfulWarningsRules: {
2
+ 'import/export': string;
3
+ 'import/no-deprecated': string;
4
+ 'import/no-empty-named-blocks': string;
5
+ 'import/no-extraneous-dependencies': (string | import("./rules/no-extraneous-dependencies").ImportNoExtraneousDependencies)[];
6
+ 'import/no-mutable-exports': string;
7
+ 'import/no-named-as-default': string;
8
+ 'import/no-named-as-default-member': string;
9
+ 'import/no-unused-modules': string;
10
+ };
@@ -0,0 +1,78 @@
1
+ export declare const importConfig: {
2
+ plugins: {
3
+ import: Record<string, unknown>;
4
+ };
5
+ rules: {
6
+ 'import/consistent-type-specifier-style': string[];
7
+ 'import/dynamic-import-chunkname': string;
8
+ 'import/exports-last': string;
9
+ 'import/extensions': (string | {
10
+ checkTypeImports: boolean;
11
+ })[];
12
+ 'import/first': string;
13
+ 'import/group-exports': string;
14
+ 'import/max-dependencies': string;
15
+ 'import/newline-after-import': (string | {
16
+ considerComments: boolean;
17
+ })[];
18
+ 'import/no-anonymous-default-export': string;
19
+ 'import/no-default-export': string;
20
+ 'import/no-duplicates': (string | {
21
+ considerQueryString: boolean;
22
+ 'prefer-inline': boolean;
23
+ })[];
24
+ 'import/no-named-default': string;
25
+ 'import/no-named-export': string;
26
+ 'import/no-namespace': string;
27
+ 'import/no-unassigned-import': string;
28
+ 'import/order': (string | {
29
+ groups: string[];
30
+ 'newlines-between': string;
31
+ alphabetize: {
32
+ order: string;
33
+ caseInsensitive: boolean;
34
+ };
35
+ })[];
36
+ 'import/prefer-default-export': string;
37
+ 'import/no-amd': string;
38
+ 'import/no-commonjs': (string | {
39
+ allowConditionalRequire: boolean;
40
+ allowPrimitiveModules: boolean;
41
+ })[];
42
+ 'import/no-import-module-exports': string;
43
+ 'import/no-nodejs-modules': string;
44
+ 'import/unambiguous': string;
45
+ 'import/export': string;
46
+ 'import/no-deprecated': string;
47
+ 'import/no-empty-named-blocks': string;
48
+ 'import/no-extraneous-dependencies': (string | import("./rules/no-extraneous-dependencies").ImportNoExtraneousDependencies)[];
49
+ 'import/no-mutable-exports': string;
50
+ 'import/no-named-as-default': string;
51
+ 'import/no-named-as-default-member': string;
52
+ 'import/no-unused-modules': string;
53
+ 'import/default': string;
54
+ 'import/named': (string | {
55
+ commonjs: boolean;
56
+ })[];
57
+ 'import/namespace': string;
58
+ 'import/no-absolute-path': string;
59
+ 'import/no-cycle': (string | {
60
+ ignoreExternal: boolean;
61
+ allowUnsafeDynamicCyclicDependency: boolean;
62
+ })[];
63
+ 'import/no-dynamic-require': (string | {
64
+ esmodule: boolean;
65
+ })[];
66
+ 'import/no-internal-modules': string;
67
+ 'import/no-relative-packages': string;
68
+ 'import/no-relative-parent-imports': string;
69
+ 'import/no-restricted-paths': string;
70
+ 'import/no-self-import': string;
71
+ 'import/no-unresolved': (string | {
72
+ caseSensitive: boolean;
73
+ caseSensitiveStrict: boolean;
74
+ })[];
75
+ 'import/no-useless-path-segments': string;
76
+ 'import/no-webpack-loader-syntax': string;
77
+ };
78
+ };
@@ -0,0 +1,10 @@
1
+ export declare const moduleSystemsRules: {
2
+ 'import/no-amd': string;
3
+ 'import/no-commonjs': (string | {
4
+ allowConditionalRequire: boolean;
5
+ allowPrimitiveModules: boolean;
6
+ })[];
7
+ 'import/no-import-module-exports': string;
8
+ 'import/no-nodejs-modules': string;
9
+ 'import/unambiguous': string;
10
+ };
@@ -0,0 +1,26 @@
1
+ export declare const staticAnalysisRules: {
2
+ 'import/default': string;
3
+ 'import/named': (string | {
4
+ commonjs: boolean;
5
+ })[];
6
+ 'import/namespace': string;
7
+ 'import/no-absolute-path': string;
8
+ 'import/no-cycle': (string | {
9
+ ignoreExternal: boolean;
10
+ allowUnsafeDynamicCyclicDependency: boolean;
11
+ })[];
12
+ 'import/no-dynamic-require': (string | {
13
+ esmodule: boolean;
14
+ })[];
15
+ 'import/no-internal-modules': string;
16
+ 'import/no-relative-packages': string;
17
+ 'import/no-relative-parent-imports': string;
18
+ 'import/no-restricted-paths': string;
19
+ 'import/no-self-import': string;
20
+ 'import/no-unresolved': (string | {
21
+ caseSensitive: boolean;
22
+ caseSensitiveStrict: boolean;
23
+ })[];
24
+ 'import/no-useless-path-segments': string;
25
+ 'import/no-webpack-loader-syntax': string;
26
+ };
@@ -0,0 +1,33 @@
1
+ export declare const styleGuideRules: {
2
+ 'import/consistent-type-specifier-style': string[];
3
+ 'import/dynamic-import-chunkname': string;
4
+ 'import/exports-last': string;
5
+ 'import/extensions': (string | {
6
+ checkTypeImports: boolean;
7
+ })[];
8
+ 'import/first': string;
9
+ 'import/group-exports': string;
10
+ 'import/max-dependencies': string;
11
+ 'import/newline-after-import': (string | {
12
+ considerComments: boolean;
13
+ })[];
14
+ 'import/no-anonymous-default-export': string;
15
+ 'import/no-default-export': string;
16
+ 'import/no-duplicates': (string | {
17
+ considerQueryString: boolean;
18
+ 'prefer-inline': boolean;
19
+ })[];
20
+ 'import/no-named-default': string;
21
+ 'import/no-named-export': string;
22
+ 'import/no-namespace': string;
23
+ 'import/no-unassigned-import': string;
24
+ 'import/order': (string | {
25
+ groups: string[];
26
+ 'newlines-between': string;
27
+ alphabetize: {
28
+ order: string;
29
+ caseInsensitive: boolean;
30
+ };
31
+ })[];
32
+ 'import/prefer-default-export': string;
33
+ };