eslint-config-airbnb-extended 0.1.0 → 0.2.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 (74) hide show
  1. package/dist/base/index.d.ts +990 -0
  2. package/dist/base/index.js +23 -0
  3. package/dist/base/recommended.d.ts +990 -0
  4. package/dist/base/recommended.js +19 -0
  5. package/dist/helpers/getDevDepsList.d.ts +3 -0
  6. package/dist/helpers/getDevDepsList.js +31 -0
  7. package/dist/index.d.ts +15897 -0
  8. package/dist/index.js +37 -0
  9. package/dist/react/index.d.ts +1793 -0
  10. package/dist/react/index.js +13 -0
  11. package/dist/react/recommended.d.ts +2786 -0
  12. package/dist/react/recommended.js +22 -0
  13. package/dist/rules/best-practices.d.ts +177 -0
  14. package/dist/rules/best-practices.js +379 -0
  15. package/dist/rules/errors.d.ts +69 -0
  16. package/dist/rules/errors.js +151 -0
  17. package/dist/rules/es6.d.ts +146 -0
  18. package/dist/rules/es6.js +192 -0
  19. package/dist/rules/imports.d.ts +151 -0
  20. package/dist/rules/imports.js +203 -0
  21. package/dist/rules/importsStrict.d.ts +43 -0
  22. package/dist/rules/importsStrict.js +74 -0
  23. package/dist/rules/next.d.ts +8 -0
  24. package/dist/rules/next.js +12 -0
  25. package/dist/rules/node.d.ts +90 -0
  26. package/dist/rules/node.js +39 -0
  27. package/dist/rules/react-a11y.d.ts +117 -0
  28. package/dist/rules/react-a11y.js +255 -0
  29. package/dist/rules/react-hooks.d.ts +19 -0
  30. package/dist/rules/react-hooks.js +57 -0
  31. package/dist/rules/react.d.ts +1659 -0
  32. package/dist/rules/react.js +578 -0
  33. package/dist/rules/strict.d.ts +7 -0
  34. package/dist/rules/strict.js +9 -0
  35. package/dist/rules/style.d.ts +320 -0
  36. package/dist/rules/style.js +530 -0
  37. package/dist/rules/typescript/typescriptBase.d.ts +23 -0
  38. package/dist/rules/typescript/typescriptBase.js +26 -0
  39. package/dist/rules/typescript/typescriptEslint.d.ts +3 -0
  40. package/dist/rules/typescript/typescriptEslint.js +184 -0
  41. package/dist/rules/typescript/typescriptImports.d.ts +37 -0
  42. package/dist/rules/typescript/typescriptImports.js +54 -0
  43. package/dist/rules/typescript.d.ts +47 -0
  44. package/dist/rules/typescript.js +9 -0
  45. package/dist/rules/variables.d.ts +35 -0
  46. package/dist/rules/variables.js +65 -0
  47. package/dist/typescript/index.d.ts +58 -0
  48. package/dist/typescript/index.js +11 -0
  49. package/dist/typescript/recommended.d.ts +112 -0
  50. package/dist/typescript/recommended.js +35 -0
  51. package/dist/utils/index.d.ts +13 -0
  52. package/dist/utils/index.js +12 -0
  53. package/package.json +16 -9
  54. package/CHANGELOG.md +0 -7
  55. package/base/index.ts +0 -21
  56. package/base/recommended.ts +0 -17
  57. package/index.ts +0 -25
  58. package/react/index.ts +0 -11
  59. package/react/recommended.ts +0 -6
  60. package/rules/best-practices.ts +0 -462
  61. package/rules/errors.ts +0 -199
  62. package/rules/es6.ts +0 -224
  63. package/rules/imports.ts +0 -308
  64. package/rules/node.ts +0 -49
  65. package/rules/react-a11y.ts +0 -295
  66. package/rules/react-hooks.ts +0 -26
  67. package/rules/react.ts +0 -692
  68. package/rules/strict.ts +0 -9
  69. package/rules/style.ts +0 -632
  70. package/rules/typescript.ts +0 -312
  71. package/rules/variables.ts +0 -76
  72. package/tsconfig.json +0 -22
  73. package/typescript/index.ts +0 -7
  74. package/typescript/recommended.ts +0 -30
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ name: 'airbnb/config/errors',
5
+ rules: {
6
+ // Enforce “for” loop update clause moving the counter in the right direction
7
+ // https://eslint.org/docs/rules/for-direction
8
+ 'for-direction': 'error',
9
+ // Enforces that a return statement is present in property getters
10
+ // https://eslint.org/docs/rules/getter-return
11
+ 'getter-return': ['error', { allowImplicit: true }],
12
+ // disallow using an async function as a Promise executor
13
+ // https://eslint.org/docs/rules/no-async-promise-executor
14
+ 'no-async-promise-executor': 'error',
15
+ // Disallow await inside of loops
16
+ // https://eslint.org/docs/rules/no-await-in-loop
17
+ 'no-await-in-loop': 'error',
18
+ // Disallow comparisons to negative zero
19
+ // https://eslint.org/docs/rules/no-compare-neg-zero
20
+ 'no-compare-neg-zero': 'error',
21
+ // disallow assignment in conditional expressions
22
+ 'no-cond-assign': ['error', 'always'],
23
+ // disallow use of console
24
+ 'no-console': 'warn',
25
+ // Disallows expressions where the operation doesn't affect the value
26
+ // https://eslint.org/docs/rules/no-constant-binary-expression
27
+ // TODO: semver-major, enable
28
+ 'no-constant-binary-expression': 'off',
29
+ // disallow use of constant expressions in conditions
30
+ 'no-constant-condition': 'warn',
31
+ // disallow control characters in regular expressions
32
+ 'no-control-regex': 'error',
33
+ // disallow use of debugger
34
+ 'no-debugger': 'error',
35
+ // disallow duplicate arguments in functions
36
+ 'no-dupe-args': 'error',
37
+ // Disallow duplicate conditions in if-else-if chains
38
+ // https://eslint.org/docs/rules/no-dupe-else-if
39
+ 'no-dupe-else-if': 'error',
40
+ // disallow duplicate keys when creating object literals
41
+ 'no-dupe-keys': 'error',
42
+ // disallow a duplicate case label.
43
+ 'no-duplicate-case': 'error',
44
+ // disallow empty statements
45
+ 'no-empty': 'error',
46
+ // disallow the use of empty character classes in regular expressions
47
+ 'no-empty-character-class': 'error',
48
+ // disallow assigning to the exception in a catch block
49
+ 'no-ex-assign': 'error',
50
+ // disallow double-negation boolean casts in a boolean context
51
+ // https://eslint.org/docs/rules/no-extra-boolean-cast
52
+ 'no-extra-boolean-cast': 'error',
53
+ // disallow unnecessary parentheses
54
+ // https://eslint.org/docs/rules/no-extra-parens
55
+ 'no-extra-parens': [
56
+ 'off',
57
+ 'all',
58
+ {
59
+ conditionalAssign: true,
60
+ nestedBinaryExpressions: false,
61
+ returnAssign: false,
62
+ ignoreJSX: 'all', // delegate to eslint-plugin-react
63
+ enforceForArrowConditionals: false,
64
+ },
65
+ ],
66
+ // disallow unnecessary semicolons
67
+ 'no-extra-semi': 'error',
68
+ // disallow overwriting functions written as function declarations
69
+ 'no-func-assign': 'error',
70
+ // https://eslint.org/docs/rules/no-import-assign
71
+ 'no-import-assign': 'error',
72
+ // disallow function or variable declarations in nested blocks
73
+ 'no-inner-declarations': 'error',
74
+ // disallow invalid regular expression strings in the RegExp constructor
75
+ 'no-invalid-regexp': 'error',
76
+ // disallow irregular whitespace outside of strings and comments
77
+ 'no-irregular-whitespace': 'error',
78
+ // Disallow Number Literals That Lose Precision
79
+ // https://eslint.org/docs/rules/no-loss-of-precision
80
+ 'no-loss-of-precision': 'error',
81
+ // Disallow characters which are made with multiple code points in character class syntax
82
+ // https://eslint.org/docs/rules/no-misleading-character-class
83
+ 'no-misleading-character-class': 'error',
84
+ // disallow the use of object properties of the global object (Math and JSON) as functions
85
+ 'no-obj-calls': 'error',
86
+ // Disallow new operators with global non-constructor functions
87
+ // https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
88
+ // TODO: semver-major, enable
89
+ 'no-new-native-nonconstructor': 'off',
90
+ // Disallow returning values from Promise executor functions
91
+ // https://eslint.org/docs/rules/no-promise-executor-return
92
+ 'no-promise-executor-return': 'error',
93
+ // disallow use of Object.prototypes builtins directly
94
+ // https://eslint.org/docs/rules/no-prototype-builtins
95
+ 'no-prototype-builtins': 'error',
96
+ // disallow multiple spaces in a regular expression literal
97
+ 'no-regex-spaces': 'error',
98
+ // Disallow returning values from setters
99
+ // https://eslint.org/docs/rules/no-setter-return
100
+ 'no-setter-return': 'error',
101
+ // disallow sparse arrays
102
+ 'no-sparse-arrays': 'error',
103
+ // Disallow template literal placeholder syntax in regular strings
104
+ // https://eslint.org/docs/rules/no-template-curly-in-string
105
+ 'no-template-curly-in-string': 'error',
106
+ // Avoid code that looks like two expressions but is actually one
107
+ // https://eslint.org/docs/rules/no-unexpected-multiline
108
+ 'no-unexpected-multiline': 'error',
109
+ // disallow unreachable statements after a return, throw, continue, or break statement
110
+ 'no-unreachable': 'error',
111
+ // Disallow loops with a body that allows only one iteration
112
+ // https://eslint.org/docs/rules/no-unreachable-loop
113
+ 'no-unreachable-loop': [
114
+ 'error',
115
+ {
116
+ ignore: [], // WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement
117
+ },
118
+ ],
119
+ // disallow return/throw/break/continue inside finally blocks
120
+ // https://eslint.org/docs/rules/no-unsafe-finally
121
+ 'no-unsafe-finally': 'error',
122
+ // disallow negating the left operand of relational operators
123
+ // https://eslint.org/docs/rules/no-unsafe-negation
124
+ 'no-unsafe-negation': 'error',
125
+ // disallow use of optional chaining in contexts where the undefined value is not allowed
126
+ // https://eslint.org/docs/rules/no-unsafe-optional-chaining
127
+ 'no-unsafe-optional-chaining': ['error', { disallowArithmeticOperators: true }],
128
+ // Disallow Unused Private Class Members
129
+ // https://eslint.org/docs/rules/no-unused-private-class-members
130
+ // TODO: enable once eslint 7 is dropped (which is semver-major)
131
+ 'no-unused-private-class-members': 'off',
132
+ // Disallow useless backreferences in regular expressions
133
+ // https://eslint.org/docs/rules/no-useless-backreference
134
+ 'no-useless-backreference': 'error',
135
+ // disallow negation of the left operand of an in expression
136
+ // deprecated in favor of no-unsafe-negation
137
+ 'no-negated-in-lhs': 'off',
138
+ // Disallow assignments that can lead to race conditions due to usage of await or yield
139
+ // https://eslint.org/docs/rules/require-atomic-updates
140
+ // note: not enabled because it is very buggy
141
+ 'require-atomic-updates': 'off',
142
+ // disallow comparisons with the value NaN
143
+ 'use-isnan': 'error',
144
+ // ensure JSDoc comments are valid
145
+ // https://eslint.org/docs/rules/valid-jsdoc
146
+ 'valid-jsdoc': 'off',
147
+ // ensure that the results of typeof are compared against a valid string
148
+ // https://eslint.org/docs/rules/valid-typeof
149
+ 'valid-typeof': ['error', { requireStringLiterals: true }],
150
+ },
151
+ };
@@ -0,0 +1,146 @@
1
+ declare const _default: {
2
+ name: string;
3
+ languageOptions: {
4
+ globals: {
5
+ Array: false;
6
+ ArrayBuffer: false;
7
+ Boolean: false;
8
+ DataView: false;
9
+ Date: false;
10
+ decodeURI: false;
11
+ decodeURIComponent: false;
12
+ encodeURI: false;
13
+ encodeURIComponent: false;
14
+ Error: false;
15
+ escape: false;
16
+ eval: false;
17
+ EvalError: false;
18
+ Float32Array: false;
19
+ Float64Array: false;
20
+ Function: false;
21
+ Infinity: false;
22
+ Int16Array: false;
23
+ Int32Array: false;
24
+ Int8Array: false;
25
+ Intl: false;
26
+ isFinite: false;
27
+ isNaN: false;
28
+ JSON: false;
29
+ Map: false;
30
+ Math: false;
31
+ NaN: false;
32
+ Number: false;
33
+ Object: false;
34
+ parseFloat: false;
35
+ parseInt: false;
36
+ Promise: false;
37
+ Proxy: false;
38
+ RangeError: false;
39
+ ReferenceError: false;
40
+ Reflect: false;
41
+ RegExp: false;
42
+ Set: false;
43
+ String: false;
44
+ Symbol: false;
45
+ SyntaxError: false;
46
+ TypeError: false;
47
+ Uint16Array: false;
48
+ Uint32Array: false;
49
+ Uint8Array: false;
50
+ Uint8ClampedArray: false;
51
+ undefined: false;
52
+ unescape: false;
53
+ URIError: false;
54
+ WeakMap: false;
55
+ WeakSet: false;
56
+ };
57
+ parserOptions: {
58
+ ecmaVersion: 6;
59
+ sourceType: "module";
60
+ ecmaFeatures: {
61
+ generators: boolean;
62
+ objectLiteralDuplicateProperties: boolean;
63
+ };
64
+ };
65
+ };
66
+ rules: {
67
+ 'arrow-body-style': ["error", string, {
68
+ requireReturnForObjectLiteral: boolean;
69
+ }];
70
+ 'arrow-parens': ["error", string];
71
+ 'arrow-spacing': ["error", {
72
+ before: boolean;
73
+ after: boolean;
74
+ }];
75
+ 'constructor-super': "error";
76
+ 'generator-star-spacing': ["error", {
77
+ before: boolean;
78
+ after: boolean;
79
+ }];
80
+ 'no-class-assign': "error";
81
+ 'no-confusing-arrow': ["error", {
82
+ allowParens: boolean;
83
+ }];
84
+ 'no-const-assign': "error";
85
+ 'no-dupe-class-members': "error";
86
+ 'no-duplicate-imports': "off";
87
+ 'no-new-symbol': "error";
88
+ 'no-restricted-exports': ["error", {
89
+ restrictedNamedExports: string[];
90
+ }];
91
+ 'no-restricted-imports': ["off", {
92
+ paths: never[];
93
+ patterns: never[];
94
+ }];
95
+ 'no-this-before-super': "error";
96
+ 'no-useless-computed-key': "error";
97
+ 'no-useless-constructor': "error";
98
+ 'no-useless-rename': ["error", {
99
+ ignoreDestructuring: boolean;
100
+ ignoreImport: boolean;
101
+ ignoreExport: boolean;
102
+ }];
103
+ 'no-var': "error";
104
+ 'object-shorthand': ["error", string, {
105
+ ignoreConstructors: boolean;
106
+ avoidQuotes: boolean;
107
+ }];
108
+ 'prefer-arrow-callback': ["error", {
109
+ allowNamedFunctions: boolean;
110
+ allowUnboundThis: boolean;
111
+ }];
112
+ 'prefer-const': ["error", {
113
+ destructuring: string;
114
+ ignoreReadBeforeAssign: boolean;
115
+ }];
116
+ 'prefer-destructuring': ["error", {
117
+ VariableDeclarator: {
118
+ array: boolean;
119
+ object: boolean;
120
+ };
121
+ AssignmentExpression: {
122
+ array: boolean;
123
+ object: boolean;
124
+ };
125
+ }, {
126
+ enforceForRenamedProperties: boolean;
127
+ }];
128
+ 'prefer-numeric-literals': "error";
129
+ 'prefer-reflect': "off";
130
+ 'prefer-rest-params': "error";
131
+ 'prefer-spread': "error";
132
+ 'prefer-template': "error";
133
+ 'require-yield': "error";
134
+ 'rest-spread-spacing': ["error", string];
135
+ 'sort-imports': ["off", {
136
+ ignoreCase: boolean;
137
+ ignoreDeclarationSort: boolean;
138
+ ignoreMemberSort: boolean;
139
+ memberSyntaxSortOrder: string[];
140
+ }];
141
+ 'symbol-description': "error";
142
+ 'template-curly-spacing': "error";
143
+ 'yield-star-spacing': ["error", string];
144
+ };
145
+ };
146
+ export default _default;
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const globals_1 = __importDefault(require("globals"));
7
+ exports.default = {
8
+ name: 'airbnb/config/es6',
9
+ languageOptions: {
10
+ globals: Object.assign({}, globals_1.default.es2015),
11
+ parserOptions: {
12
+ ecmaVersion: 6,
13
+ sourceType: 'module',
14
+ ecmaFeatures: {
15
+ generators: false,
16
+ objectLiteralDuplicateProperties: false,
17
+ },
18
+ },
19
+ },
20
+ rules: {
21
+ // enforces no braces where they can be omitted
22
+ // https://eslint.org/docs/rules/arrow-body-style
23
+ // TODO: enable requireReturnForObjectLiteral?
24
+ 'arrow-body-style': [
25
+ 'error',
26
+ 'as-needed',
27
+ {
28
+ requireReturnForObjectLiteral: false,
29
+ },
30
+ ],
31
+ // require parens in arrow function arguments
32
+ // https://eslint.org/docs/rules/arrow-parens
33
+ 'arrow-parens': ['error', 'always'],
34
+ // require space before/after arrow function's arrow
35
+ // https://eslint.org/docs/rules/arrow-spacing
36
+ 'arrow-spacing': ['error', { before: true, after: true }],
37
+ // verify super() callings in constructors
38
+ 'constructor-super': 'error',
39
+ // enforce the spacing around the * in generator functions
40
+ // https://eslint.org/docs/rules/generator-star-spacing
41
+ 'generator-star-spacing': ['error', { before: false, after: true }],
42
+ // disallow modifying variables of class declarations
43
+ // https://eslint.org/docs/rules/no-class-assign
44
+ 'no-class-assign': 'error',
45
+ // disallow arrow functions where they could be confused with comparisons
46
+ // https://eslint.org/docs/rules/no-confusing-arrow
47
+ 'no-confusing-arrow': [
48
+ 'error',
49
+ {
50
+ allowParens: true,
51
+ },
52
+ ],
53
+ // disallow modifying variables that are declared using const
54
+ 'no-const-assign': 'error',
55
+ // disallow duplicate class members
56
+ // https://eslint.org/docs/rules/no-dupe-class-members
57
+ 'no-dupe-class-members': 'error',
58
+ // disallow importing from the same path more than once
59
+ // https://eslint.org/docs/rules/no-duplicate-imports
60
+ // replaced by https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/no-duplicates.md
61
+ 'no-duplicate-imports': 'off',
62
+ // disallow symbol constructor
63
+ // https://eslint.org/docs/rules/no-new-symbol
64
+ 'no-new-symbol': 'error',
65
+ // Disallow specified names in exports
66
+ // https://eslint.org/docs/rules/no-restricted-exports
67
+ 'no-restricted-exports': [
68
+ 'error',
69
+ {
70
+ restrictedNamedExports: [
71
+ 'default', // use `export default` to provide a default export
72
+ 'then', // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions
73
+ ],
74
+ },
75
+ ],
76
+ // disallow specific imports
77
+ // https://eslint.org/docs/rules/no-restricted-imports
78
+ 'no-restricted-imports': [
79
+ 'off',
80
+ {
81
+ paths: [],
82
+ patterns: [],
83
+ },
84
+ ],
85
+ // disallow to use this/super before super() calling in constructors.
86
+ // https://eslint.org/docs/rules/no-this-before-super
87
+ 'no-this-before-super': 'error',
88
+ // disallow useless computed property keys
89
+ // https://eslint.org/docs/rules/no-useless-computed-key
90
+ 'no-useless-computed-key': 'error',
91
+ // disallow unnecessary constructor
92
+ // https://eslint.org/docs/rules/no-useless-constructor
93
+ 'no-useless-constructor': 'error',
94
+ // disallow renaming import, export, and destructured assignments to the same name
95
+ // https://eslint.org/docs/rules/no-useless-rename
96
+ 'no-useless-rename': [
97
+ 'error',
98
+ {
99
+ ignoreDestructuring: false,
100
+ ignoreImport: false,
101
+ ignoreExport: false,
102
+ },
103
+ ],
104
+ // require let or const instead of var
105
+ 'no-var': 'error',
106
+ // require method and property shorthand syntax for object literals
107
+ // https://eslint.org/docs/rules/object-shorthand
108
+ 'object-shorthand': [
109
+ 'error',
110
+ 'always',
111
+ {
112
+ ignoreConstructors: false,
113
+ avoidQuotes: true,
114
+ },
115
+ ],
116
+ // suggest using arrow functions as callbacks
117
+ 'prefer-arrow-callback': [
118
+ 'error',
119
+ {
120
+ allowNamedFunctions: false,
121
+ allowUnboundThis: true,
122
+ },
123
+ ],
124
+ // suggest using of const declaration for variables that are never modified after declared
125
+ 'prefer-const': [
126
+ 'error',
127
+ {
128
+ destructuring: 'any',
129
+ ignoreReadBeforeAssign: true,
130
+ },
131
+ ],
132
+ // Prefer destructuring from arrays and objects
133
+ // https://eslint.org/docs/rules/prefer-destructuring
134
+ 'prefer-destructuring': [
135
+ 'error',
136
+ {
137
+ VariableDeclarator: {
138
+ array: false,
139
+ object: true,
140
+ },
141
+ AssignmentExpression: {
142
+ array: true,
143
+ object: false,
144
+ },
145
+ },
146
+ {
147
+ enforceForRenamedProperties: false,
148
+ },
149
+ ],
150
+ // disallow parseInt() in favor of binary, octal, and hexadecimal literals
151
+ // https://eslint.org/docs/rules/prefer-numeric-literals
152
+ 'prefer-numeric-literals': 'error',
153
+ // suggest using Reflect methods where applicable
154
+ // https://eslint.org/docs/rules/prefer-reflect
155
+ 'prefer-reflect': 'off',
156
+ // use rest parameters instead of arguments
157
+ // https://eslint.org/docs/rules/prefer-rest-params
158
+ 'prefer-rest-params': 'error',
159
+ // suggest using the spread syntax instead of .apply()
160
+ // https://eslint.org/docs/rules/prefer-spread
161
+ 'prefer-spread': 'error',
162
+ // suggest using template literals instead of string concatenation
163
+ // https://eslint.org/docs/rules/prefer-template
164
+ 'prefer-template': 'error',
165
+ // disallow generator functions that do not have yield
166
+ // https://eslint.org/docs/rules/require-yield
167
+ 'require-yield': 'error',
168
+ // enforce spacing between object rest-spread
169
+ // https://eslint.org/docs/rules/rest-spread-spacing
170
+ 'rest-spread-spacing': ['error', 'never'],
171
+ // import sorting
172
+ // https://eslint.org/docs/rules/sort-imports
173
+ 'sort-imports': [
174
+ 'off',
175
+ {
176
+ ignoreCase: false,
177
+ ignoreDeclarationSort: false,
178
+ ignoreMemberSort: false,
179
+ memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
180
+ },
181
+ ],
182
+ // require a Symbol description
183
+ // https://eslint.org/docs/rules/symbol-description
184
+ 'symbol-description': 'error',
185
+ // enforce usage of spacing in template strings
186
+ // https://eslint.org/docs/rules/template-curly-spacing
187
+ 'template-curly-spacing': 'error',
188
+ // enforce spacing around the * in yield* expressions
189
+ // https://eslint.org/docs/rules/yield-star-spacing
190
+ 'yield-star-spacing': ['error', 'after'],
191
+ },
192
+ };
@@ -0,0 +1,151 @@
1
+ import type { Linter } from 'eslint';
2
+ declare const _default: {
3
+ name: string;
4
+ languageOptions: {
5
+ globals: {
6
+ Array: false;
7
+ ArrayBuffer: false;
8
+ Boolean: false;
9
+ DataView: false;
10
+ Date: false;
11
+ decodeURI: false;
12
+ decodeURIComponent: false;
13
+ encodeURI: false;
14
+ encodeURIComponent: false;
15
+ Error: false;
16
+ escape: false;
17
+ eval: false;
18
+ EvalError: false;
19
+ Float32Array: false;
20
+ Float64Array: false;
21
+ Function: false;
22
+ Infinity: false;
23
+ Int16Array: false;
24
+ Int32Array: false;
25
+ Int8Array: false;
26
+ Intl: false;
27
+ isFinite: false;
28
+ isNaN: false;
29
+ JSON: false;
30
+ Map: false;
31
+ Math: false;
32
+ NaN: false;
33
+ Number: false;
34
+ Object: false;
35
+ parseFloat: false;
36
+ parseInt: false;
37
+ Promise: false;
38
+ Proxy: false;
39
+ RangeError: false;
40
+ ReferenceError: false;
41
+ Reflect: false;
42
+ RegExp: false;
43
+ Set: false;
44
+ String: false;
45
+ Symbol: false;
46
+ SyntaxError: false;
47
+ TypeError: false;
48
+ Uint16Array: false;
49
+ Uint32Array: false;
50
+ Uint8Array: false;
51
+ Uint8ClampedArray: false;
52
+ undefined: false;
53
+ unescape: false;
54
+ URIError: false;
55
+ WeakMap: false;
56
+ WeakSet: false;
57
+ };
58
+ parserOptions: {
59
+ ecmaVersion: 6;
60
+ sourceType: "module";
61
+ };
62
+ };
63
+ settings: {
64
+ 'import-x/resolver': {
65
+ node: {
66
+ extensions: string[];
67
+ };
68
+ };
69
+ 'import-x/extensions': string[];
70
+ 'import-x/core-modules': never[];
71
+ 'import-x/ignore': string[];
72
+ };
73
+ rules: {
74
+ 'import-x/consistent-type-specifier-style': "off";
75
+ 'import-x/default': "error";
76
+ 'import-x/dynamic-import-chunkname': "off";
77
+ 'import-x/export': "error";
78
+ 'import-x/exports-last': "off";
79
+ 'import-x/extensions': ["error", string, {
80
+ [k: string]: string;
81
+ }];
82
+ 'import-x/first': "error";
83
+ 'import-x/group-exports': "off";
84
+ 'import-x/imports-first': "off";
85
+ 'import-x/max-dependencies': "off";
86
+ 'import-x/named': "error";
87
+ 'import-x/namespaces': "error";
88
+ 'import-x/newline-after-import': "error";
89
+ 'import-x/no-absolute-path': "error";
90
+ 'import-x/no-amd': "error";
91
+ 'import-x/no-anonymous-default-export': "off";
92
+ 'import-x/no-commonjs': "off";
93
+ 'import-x/no-cycle': ["error", {
94
+ maxDepth: string;
95
+ }];
96
+ 'import-x/no-default-export': "off";
97
+ 'import-x/no-deprecated': "off";
98
+ 'import-x/no-duplicates': "error";
99
+ 'import-x/no-dynamic-require': "error";
100
+ 'import-x/no-empty-named-blocks': "error";
101
+ 'import-x/no-extraneous-dependencies': ["error", {
102
+ devDependencies: string[];
103
+ optionalDependencies: boolean;
104
+ peerDependencies: boolean;
105
+ bundledDependencies: boolean;
106
+ }];
107
+ 'import-x/no-import-module-exports': ["error", {
108
+ exceptions: never[];
109
+ }];
110
+ 'import-x/no-internal-modules': "off";
111
+ 'import-x/no-mutable-exports': "error";
112
+ 'import-x/no-named-as-default-member': "error";
113
+ 'import-x/no-named-as-default': "error";
114
+ 'import-x/no-named-default': "error";
115
+ 'import-x/no-named-export': "off";
116
+ 'import-x/no-namespace': "off";
117
+ 'import-x/no-nodejs-modules': "off";
118
+ 'import-x/no-relative-packages': "error";
119
+ 'import-x/no-relative-parent-imports': "off";
120
+ 'import-x/no-rename-default': "warn";
121
+ 'import-x/no-restricted-paths': "off";
122
+ 'import-x/no-self-import': "error";
123
+ 'import-x/no-unassigned-import': "off";
124
+ 'import-x/no-unresolved': ["error", {
125
+ commonjs: boolean;
126
+ caseSensitive: boolean;
127
+ }];
128
+ 'import-x/no-unused-modules': ["off", {
129
+ ignoreExports: never[];
130
+ missingExports: boolean;
131
+ unusedExports: boolean;
132
+ }];
133
+ 'import-x/no-useless-path-segments': ["error", {
134
+ noUselessIndex: boolean;
135
+ commonjs: boolean;
136
+ }];
137
+ 'import-x/no-webpack-loader-syntax': "error";
138
+ 'import-x/order': ["error", {
139
+ groups: string[][];
140
+ }];
141
+ 'import-x/prefer-default-export': "error";
142
+ 'import-x/unambiguous': "off";
143
+ };
144
+ files?: Array<string | string[]>;
145
+ ignores?: string[];
146
+ language?: string;
147
+ linterOptions?: Linter.LinterOptions;
148
+ processor?: string | Linter.Processor;
149
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
150
+ };
151
+ export default _default;