eslint-config-airbnb-extended 0.3.1 → 0.4.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/README.md +10 -0
- package/dist/@types/index.d.ts +22 -0
- package/dist/configs/base/index.js +24 -0
- package/dist/{base → configs/base}/recommended.js +4 -3
- package/dist/configs/index.js +34 -0
- package/dist/{react → configs/react}/index.js +5 -4
- package/dist/{react → configs/react}/recommended.js +5 -6
- package/dist/configs/typescript/index.js +14 -0
- package/dist/{typescript → configs/typescript}/recommended.js +6 -5
- package/dist/helpers/getDevDepsList.js +1 -2
- package/dist/index.js +11 -37
- package/dist/plugins/index.js +21 -0
- package/dist/plugins/nextPlugin.js +12 -0
- package/dist/plugins/reactA11yPlugin.js +12 -0
- package/dist/plugins/reactHooksPlugin.js +51 -0
- package/dist/plugins/reactPlugin.js +13 -0
- package/dist/plugins/typescriptEslintPlugin.js +16 -0
- package/dist/rules/best-practices.js +2 -1
- package/dist/rules/errors.js +2 -1
- package/dist/rules/es6.js +2 -1
- package/dist/rules/imports.js +8 -13
- package/dist/rules/importsStrict.js +3 -16
- package/dist/rules/index.js +21 -0
- package/dist/rules/next.js +2 -4
- package/dist/rules/node.js +2 -1
- package/dist/rules/react-a11y.js +2 -7
- package/dist/rules/react-hooks.js +2 -38
- package/dist/rules/react.js +2 -5
- package/dist/rules/strict.js +2 -1
- package/dist/rules/style.js +2 -1
- package/dist/rules/typescript/typescriptBase.js +3 -2
- package/dist/rules/typescript/typescriptEslint.js +11 -17
- package/dist/rules/typescript/typescriptImports.js +8 -4
- package/dist/rules/variables.js +2 -1
- package/package.json +3 -3
- package/dist/base/index.d.ts +0 -990
- package/dist/base/index.js +0 -23
- package/dist/base/recommended.d.ts +0 -990
- package/dist/helpers/getDevDepsList.d.ts +0 -3
- package/dist/index.d.ts +0 -17982
- package/dist/react/index.d.ts +0 -1793
- package/dist/react/recommended.d.ts +0 -2786
- package/dist/rules/best-practices.d.ts +0 -177
- package/dist/rules/errors.d.ts +0 -69
- package/dist/rules/es6.d.ts +0 -146
- package/dist/rules/imports.d.ts +0 -151
- package/dist/rules/importsStrict.d.ts +0 -43
- package/dist/rules/next.d.ts +0 -8
- package/dist/rules/node.d.ts +0 -90
- package/dist/rules/react-a11y.d.ts +0 -117
- package/dist/rules/react-hooks.d.ts +0 -19
- package/dist/rules/react.d.ts +0 -1659
- package/dist/rules/strict.d.ts +0 -7
- package/dist/rules/style.d.ts +0 -320
- package/dist/rules/typescript/typescriptBase.d.ts +0 -23
- package/dist/rules/typescript/typescriptEslint.d.ts +0 -3
- package/dist/rules/typescript/typescriptImports.d.ts +0 -37
- package/dist/rules/typescript.d.ts +0 -47
- package/dist/rules/typescript.js +0 -9
- package/dist/rules/variables.d.ts +0 -35
- package/dist/typescript/index.d.ts +0 -58
- package/dist/typescript/index.js +0 -11
- package/dist/typescript/recommended.d.ts +0 -112
- package/dist/utils/index.d.ts +0 -13
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
name: string;
|
|
3
|
-
rules: {
|
|
4
|
-
'accessor-pairs': "off";
|
|
5
|
-
'array-callback-return': ["error", {
|
|
6
|
-
allowImplicit: boolean;
|
|
7
|
-
}];
|
|
8
|
-
'block-scoped-var': "error";
|
|
9
|
-
complexity: ["off", number];
|
|
10
|
-
'class-methods-use-this': ["error", {
|
|
11
|
-
exceptMethods: never[];
|
|
12
|
-
}];
|
|
13
|
-
'consistent-return': "error";
|
|
14
|
-
curly: ["error", string];
|
|
15
|
-
'default-case': ["error", {
|
|
16
|
-
commentPattern: string;
|
|
17
|
-
}];
|
|
18
|
-
'default-case-last': "error";
|
|
19
|
-
'default-param-last': "error";
|
|
20
|
-
'dot-notation': ["error", {
|
|
21
|
-
allowKeywords: boolean;
|
|
22
|
-
}];
|
|
23
|
-
'dot-location': ["error", string];
|
|
24
|
-
eqeqeq: ["error", string, {
|
|
25
|
-
null: string;
|
|
26
|
-
}];
|
|
27
|
-
'grouped-accessor-pairs': "error";
|
|
28
|
-
'guard-for-in': "error";
|
|
29
|
-
'max-classes-per-file': ["error", number];
|
|
30
|
-
'no-alert': "warn";
|
|
31
|
-
'no-caller': "error";
|
|
32
|
-
'no-case-declarations': "error";
|
|
33
|
-
'no-constructor-return': "error";
|
|
34
|
-
'no-div-regex': "off";
|
|
35
|
-
'no-else-return': ["error", {
|
|
36
|
-
allowElseIf: boolean;
|
|
37
|
-
}];
|
|
38
|
-
'no-empty-function': ["error", {
|
|
39
|
-
allow: string[];
|
|
40
|
-
}];
|
|
41
|
-
'no-empty-pattern': "error";
|
|
42
|
-
'no-empty-static-block': "off";
|
|
43
|
-
'no-eq-null': "off";
|
|
44
|
-
'no-eval': "error";
|
|
45
|
-
'no-extend-native': "error";
|
|
46
|
-
'no-extra-bind': "error";
|
|
47
|
-
'no-extra-label': "error";
|
|
48
|
-
'no-fallthrough': "error";
|
|
49
|
-
'no-floating-decimal': "error";
|
|
50
|
-
'no-global-assign': ["error", {
|
|
51
|
-
exceptions: never[];
|
|
52
|
-
}];
|
|
53
|
-
'no-native-reassign': "off";
|
|
54
|
-
'no-implicit-coercion': ["off", {
|
|
55
|
-
boolean: boolean;
|
|
56
|
-
number: boolean;
|
|
57
|
-
string: boolean;
|
|
58
|
-
allow: never[];
|
|
59
|
-
}];
|
|
60
|
-
'no-implicit-globals': "off";
|
|
61
|
-
'no-implied-eval': "error";
|
|
62
|
-
'no-invalid-this': "off";
|
|
63
|
-
'no-iterator': "error";
|
|
64
|
-
'no-labels': ["error", {
|
|
65
|
-
allowLoop: boolean;
|
|
66
|
-
allowSwitch: boolean;
|
|
67
|
-
}];
|
|
68
|
-
'no-lone-blocks': "error";
|
|
69
|
-
'no-loop-func': "error";
|
|
70
|
-
'no-magic-numbers': ["off", {
|
|
71
|
-
ignore: never[];
|
|
72
|
-
ignoreArrayIndexes: boolean;
|
|
73
|
-
enforceConst: boolean;
|
|
74
|
-
detectObjects: boolean;
|
|
75
|
-
}];
|
|
76
|
-
'no-multi-spaces': ["error", {
|
|
77
|
-
ignoreEOLComments: boolean;
|
|
78
|
-
}];
|
|
79
|
-
'no-multi-str': "error";
|
|
80
|
-
'no-new': "error";
|
|
81
|
-
'no-new-func': "error";
|
|
82
|
-
'no-new-wrappers': "error";
|
|
83
|
-
'no-nonoctal-decimal-escape': "error";
|
|
84
|
-
'no-object-constructor': "off";
|
|
85
|
-
'no-octal': "error";
|
|
86
|
-
'no-octal-escape': "error";
|
|
87
|
-
'no-param-reassign': ["error", {
|
|
88
|
-
props: boolean;
|
|
89
|
-
ignorePropertyModificationsFor: string[];
|
|
90
|
-
}];
|
|
91
|
-
'no-proto': "error";
|
|
92
|
-
'no-redeclare': "error";
|
|
93
|
-
'no-restricted-properties': ["error", {
|
|
94
|
-
object: string;
|
|
95
|
-
property: string;
|
|
96
|
-
message: string;
|
|
97
|
-
}, {
|
|
98
|
-
object: string;
|
|
99
|
-
property: string;
|
|
100
|
-
message: string;
|
|
101
|
-
}, {
|
|
102
|
-
object: string;
|
|
103
|
-
property: string;
|
|
104
|
-
message: string;
|
|
105
|
-
}, {
|
|
106
|
-
object: string;
|
|
107
|
-
property: string;
|
|
108
|
-
message: string;
|
|
109
|
-
}, {
|
|
110
|
-
object: string;
|
|
111
|
-
property: string;
|
|
112
|
-
message: string;
|
|
113
|
-
}, {
|
|
114
|
-
object: string;
|
|
115
|
-
property: string;
|
|
116
|
-
message: string;
|
|
117
|
-
}, {
|
|
118
|
-
object: string;
|
|
119
|
-
property: string;
|
|
120
|
-
message: string;
|
|
121
|
-
}, {
|
|
122
|
-
property: string;
|
|
123
|
-
message: string;
|
|
124
|
-
}, {
|
|
125
|
-
property: string;
|
|
126
|
-
message: string;
|
|
127
|
-
}, {
|
|
128
|
-
object: string;
|
|
129
|
-
property: string;
|
|
130
|
-
message: string;
|
|
131
|
-
}];
|
|
132
|
-
'no-return-assign': ["error", string];
|
|
133
|
-
'no-return-await': "error";
|
|
134
|
-
'no-script-url': "error";
|
|
135
|
-
'no-self-assign': ["error", {
|
|
136
|
-
props: boolean;
|
|
137
|
-
}];
|
|
138
|
-
'no-self-compare': "error";
|
|
139
|
-
'no-sequences': "error";
|
|
140
|
-
'no-throw-literal': "error";
|
|
141
|
-
'no-unmodified-loop-condition': "off";
|
|
142
|
-
'no-unused-expressions': ["error", {
|
|
143
|
-
allowShortCircuit: boolean;
|
|
144
|
-
allowTernary: boolean;
|
|
145
|
-
allowTaggedTemplates: boolean;
|
|
146
|
-
}];
|
|
147
|
-
'no-unused-labels': "error";
|
|
148
|
-
'no-useless-call': "off";
|
|
149
|
-
'no-useless-catch': "error";
|
|
150
|
-
'no-useless-concat': "error";
|
|
151
|
-
'no-useless-escape': "error";
|
|
152
|
-
'no-useless-return': "error";
|
|
153
|
-
'no-void': "error";
|
|
154
|
-
'no-warning-comments': ["off", {
|
|
155
|
-
terms: string[];
|
|
156
|
-
location: string;
|
|
157
|
-
}];
|
|
158
|
-
'no-with': "error";
|
|
159
|
-
'prefer-promise-reject-errors': ["error", {
|
|
160
|
-
allowEmptyReject: boolean;
|
|
161
|
-
}];
|
|
162
|
-
'prefer-named-capture-group': "off";
|
|
163
|
-
'prefer-object-has-own': "off";
|
|
164
|
-
'prefer-regex-literals': ["error", {
|
|
165
|
-
disallowRedundantWrapping: boolean;
|
|
166
|
-
}];
|
|
167
|
-
radix: "error";
|
|
168
|
-
'require-await': "off";
|
|
169
|
-
'require-unicode-regexp': "off";
|
|
170
|
-
'vars-on-top': "error";
|
|
171
|
-
'wrap-iife': ["error", string, {
|
|
172
|
-
functionPrototypeMethods: boolean;
|
|
173
|
-
}];
|
|
174
|
-
yoda: "error";
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
export default _default;
|
package/dist/rules/errors.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
name: string;
|
|
3
|
-
rules: {
|
|
4
|
-
'for-direction': "error";
|
|
5
|
-
'getter-return': ["error", {
|
|
6
|
-
allowImplicit: boolean;
|
|
7
|
-
}];
|
|
8
|
-
'no-async-promise-executor': "error";
|
|
9
|
-
'no-await-in-loop': "error";
|
|
10
|
-
'no-compare-neg-zero': "error";
|
|
11
|
-
'no-cond-assign': ["error", string];
|
|
12
|
-
'no-console': "warn";
|
|
13
|
-
'no-constant-binary-expression': "off";
|
|
14
|
-
'no-constant-condition': "warn";
|
|
15
|
-
'no-control-regex': "error";
|
|
16
|
-
'no-debugger': "error";
|
|
17
|
-
'no-dupe-args': "error";
|
|
18
|
-
'no-dupe-else-if': "error";
|
|
19
|
-
'no-dupe-keys': "error";
|
|
20
|
-
'no-duplicate-case': "error";
|
|
21
|
-
'no-empty': "error";
|
|
22
|
-
'no-empty-character-class': "error";
|
|
23
|
-
'no-ex-assign': "error";
|
|
24
|
-
'no-extra-boolean-cast': "error";
|
|
25
|
-
'no-extra-parens': ["off", string, {
|
|
26
|
-
conditionalAssign: boolean;
|
|
27
|
-
nestedBinaryExpressions: boolean;
|
|
28
|
-
returnAssign: boolean;
|
|
29
|
-
ignoreJSX: string;
|
|
30
|
-
enforceForArrowConditionals: boolean;
|
|
31
|
-
}];
|
|
32
|
-
'no-extra-semi': "error";
|
|
33
|
-
'no-func-assign': "error";
|
|
34
|
-
'no-import-assign': "error";
|
|
35
|
-
'no-inner-declarations': "error";
|
|
36
|
-
'no-invalid-regexp': "error";
|
|
37
|
-
'no-irregular-whitespace': "error";
|
|
38
|
-
'no-loss-of-precision': "error";
|
|
39
|
-
'no-misleading-character-class': "error";
|
|
40
|
-
'no-obj-calls': "error";
|
|
41
|
-
'no-new-native-nonconstructor': "off";
|
|
42
|
-
'no-promise-executor-return': "error";
|
|
43
|
-
'no-prototype-builtins': "error";
|
|
44
|
-
'no-regex-spaces': "error";
|
|
45
|
-
'no-setter-return': "error";
|
|
46
|
-
'no-sparse-arrays': "error";
|
|
47
|
-
'no-template-curly-in-string': "error";
|
|
48
|
-
'no-unexpected-multiline': "error";
|
|
49
|
-
'no-unreachable': "error";
|
|
50
|
-
'no-unreachable-loop': ["error", {
|
|
51
|
-
ignore: never[];
|
|
52
|
-
}];
|
|
53
|
-
'no-unsafe-finally': "error";
|
|
54
|
-
'no-unsafe-negation': "error";
|
|
55
|
-
'no-unsafe-optional-chaining': ["error", {
|
|
56
|
-
disallowArithmeticOperators: boolean;
|
|
57
|
-
}];
|
|
58
|
-
'no-unused-private-class-members': "off";
|
|
59
|
-
'no-useless-backreference': "error";
|
|
60
|
-
'no-negated-in-lhs': "off";
|
|
61
|
-
'require-atomic-updates': "off";
|
|
62
|
-
'use-isnan': "error";
|
|
63
|
-
'valid-jsdoc': "off";
|
|
64
|
-
'valid-typeof': ["error", {
|
|
65
|
-
requireStringLiterals: boolean;
|
|
66
|
-
}];
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export default _default;
|
package/dist/rules/es6.d.ts
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
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;
|
package/dist/rules/imports.d.ts
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
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;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
name: string;
|
|
3
|
-
rules: {
|
|
4
|
-
'import-x/group-exports': "error";
|
|
5
|
-
'import-x/no-anonymous-default-export': ["error", {
|
|
6
|
-
allowArray: boolean;
|
|
7
|
-
allowObject: boolean;
|
|
8
|
-
}];
|
|
9
|
-
'import-x/no-namespace': "error";
|
|
10
|
-
'import-x/no-unused-modules': ["warn", {
|
|
11
|
-
missingExports: boolean;
|
|
12
|
-
unusedExports: boolean;
|
|
13
|
-
}];
|
|
14
|
-
'import-x/order': ["error", {
|
|
15
|
-
groups: (string | string[])[];
|
|
16
|
-
pathGroups: {
|
|
17
|
-
pattern: string;
|
|
18
|
-
group: string;
|
|
19
|
-
position: string;
|
|
20
|
-
}[];
|
|
21
|
-
pathGroupsExcludedImportTypes: string[];
|
|
22
|
-
distinctGroup: boolean;
|
|
23
|
-
'newlines-between': string;
|
|
24
|
-
alphabetize: {
|
|
25
|
-
order: string;
|
|
26
|
-
orderImportKind: string;
|
|
27
|
-
caseInsensitive: boolean;
|
|
28
|
-
};
|
|
29
|
-
named: {
|
|
30
|
-
enabled: boolean;
|
|
31
|
-
import: boolean;
|
|
32
|
-
export: boolean;
|
|
33
|
-
require: boolean;
|
|
34
|
-
cjsExports: boolean;
|
|
35
|
-
types: string;
|
|
36
|
-
};
|
|
37
|
-
warnOnUnassignedImports: boolean;
|
|
38
|
-
sortTypesGroup: boolean;
|
|
39
|
-
'newlines-between-types': string;
|
|
40
|
-
}];
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export default _default;
|
package/dist/rules/next.d.ts
DELETED
package/dist/rules/node.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
name: string;
|
|
3
|
-
languageOptions: {
|
|
4
|
-
globals: {
|
|
5
|
-
AbortController: false;
|
|
6
|
-
AbortSignal: false;
|
|
7
|
-
atob: false;
|
|
8
|
-
Blob: false;
|
|
9
|
-
BroadcastChannel: false;
|
|
10
|
-
btoa: false;
|
|
11
|
-
Buffer: false;
|
|
12
|
-
ByteLengthQueuingStrategy: false;
|
|
13
|
-
clearImmediate: false;
|
|
14
|
-
clearInterval: false;
|
|
15
|
-
clearTimeout: false;
|
|
16
|
-
CloseEvent: false;
|
|
17
|
-
CompressionStream: false;
|
|
18
|
-
console: false;
|
|
19
|
-
CountQueuingStrategy: false;
|
|
20
|
-
crypto: false;
|
|
21
|
-
Crypto: false;
|
|
22
|
-
CryptoKey: false;
|
|
23
|
-
CustomEvent: false;
|
|
24
|
-
DecompressionStream: false;
|
|
25
|
-
DOMException: false;
|
|
26
|
-
Event: false;
|
|
27
|
-
EventTarget: false;
|
|
28
|
-
fetch: false;
|
|
29
|
-
File: false;
|
|
30
|
-
FormData: false;
|
|
31
|
-
global: false;
|
|
32
|
-
Headers: false;
|
|
33
|
-
MessageChannel: false;
|
|
34
|
-
MessageEvent: false;
|
|
35
|
-
MessagePort: false;
|
|
36
|
-
navigator: false;
|
|
37
|
-
Navigator: false;
|
|
38
|
-
performance: false;
|
|
39
|
-
Performance: false;
|
|
40
|
-
PerformanceEntry: false;
|
|
41
|
-
PerformanceMark: false;
|
|
42
|
-
PerformanceMeasure: false;
|
|
43
|
-
PerformanceObserver: false;
|
|
44
|
-
PerformanceObserverEntryList: false;
|
|
45
|
-
PerformanceResourceTiming: false;
|
|
46
|
-
process: false;
|
|
47
|
-
queueMicrotask: false;
|
|
48
|
-
ReadableByteStreamController: false;
|
|
49
|
-
ReadableStream: false;
|
|
50
|
-
ReadableStreamBYOBReader: false;
|
|
51
|
-
ReadableStreamBYOBRequest: false;
|
|
52
|
-
ReadableStreamDefaultController: false;
|
|
53
|
-
ReadableStreamDefaultReader: false;
|
|
54
|
-
Request: false;
|
|
55
|
-
Response: false;
|
|
56
|
-
setImmediate: false;
|
|
57
|
-
setInterval: false;
|
|
58
|
-
setTimeout: false;
|
|
59
|
-
structuredClone: false;
|
|
60
|
-
SubtleCrypto: false;
|
|
61
|
-
TextDecoder: false;
|
|
62
|
-
TextDecoderStream: false;
|
|
63
|
-
TextEncoder: false;
|
|
64
|
-
TextEncoderStream: false;
|
|
65
|
-
TransformStream: false;
|
|
66
|
-
TransformStreamDefaultController: false;
|
|
67
|
-
URL: false;
|
|
68
|
-
URLSearchParams: false;
|
|
69
|
-
WebAssembly: false;
|
|
70
|
-
WebSocket: false;
|
|
71
|
-
WritableStream: false;
|
|
72
|
-
WritableStreamDefaultController: false;
|
|
73
|
-
WritableStreamDefaultWriter: false;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
rules: {
|
|
77
|
-
'callback-return': "off";
|
|
78
|
-
'global-require': "error";
|
|
79
|
-
'handle-callback-err': "off";
|
|
80
|
-
'no-buffer-constructor': "error";
|
|
81
|
-
'no-mixed-requires': ["off", boolean];
|
|
82
|
-
'no-new-require': "error";
|
|
83
|
-
'no-path-concat': "error";
|
|
84
|
-
'no-process-env': "off";
|
|
85
|
-
'no-process-exit': "off";
|
|
86
|
-
'no-restricted-modules': "off";
|
|
87
|
-
'no-sync': "off";
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
export default _default;
|