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.
@@ -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: number;
58
- sourceType: string;
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': (string | {
76
+ 'import/no-unresolved': ["error", {
76
77
  commonjs: boolean;
77
78
  caseSensitive: boolean;
78
- })[];
79
- 'import/named': string;
80
- 'import/default': string;
81
- 'import/namespace': string;
82
- 'import/export': string;
83
- 'import/no-named-as-default': string;
84
- 'import/no-named-as-default-member': string;
85
- 'import/no-deprecated': string;
86
- 'import/no-extraneous-dependencies': (string | {
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': string;
91
- 'import/no-commonjs': string;
92
- 'import/no-amd': string;
93
- 'import/no-nodejs-modules': string;
94
- 'import/first': string;
95
- 'import/imports-first': string;
96
- 'import/no-duplicates': string;
97
- 'import/no-namespace': string;
98
- 'import/extensions': (string | {
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': (string | {
103
+ }];
104
+ 'import/order': ["error", {
104
105
  groups: string[][];
105
- })[];
106
- 'import/newline-after-import': string;
107
- 'import/prefer-default-export': string;
108
- 'import/no-restricted-paths': string;
109
- 'import/max-dependencies': (string | {
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': string;
113
- 'import/no-dynamic-require': string;
114
- 'import/no-internal-modules': (string | {
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': string;
118
- 'import/no-webpack-loader-syntax': string;
119
- 'import/no-unassigned-import': string;
120
- 'import/no-named-default': string;
121
- 'import/no-anonymous-default-export': (string | {
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': string;
130
- 'import/group-exports': string;
131
- 'import/no-default-export': string;
132
- 'import/no-named-export': string;
133
- 'import/no-self-import': string;
134
- 'import/no-cycle': (string | {
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': (string | {
137
+ }];
138
+ 'import/no-useless-path-segments': ["error", {
138
139
  commonjs: boolean;
139
- })[];
140
- 'import/dynamic-import-chunkname': (string | {
140
+ }];
141
+ 'import/dynamic-import-chunkname': ["off", {
141
142
  importFunctions: never[];
142
143
  webpackChunknameFormat: string;
143
- })[];
144
- 'import/no-relative-parent-imports': string;
145
- 'import/no-unused-modules': (string | {
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': (string | {
150
+ }];
151
+ 'import/no-import-module-exports': ["error", {
151
152
  exceptions: never[];
152
- })[];
153
- 'import/no-relative-packages': string;
154
- 'import/consistent-type-specifier-style': string[];
155
- 'import/no-empty-named-blocks': string;
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;
@@ -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: {
@@ -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': string;
77
- 'global-require': string;
78
- 'handle-callback-err': string;
79
- 'no-buffer-constructor': string;
80
- 'no-mixed-requires': (string | boolean)[];
81
- 'no-new-require': string;
82
- 'no-path-concat': string;
83
- 'no-process-env': string;
84
- 'no-process-exit': string;
85
- 'no-restricted-modules': string;
86
- 'no-sync': string;
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;
@@ -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
  },
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
+ name: string;
2
3
  rules: {
3
- strict: string[];
4
+ strict: ["error", string];
4
5
  };
5
6
  };
6
7
  export default _default;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
+ name: 'airbnb/config/strict',
4
5
  rules: {
5
6
  // babel inserts `'use strict';` for us
6
7
  strict: ['error', 'never'],
@@ -1,20 +1,21 @@
1
1
  declare const _default: {
2
+ name: string;
2
3
  rules: {
3
- 'array-bracket-newline': string[];
4
- 'array-element-newline': (string | {
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': (string | {
8
+ }];
9
+ 'array-bracket-spacing': ["error", string];
10
+ 'block-spacing': ["error", string];
11
+ 'brace-style': ["error", string, {
11
12
  allowSingleLine: boolean;
12
- })[];
13
- camelcase: (string | {
13
+ }];
14
+ camelcase: ["error", {
14
15
  properties: string;
15
16
  ignoreDestructuring: boolean;
16
- })[];
17
- 'capitalized-comments': (string | {
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': (string | {
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': (string | {
36
+ }];
37
+ 'comma-spacing': ["error", {
37
38
  before: boolean;
38
39
  after: boolean;
39
- })[];
40
- 'comma-style': (string | {
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': string;
57
- 'eol-last': string[];
58
- 'function-call-argument-newline': string[];
59
- 'func-call-spacing': string[];
60
- 'func-name-matching': (string | {
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': string;
65
- 'func-style': string[];
66
- 'function-paren-newline': string[];
67
- 'id-denylist': string;
68
- 'id-length': string;
69
- 'id-match': string;
70
- 'implicit-arrow-linebreak': string[];
71
- indent: (string | number | {
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': (string | {
93
+ }];
94
+ 'jsx-quotes': ["off", string];
95
+ 'key-spacing': ["error", {
95
96
  beforeColon: boolean;
96
97
  afterColon: boolean;
97
- })[];
98
- 'keyword-spacing': (string | {
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': (string | {
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': (string | {
118
+ }];
119
+ 'linebreak-style': ["error", string];
120
+ 'lines-between-class-members': ["error", string, {
120
121
  exceptAfterSingleLine: boolean;
121
- })[];
122
- 'lines-around-comment': string;
123
- 'lines-around-directive': (string | {
122
+ }];
123
+ 'lines-around-comment': "off";
124
+ 'lines-around-directive': ["error", {
124
125
  before: string;
125
126
  after: string;
126
- })[];
127
- 'logical-assignment-operators': (string | {
127
+ }];
128
+ 'logical-assignment-operators': ["off", string, {
128
129
  enforceForIfStatements: boolean;
129
- })[];
130
- 'max-depth': (string | number)[];
131
- 'max-len': (string | number | {
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': (string | {
138
+ }];
139
+ 'max-lines': ["off", {
139
140
  max: number;
140
141
  skipBlankLines: boolean;
141
142
  skipComments: boolean;
142
- })[];
143
- 'max-lines-per-function': (string | {
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': string;
150
- 'max-params': (string | number)[];
151
- 'max-statements': (string | number)[];
152
- 'max-statements-per-line': (string | {
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': (string | {
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': string;
164
- 'newline-after-var': string;
165
- 'newline-before-return': string;
166
- 'newline-per-chained-call': (string | {
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': string;
170
- 'no-bitwise': string;
171
- 'no-continue': string;
172
- 'no-inline-comments': string;
173
- 'no-lonely-if': string;
174
- 'no-mixed-operators': (string | {
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': string;
179
- 'no-multi-assign': string[];
180
- 'no-multiple-empty-lines': (string | {
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': string;
186
- 'no-nested-ternary': string;
187
- 'no-new-object': string;
188
- 'no-plusplus': string;
189
- 'no-restricted-syntax': (string | {
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
- 'no-spaced-func': string;
194
- 'no-tabs': string;
195
- 'no-ternary': string;
196
- 'no-trailing-spaces': (string | {
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': (string | {
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': (string | {
215
+ }];
216
+ 'no-unneeded-ternary': ["error", {
207
217
  defaultAssignment: boolean;
208
- })[];
209
- 'no-whitespace-before-property': string;
210
- 'nonblock-statement-body-position': (string | {
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': (string | {
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': (string | {
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': (string | {
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': (string | {
256
+ }];
257
+ 'padded-blocks': ["error", {
248
258
  blocks: string;
249
259
  classes: string;
250
260
  switches: string;
251
- allowSingleLineBlocks?: undefined;
252
- } | {
261
+ }, {
253
262
  allowSingleLineBlocks: boolean;
254
- blocks?: undefined;
255
- classes?: undefined;
256
- switches?: undefined;
257
- })[];
258
- 'padding-line-between-statements': string;
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: (string | {
271
+ }];
272
+ quotes: ["error", string, {
267
273
  avoidEscape: boolean;
268
- })[];
269
- 'require-jsdoc': string;
270
- semi: string[];
271
- 'semi-spacing': (string | {
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': (string | {
280
+ }];
281
+ 'semi-style': ["error", string];
282
+ 'sort-keys': ["off", string, {
277
283
  caseSensitive: boolean;
278
284
  natural: boolean;
279
- })[];
280
- 'sort-vars': string;
281
- 'space-before-blocks': string;
282
- 'space-before-function-paren': (string | {
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': string;
289
- 'space-unary-ops': (string | {
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': (string | {
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': (string | {
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': string;
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;