eslint-config-airbnb-extended 0.0.2 → 0.0.4
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/dist/base/index.d.ts +1995 -0
- package/dist/base/index.js +25 -0
- package/dist/base/recommended.d.ts +998 -0
- package/dist/base/recommended.js +33 -0
- package/dist/index.d.ts +1969 -923
- package/dist/index.js +4 -27
- package/dist/rules/best-practices.d.ts +137 -106
- package/dist/rules/best-practices.js +1 -0
- package/dist/rules/errors.d.ts +55 -54
- package/dist/rules/errors.js +1 -0
- package/dist/rules/es6.d.ts +49 -51
- package/dist/rules/es6.js +1 -0
- package/dist/rules/imports.d.ts +60 -59
- package/dist/rules/imports.js +1 -0
- package/dist/rules/node.d.ts +12 -11
- package/dist/rules/node.js +1 -0
- package/dist/rules/strict.d.ts +2 -1
- package/dist/rules/strict.js +1 -0
- package/dist/rules/style.d.ts +150 -144
- package/dist/rules/style.js +1 -0
- package/dist/rules/variables.d.ts +22 -15
- package/dist/rules/variables.js +1 -0
- package/package.json +9 -1
package/dist/rules/imports.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
name: string;
|
|
2
3
|
languageOptions: {
|
|
3
4
|
globals: {
|
|
4
5
|
Array: false;
|
|
@@ -54,8 +55,8 @@ declare const _default: {
|
|
|
54
55
|
WeakSet: false;
|
|
55
56
|
};
|
|
56
57
|
parserOptions: {
|
|
57
|
-
ecmaVersion:
|
|
58
|
-
sourceType:
|
|
58
|
+
ecmaVersion: 6;
|
|
59
|
+
sourceType: "module";
|
|
59
60
|
};
|
|
60
61
|
};
|
|
61
62
|
plugins: {
|
|
@@ -72,87 +73,87 @@ declare const _default: {
|
|
|
72
73
|
'import/ignore': string[];
|
|
73
74
|
};
|
|
74
75
|
rules: {
|
|
75
|
-
'import/no-unresolved':
|
|
76
|
+
'import/no-unresolved': ["error", {
|
|
76
77
|
commonjs: boolean;
|
|
77
78
|
caseSensitive: boolean;
|
|
78
|
-
}
|
|
79
|
-
'import/named':
|
|
80
|
-
'import/default':
|
|
81
|
-
'import/namespace':
|
|
82
|
-
'import/export':
|
|
83
|
-
'import/no-named-as-default':
|
|
84
|
-
'import/no-named-as-default-member':
|
|
85
|
-
'import/no-deprecated':
|
|
86
|
-
'import/no-extraneous-dependencies':
|
|
79
|
+
}];
|
|
80
|
+
'import/named': "error";
|
|
81
|
+
'import/default': "off";
|
|
82
|
+
'import/namespace': "off";
|
|
83
|
+
'import/export': "error";
|
|
84
|
+
'import/no-named-as-default': "error";
|
|
85
|
+
'import/no-named-as-default-member': "error";
|
|
86
|
+
'import/no-deprecated': "off";
|
|
87
|
+
'import/no-extraneous-dependencies': ["error", {
|
|
87
88
|
devDependencies: string[];
|
|
88
89
|
optionalDependencies: boolean;
|
|
89
|
-
}
|
|
90
|
-
'import/no-mutable-exports':
|
|
91
|
-
'import/no-commonjs':
|
|
92
|
-
'import/no-amd':
|
|
93
|
-
'import/no-nodejs-modules':
|
|
94
|
-
'import/first':
|
|
95
|
-
'import/imports-first':
|
|
96
|
-
'import/no-duplicates':
|
|
97
|
-
'import/no-namespace':
|
|
98
|
-
'import/extensions':
|
|
90
|
+
}];
|
|
91
|
+
'import/no-mutable-exports': "error";
|
|
92
|
+
'import/no-commonjs': "off";
|
|
93
|
+
'import/no-amd': "error";
|
|
94
|
+
'import/no-nodejs-modules': "off";
|
|
95
|
+
'import/first': "error";
|
|
96
|
+
'import/imports-first': "off";
|
|
97
|
+
'import/no-duplicates': "error";
|
|
98
|
+
'import/no-namespace': "off";
|
|
99
|
+
'import/extensions': ["error", string, {
|
|
99
100
|
js: string;
|
|
100
101
|
mjs: string;
|
|
101
102
|
jsx: string;
|
|
102
|
-
}
|
|
103
|
-
'import/order':
|
|
103
|
+
}];
|
|
104
|
+
'import/order': ["error", {
|
|
104
105
|
groups: string[][];
|
|
105
|
-
}
|
|
106
|
-
'import/newline-after-import':
|
|
107
|
-
'import/prefer-default-export':
|
|
108
|
-
'import/no-restricted-paths':
|
|
109
|
-
'import/max-dependencies':
|
|
106
|
+
}];
|
|
107
|
+
'import/newline-after-import': "error";
|
|
108
|
+
'import/prefer-default-export': "error";
|
|
109
|
+
'import/no-restricted-paths': "off";
|
|
110
|
+
'import/max-dependencies': ["off", {
|
|
110
111
|
max: number;
|
|
111
|
-
}
|
|
112
|
-
'import/no-absolute-path':
|
|
113
|
-
'import/no-dynamic-require':
|
|
114
|
-
'import/no-internal-modules':
|
|
112
|
+
}];
|
|
113
|
+
'import/no-absolute-path': "error";
|
|
114
|
+
'import/no-dynamic-require': "error";
|
|
115
|
+
'import/no-internal-modules': ["off", {
|
|
115
116
|
allow: never[];
|
|
116
|
-
}
|
|
117
|
-
'import/unambiguous':
|
|
118
|
-
'import/no-webpack-loader-syntax':
|
|
119
|
-
'import/no-unassigned-import':
|
|
120
|
-
'import/no-named-default':
|
|
121
|
-
'import/no-anonymous-default-export':
|
|
117
|
+
}];
|
|
118
|
+
'import/unambiguous': "off";
|
|
119
|
+
'import/no-webpack-loader-syntax': "error";
|
|
120
|
+
'import/no-unassigned-import': "off";
|
|
121
|
+
'import/no-named-default': "error";
|
|
122
|
+
'import/no-anonymous-default-export': ["off", {
|
|
122
123
|
allowArray: boolean;
|
|
123
124
|
allowArrowFunction: boolean;
|
|
124
125
|
allowAnonymousClass: boolean;
|
|
125
126
|
allowAnonymousFunction: boolean;
|
|
126
127
|
allowLiteral: boolean;
|
|
127
128
|
allowObject: boolean;
|
|
128
|
-
}
|
|
129
|
-
'import/exports-last':
|
|
130
|
-
'import/group-exports':
|
|
131
|
-
'import/no-default-export':
|
|
132
|
-
'import/no-named-export':
|
|
133
|
-
'import/no-self-import':
|
|
134
|
-
'import/no-cycle':
|
|
129
|
+
}];
|
|
130
|
+
'import/exports-last': "off";
|
|
131
|
+
'import/group-exports': "off";
|
|
132
|
+
'import/no-default-export': "off";
|
|
133
|
+
'import/no-named-export': "off";
|
|
134
|
+
'import/no-self-import': "error";
|
|
135
|
+
'import/no-cycle': ["error", {
|
|
135
136
|
maxDepth: string;
|
|
136
|
-
}
|
|
137
|
-
'import/no-useless-path-segments':
|
|
137
|
+
}];
|
|
138
|
+
'import/no-useless-path-segments': ["error", {
|
|
138
139
|
commonjs: boolean;
|
|
139
|
-
}
|
|
140
|
-
'import/dynamic-import-chunkname':
|
|
140
|
+
}];
|
|
141
|
+
'import/dynamic-import-chunkname': ["off", {
|
|
141
142
|
importFunctions: never[];
|
|
142
143
|
webpackChunknameFormat: string;
|
|
143
|
-
}
|
|
144
|
-
'import/no-relative-parent-imports':
|
|
145
|
-
'import/no-unused-modules':
|
|
144
|
+
}];
|
|
145
|
+
'import/no-relative-parent-imports': "off";
|
|
146
|
+
'import/no-unused-modules': ["off", {
|
|
146
147
|
ignoreExports: never[];
|
|
147
148
|
missingExports: boolean;
|
|
148
149
|
unusedExports: boolean;
|
|
149
|
-
}
|
|
150
|
-
'import/no-import-module-exports':
|
|
150
|
+
}];
|
|
151
|
+
'import/no-import-module-exports': ["error", {
|
|
151
152
|
exceptions: never[];
|
|
152
|
-
}
|
|
153
|
-
'import/no-relative-packages':
|
|
154
|
-
'import/consistent-type-specifier-style': string
|
|
155
|
-
'import/no-empty-named-blocks':
|
|
153
|
+
}];
|
|
154
|
+
'import/no-relative-packages': "error";
|
|
155
|
+
'import/consistent-type-specifier-style': ["off", string];
|
|
156
|
+
'import/no-empty-named-blocks': "off";
|
|
156
157
|
};
|
|
157
158
|
};
|
|
158
159
|
export default _default;
|
package/dist/rules/imports.js
CHANGED
|
@@ -22,6 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
var eslint_plugin_import_1 = __importDefault(require("eslint-plugin-import"));
|
|
23
23
|
var globals_1 = __importDefault(require("globals"));
|
|
24
24
|
exports.default = {
|
|
25
|
+
name: 'airbnb/config/imports',
|
|
25
26
|
languageOptions: {
|
|
26
27
|
globals: __assign({}, globals_1.default.es2015),
|
|
27
28
|
parserOptions: {
|
package/dist/rules/node.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
name: string;
|
|
2
3
|
languageOptions: {
|
|
3
4
|
globals: {
|
|
4
5
|
AbortController: false;
|
|
@@ -73,17 +74,17 @@ declare const _default: {
|
|
|
73
74
|
};
|
|
74
75
|
};
|
|
75
76
|
rules: {
|
|
76
|
-
'callback-return':
|
|
77
|
-
'global-require':
|
|
78
|
-
'handle-callback-err':
|
|
79
|
-
'no-buffer-constructor':
|
|
80
|
-
'no-mixed-requires':
|
|
81
|
-
'no-new-require':
|
|
82
|
-
'no-path-concat':
|
|
83
|
-
'no-process-env':
|
|
84
|
-
'no-process-exit':
|
|
85
|
-
'no-restricted-modules':
|
|
86
|
-
'no-sync':
|
|
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";
|
|
87
88
|
};
|
|
88
89
|
};
|
|
89
90
|
export default _default;
|
package/dist/rules/node.js
CHANGED
|
@@ -16,6 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var globals_1 = __importDefault(require("globals"));
|
|
18
18
|
exports.default = {
|
|
19
|
+
name: 'airbnb/config/node',
|
|
19
20
|
languageOptions: {
|
|
20
21
|
globals: __assign({}, globals_1.default.nodeBuiltin),
|
|
21
22
|
},
|
package/dist/rules/strict.d.ts
CHANGED
package/dist/rules/strict.js
CHANGED
package/dist/rules/style.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
name: string;
|
|
2
3
|
rules: {
|
|
3
|
-
'array-bracket-newline': string
|
|
4
|
-
'array-element-newline':
|
|
4
|
+
'array-bracket-newline': ["off", string];
|
|
5
|
+
'array-element-newline': ["off", {
|
|
5
6
|
multiline: boolean;
|
|
6
7
|
minItems: number;
|
|
7
|
-
}
|
|
8
|
-
'array-bracket-spacing': string
|
|
9
|
-
'block-spacing': string
|
|
10
|
-
'brace-style':
|
|
8
|
+
}];
|
|
9
|
+
'array-bracket-spacing': ["error", string];
|
|
10
|
+
'block-spacing': ["error", string];
|
|
11
|
+
'brace-style': ["error", string, {
|
|
11
12
|
allowSingleLine: boolean;
|
|
12
|
-
}
|
|
13
|
-
camelcase:
|
|
13
|
+
}];
|
|
14
|
+
camelcase: ["error", {
|
|
14
15
|
properties: string;
|
|
15
16
|
ignoreDestructuring: boolean;
|
|
16
|
-
}
|
|
17
|
-
'capitalized-comments':
|
|
17
|
+
}];
|
|
18
|
+
'capitalized-comments': ["off", string, {
|
|
18
19
|
line: {
|
|
19
20
|
ignorePattern: string;
|
|
20
21
|
ignoreInlineComments: boolean;
|
|
@@ -25,19 +26,19 @@ declare const _default: {
|
|
|
25
26
|
ignoreInlineComments: boolean;
|
|
26
27
|
ignoreConsecutiveComments: boolean;
|
|
27
28
|
};
|
|
28
|
-
}
|
|
29
|
-
'comma-dangle':
|
|
29
|
+
}];
|
|
30
|
+
'comma-dangle': ["error", {
|
|
30
31
|
arrays: string;
|
|
31
32
|
objects: string;
|
|
32
33
|
imports: string;
|
|
33
34
|
exports: string;
|
|
34
35
|
functions: string;
|
|
35
|
-
}
|
|
36
|
-
'comma-spacing':
|
|
36
|
+
}];
|
|
37
|
+
'comma-spacing': ["error", {
|
|
37
38
|
before: boolean;
|
|
38
39
|
after: boolean;
|
|
39
|
-
}
|
|
40
|
-
'comma-style':
|
|
40
|
+
}];
|
|
41
|
+
'comma-style': ["error", string, {
|
|
41
42
|
exceptions: {
|
|
42
43
|
ArrayExpression: boolean;
|
|
43
44
|
ArrayPattern: boolean;
|
|
@@ -51,24 +52,24 @@ declare const _default: {
|
|
|
51
52
|
VariableDeclaration: boolean;
|
|
52
53
|
NewExpression: boolean;
|
|
53
54
|
};
|
|
54
|
-
}
|
|
55
|
-
'computed-property-spacing': string
|
|
56
|
-
'consistent-this':
|
|
57
|
-
'eol-last': string
|
|
58
|
-
'function-call-argument-newline': string
|
|
59
|
-
'func-call-spacing': string
|
|
60
|
-
'func-name-matching':
|
|
55
|
+
}];
|
|
56
|
+
'computed-property-spacing': ["error", string];
|
|
57
|
+
'consistent-this': "off";
|
|
58
|
+
'eol-last': ["error", string];
|
|
59
|
+
'function-call-argument-newline': ["error", string];
|
|
60
|
+
'func-call-spacing': ["error", string];
|
|
61
|
+
'func-name-matching': ["off", string, {
|
|
61
62
|
includeCommonJSModuleExports: boolean;
|
|
62
63
|
considerPropertyDescriptor: boolean;
|
|
63
|
-
}
|
|
64
|
-
'func-names':
|
|
65
|
-
'func-style': string
|
|
66
|
-
'function-paren-newline': string
|
|
67
|
-
'id-denylist':
|
|
68
|
-
'id-length':
|
|
69
|
-
'id-match':
|
|
70
|
-
'implicit-arrow-linebreak': string
|
|
71
|
-
indent:
|
|
64
|
+
}];
|
|
65
|
+
'func-names': "warn";
|
|
66
|
+
'func-style': ["off", string];
|
|
67
|
+
'function-paren-newline': ["error", string];
|
|
68
|
+
'id-denylist': "off";
|
|
69
|
+
'id-length': "off";
|
|
70
|
+
'id-match': "off";
|
|
71
|
+
'implicit-arrow-linebreak': ["error", string];
|
|
72
|
+
indent: ["error", number, {
|
|
72
73
|
SwitchCase: number;
|
|
73
74
|
VariableDeclarator: number;
|
|
74
75
|
outerIIFEBody: number;
|
|
@@ -89,13 +90,13 @@ declare const _default: {
|
|
|
89
90
|
flatTernaryExpressions: boolean;
|
|
90
91
|
ignoredNodes: string[];
|
|
91
92
|
ignoreComments: boolean;
|
|
92
|
-
}
|
|
93
|
-
'jsx-quotes': string
|
|
94
|
-
'key-spacing':
|
|
93
|
+
}];
|
|
94
|
+
'jsx-quotes': ["off", string];
|
|
95
|
+
'key-spacing': ["error", {
|
|
95
96
|
beforeColon: boolean;
|
|
96
97
|
afterColon: boolean;
|
|
97
|
-
}
|
|
98
|
-
'keyword-spacing':
|
|
98
|
+
}];
|
|
99
|
+
'keyword-spacing': ["error", {
|
|
99
100
|
before: boolean;
|
|
100
101
|
after: boolean;
|
|
101
102
|
overrides: {
|
|
@@ -109,109 +110,118 @@ declare const _default: {
|
|
|
109
110
|
after: boolean;
|
|
110
111
|
};
|
|
111
112
|
};
|
|
112
|
-
}
|
|
113
|
-
'line-comment-position':
|
|
113
|
+
}];
|
|
114
|
+
'line-comment-position': ["off", {
|
|
114
115
|
position: string;
|
|
115
116
|
ignorePattern: string;
|
|
116
117
|
applyDefaultPatterns: boolean;
|
|
117
|
-
}
|
|
118
|
-
'linebreak-style': string
|
|
119
|
-
'lines-between-class-members':
|
|
118
|
+
}];
|
|
119
|
+
'linebreak-style': ["error", string];
|
|
120
|
+
'lines-between-class-members': ["error", string, {
|
|
120
121
|
exceptAfterSingleLine: boolean;
|
|
121
|
-
}
|
|
122
|
-
'lines-around-comment':
|
|
123
|
-
'lines-around-directive':
|
|
122
|
+
}];
|
|
123
|
+
'lines-around-comment': "off";
|
|
124
|
+
'lines-around-directive': ["error", {
|
|
124
125
|
before: string;
|
|
125
126
|
after: string;
|
|
126
|
-
}
|
|
127
|
-
'logical-assignment-operators':
|
|
127
|
+
}];
|
|
128
|
+
'logical-assignment-operators': ["off", string, {
|
|
128
129
|
enforceForIfStatements: boolean;
|
|
129
|
-
}
|
|
130
|
-
'max-depth':
|
|
131
|
-
'max-len':
|
|
130
|
+
}];
|
|
131
|
+
'max-depth': ["off", number];
|
|
132
|
+
'max-len': ["error", number, number, {
|
|
132
133
|
ignoreUrls: boolean;
|
|
133
134
|
ignoreComments: boolean;
|
|
134
135
|
ignoreRegExpLiterals: boolean;
|
|
135
136
|
ignoreStrings: boolean;
|
|
136
137
|
ignoreTemplateLiterals: boolean;
|
|
137
|
-
}
|
|
138
|
-
'max-lines':
|
|
138
|
+
}];
|
|
139
|
+
'max-lines': ["off", {
|
|
139
140
|
max: number;
|
|
140
141
|
skipBlankLines: boolean;
|
|
141
142
|
skipComments: boolean;
|
|
142
|
-
}
|
|
143
|
-
'max-lines-per-function':
|
|
143
|
+
}];
|
|
144
|
+
'max-lines-per-function': ["off", {
|
|
144
145
|
max: number;
|
|
145
146
|
skipBlankLines: boolean;
|
|
146
147
|
skipComments: boolean;
|
|
147
148
|
IIFEs: boolean;
|
|
148
|
-
}
|
|
149
|
-
'max-nested-callbacks':
|
|
150
|
-
'max-params':
|
|
151
|
-
'max-statements':
|
|
152
|
-
'max-statements-per-line':
|
|
149
|
+
}];
|
|
150
|
+
'max-nested-callbacks': "off";
|
|
151
|
+
'max-params': ["off", number];
|
|
152
|
+
'max-statements': ["off", number];
|
|
153
|
+
'max-statements-per-line': ["off", {
|
|
153
154
|
max: number;
|
|
154
|
-
}
|
|
155
|
-
'multiline-comment-style': string
|
|
156
|
-
'multiline-ternary': string
|
|
157
|
-
'new-cap':
|
|
155
|
+
}];
|
|
156
|
+
'multiline-comment-style': ["off", string];
|
|
157
|
+
'multiline-ternary': ["off", string];
|
|
158
|
+
'new-cap': ["error", {
|
|
158
159
|
newIsCap: boolean;
|
|
159
160
|
newIsCapExceptions: never[];
|
|
160
161
|
capIsNew: boolean;
|
|
161
162
|
capIsNewExceptions: string[];
|
|
162
|
-
}
|
|
163
|
-
'new-parens':
|
|
164
|
-
'newline-after-var':
|
|
165
|
-
'newline-before-return':
|
|
166
|
-
'newline-per-chained-call':
|
|
163
|
+
}];
|
|
164
|
+
'new-parens': "error";
|
|
165
|
+
'newline-after-var': "off";
|
|
166
|
+
'newline-before-return': "off";
|
|
167
|
+
'newline-per-chained-call': ["error", {
|
|
167
168
|
ignoreChainWithDepth: number;
|
|
168
|
-
}
|
|
169
|
-
'no-array-constructor':
|
|
170
|
-
'no-bitwise':
|
|
171
|
-
'no-continue':
|
|
172
|
-
'no-inline-comments':
|
|
173
|
-
'no-lonely-if':
|
|
174
|
-
'no-mixed-operators':
|
|
169
|
+
}];
|
|
170
|
+
'no-array-constructor': "error";
|
|
171
|
+
'no-bitwise': "error";
|
|
172
|
+
'no-continue': "error";
|
|
173
|
+
'no-inline-comments': "off";
|
|
174
|
+
'no-lonely-if': "error";
|
|
175
|
+
'no-mixed-operators': ["error", {
|
|
175
176
|
groups: string[][];
|
|
176
177
|
allowSamePrecedence: boolean;
|
|
177
|
-
}
|
|
178
|
-
'no-mixed-spaces-and-tabs':
|
|
179
|
-
'no-multi-assign':
|
|
180
|
-
'no-multiple-empty-lines':
|
|
178
|
+
}];
|
|
179
|
+
'no-mixed-spaces-and-tabs': "error";
|
|
180
|
+
'no-multi-assign': ["error"];
|
|
181
|
+
'no-multiple-empty-lines': ["error", {
|
|
181
182
|
max: number;
|
|
182
183
|
maxBOF: number;
|
|
183
184
|
maxEOF: number;
|
|
184
|
-
}
|
|
185
|
-
'no-negated-condition':
|
|
186
|
-
'no-nested-ternary':
|
|
187
|
-
'no-new-object':
|
|
188
|
-
'no-plusplus':
|
|
189
|
-
'no-restricted-syntax':
|
|
185
|
+
}];
|
|
186
|
+
'no-negated-condition': "off";
|
|
187
|
+
'no-nested-ternary': "error";
|
|
188
|
+
'no-new-object': "error";
|
|
189
|
+
'no-plusplus': "error";
|
|
190
|
+
'no-restricted-syntax': ["error", {
|
|
190
191
|
selector: string;
|
|
191
192
|
message: string;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
}, {
|
|
194
|
+
selector: string;
|
|
195
|
+
message: string;
|
|
196
|
+
}, {
|
|
197
|
+
selector: string;
|
|
198
|
+
message: string;
|
|
199
|
+
}, {
|
|
200
|
+
selector: string;
|
|
201
|
+
message: string;
|
|
202
|
+
}];
|
|
203
|
+
'no-spaced-func': "off";
|
|
204
|
+
'no-tabs': "error";
|
|
205
|
+
'no-ternary': "off";
|
|
206
|
+
'no-trailing-spaces': ["error", {
|
|
197
207
|
skipBlankLines: boolean;
|
|
198
208
|
ignoreComments: boolean;
|
|
199
|
-
}
|
|
200
|
-
'no-underscore-dangle':
|
|
209
|
+
}];
|
|
210
|
+
'no-underscore-dangle': ["error", {
|
|
201
211
|
allow: never[];
|
|
202
212
|
allowAfterThis: boolean;
|
|
203
213
|
allowAfterSuper: boolean;
|
|
204
214
|
enforceInMethodNames: boolean;
|
|
205
|
-
}
|
|
206
|
-
'no-unneeded-ternary':
|
|
215
|
+
}];
|
|
216
|
+
'no-unneeded-ternary': ["error", {
|
|
207
217
|
defaultAssignment: boolean;
|
|
208
|
-
}
|
|
209
|
-
'no-whitespace-before-property':
|
|
210
|
-
'nonblock-statement-body-position':
|
|
218
|
+
}];
|
|
219
|
+
'no-whitespace-before-property': "error";
|
|
220
|
+
'nonblock-statement-body-position': ["error", string, {
|
|
211
221
|
overrides: {};
|
|
212
|
-
}
|
|
213
|
-
'object-curly-spacing': string
|
|
214
|
-
'object-curly-newline':
|
|
222
|
+
}];
|
|
223
|
+
'object-curly-spacing': ["error", string];
|
|
224
|
+
'object-curly-newline': ["error", {
|
|
215
225
|
ObjectExpression: {
|
|
216
226
|
minProperties: number;
|
|
217
227
|
multiline: boolean;
|
|
@@ -232,66 +242,62 @@ declare const _default: {
|
|
|
232
242
|
multiline: boolean;
|
|
233
243
|
consistent: boolean;
|
|
234
244
|
};
|
|
235
|
-
}
|
|
236
|
-
'object-property-newline':
|
|
245
|
+
}];
|
|
246
|
+
'object-property-newline': ["error", {
|
|
237
247
|
allowAllPropertiesOnSameLine: boolean;
|
|
238
|
-
}
|
|
239
|
-
'one-var': string
|
|
240
|
-
'one-var-declaration-per-line': string
|
|
241
|
-
'operator-assignment': string
|
|
242
|
-
'operator-linebreak':
|
|
248
|
+
}];
|
|
249
|
+
'one-var': ["error", string];
|
|
250
|
+
'one-var-declaration-per-line': ["error", string];
|
|
251
|
+
'operator-assignment': ["error", string];
|
|
252
|
+
'operator-linebreak': ["error", string, {
|
|
243
253
|
overrides: {
|
|
244
254
|
'=': string;
|
|
245
255
|
};
|
|
246
|
-
}
|
|
247
|
-
'padded-blocks':
|
|
256
|
+
}];
|
|
257
|
+
'padded-blocks': ["error", {
|
|
248
258
|
blocks: string;
|
|
249
259
|
classes: string;
|
|
250
260
|
switches: string;
|
|
251
|
-
|
|
252
|
-
} | {
|
|
261
|
+
}, {
|
|
253
262
|
allowSingleLineBlocks: boolean;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
'
|
|
259
|
-
'prefer-exponentiation-operator': string;
|
|
260
|
-
'prefer-object-spread': string;
|
|
261
|
-
'quote-props': (string | {
|
|
263
|
+
}];
|
|
264
|
+
'padding-line-between-statements': "off";
|
|
265
|
+
'prefer-exponentiation-operator': "error";
|
|
266
|
+
'prefer-object-spread': "error";
|
|
267
|
+
'quote-props': ["error", string, {
|
|
262
268
|
keywords: boolean;
|
|
263
269
|
unnecessary: boolean;
|
|
264
270
|
numbers: boolean;
|
|
265
|
-
}
|
|
266
|
-
quotes:
|
|
271
|
+
}];
|
|
272
|
+
quotes: ["error", string, {
|
|
267
273
|
avoidEscape: boolean;
|
|
268
|
-
}
|
|
269
|
-
'require-jsdoc':
|
|
270
|
-
semi: string
|
|
271
|
-
'semi-spacing':
|
|
274
|
+
}];
|
|
275
|
+
'require-jsdoc': "off";
|
|
276
|
+
semi: ["error", string];
|
|
277
|
+
'semi-spacing': ["error", {
|
|
272
278
|
before: boolean;
|
|
273
279
|
after: boolean;
|
|
274
|
-
}
|
|
275
|
-
'semi-style': string
|
|
276
|
-
'sort-keys':
|
|
280
|
+
}];
|
|
281
|
+
'semi-style': ["error", string];
|
|
282
|
+
'sort-keys': ["off", string, {
|
|
277
283
|
caseSensitive: boolean;
|
|
278
284
|
natural: boolean;
|
|
279
|
-
}
|
|
280
|
-
'sort-vars':
|
|
281
|
-
'space-before-blocks':
|
|
282
|
-
'space-before-function-paren':
|
|
285
|
+
}];
|
|
286
|
+
'sort-vars': "off";
|
|
287
|
+
'space-before-blocks': "error";
|
|
288
|
+
'space-before-function-paren': ["error", {
|
|
283
289
|
anonymous: string;
|
|
284
290
|
named: string;
|
|
285
291
|
asyncArrow: string;
|
|
286
|
-
}
|
|
287
|
-
'space-in-parens': string
|
|
288
|
-
'space-infix-ops':
|
|
289
|
-
'space-unary-ops':
|
|
292
|
+
}];
|
|
293
|
+
'space-in-parens': ["error", string];
|
|
294
|
+
'space-infix-ops': "error";
|
|
295
|
+
'space-unary-ops': ["error", {
|
|
290
296
|
words: boolean;
|
|
291
297
|
nonwords: boolean;
|
|
292
298
|
overrides: {};
|
|
293
|
-
}
|
|
294
|
-
'spaced-comment':
|
|
299
|
+
}];
|
|
300
|
+
'spaced-comment': ["error", string, {
|
|
295
301
|
line: {
|
|
296
302
|
exceptions: string[];
|
|
297
303
|
markers: string[];
|
|
@@ -301,14 +307,14 @@ declare const _default: {
|
|
|
301
307
|
markers: string[];
|
|
302
308
|
balanced: boolean;
|
|
303
309
|
};
|
|
304
|
-
}
|
|
305
|
-
'switch-colon-spacing':
|
|
310
|
+
}];
|
|
311
|
+
'switch-colon-spacing': ["error", {
|
|
306
312
|
after: boolean;
|
|
307
313
|
before: boolean;
|
|
308
|
-
}
|
|
309
|
-
'template-tag-spacing': string
|
|
310
|
-
'unicode-bom': string
|
|
311
|
-
'wrap-regex':
|
|
314
|
+
}];
|
|
315
|
+
'template-tag-spacing': ["error", string];
|
|
316
|
+
'unicode-bom': ["error", string];
|
|
317
|
+
'wrap-regex': "off";
|
|
312
318
|
};
|
|
313
319
|
};
|
|
314
320
|
export default _default;
|