eslint-config-airbnb-extended 0.0.6 → 0.0.7
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/package.json +1 -1
- package/dist/package.json +0 -86
- package/dist/src/base/index.d.ts +0 -2007
- package/dist/src/base/index.js +0 -25
- package/dist/src/base/recommended.d.ts +0 -1004
- package/dist/src/base/recommended.js +0 -33
- package/dist/src/index.d.ts +0 -2008
- package/dist/src/index.js +0 -10
- package/dist/src/rules/best-practices.d.ts +0 -177
- package/dist/src/rules/best-practices.js +0 -379
- package/dist/src/rules/errors.d.ts +0 -69
- package/dist/src/rules/errors.js +0 -151
- package/dist/src/rules/es6.d.ts +0 -146
- package/dist/src/rules/es6.js +0 -203
- package/dist/src/rules/imports.d.ts +0 -165
- package/dist/src/rules/imports.js +0 -279
- package/dist/src/rules/node.d.ts +0 -90
- package/dist/src/rules/node.js +0 -50
- package/dist/src/rules/strict.d.ts +0 -7
- package/dist/src/rules/strict.js +0 -9
- package/dist/src/rules/style.d.ts +0 -320
- package/dist/src/rules/style.js +0 -530
- package/dist/src/rules/variables.d.ts +0 -35
- package/dist/src/rules/variables.js +0 -73
- package/dist/src/utils/index.d.ts +0 -1
- package/dist/src/utils/index.js +0 -4
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
// @ts-expect-error no @types package in DefinitelyTyped for below
|
|
22
|
-
var eslint_plugin_import_1 = require("eslint-plugin-import");
|
|
23
|
-
var globals_1 = __importDefault(require("globals"));
|
|
24
|
-
var package_json_1 = __importDefault(require("../../package.json"));
|
|
25
|
-
exports.default = {
|
|
26
|
-
name: 'airbnb/config/imports',
|
|
27
|
-
languageOptions: {
|
|
28
|
-
globals: __assign({}, globals_1.default.es2015),
|
|
29
|
-
parserOptions: {
|
|
30
|
-
ecmaVersion: 6,
|
|
31
|
-
sourceType: 'module',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
plugins: {
|
|
35
|
-
import: {
|
|
36
|
-
meta: {
|
|
37
|
-
name: 'eslint-plugin-import',
|
|
38
|
-
version: package_json_1.default.devDependencies['eslint-plugin-import'],
|
|
39
|
-
},
|
|
40
|
-
rules: eslint_plugin_import_1.rules,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
settings: {
|
|
44
|
-
'import/resolver': {
|
|
45
|
-
node: {
|
|
46
|
-
extensions: ['.mjs', '.js', '.json'],
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
'import/extensions': ['.js', '.mjs', '.jsx'],
|
|
50
|
-
'import/core-modules': [],
|
|
51
|
-
'import/ignore': ['node_modules', String.raw(templateObject_1 || (templateObject_1 = __makeTemplateObject([".(coffee|scss|css|less|hbs|svg|json)$"], ["\\.(coffee|scss|css|less|hbs|svg|json)$"])))],
|
|
52
|
-
},
|
|
53
|
-
rules: {
|
|
54
|
-
// Static analysis:
|
|
55
|
-
// ensure imports point to files/modules that can be resolved
|
|
56
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
|
|
57
|
-
'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }],
|
|
58
|
-
// ensure named imports coupled with named exports
|
|
59
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
|
|
60
|
-
'import/named': 'error',
|
|
61
|
-
// ensure default import coupled with default export
|
|
62
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
|
|
63
|
-
'import/default': 'off',
|
|
64
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/namespace.md
|
|
65
|
-
'import/namespace': 'off',
|
|
66
|
-
// Helpful warnings:
|
|
67
|
-
// disallow invalid exports, e.g. multiple defaults
|
|
68
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/export.md
|
|
69
|
-
'import/export': 'error',
|
|
70
|
-
// do not allow a default import name to match a named export
|
|
71
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
|
|
72
|
-
'import/no-named-as-default': 'error',
|
|
73
|
-
// warn on accessing default export property names that are also named exports
|
|
74
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
|
|
75
|
-
'import/no-named-as-default-member': 'error',
|
|
76
|
-
// disallow use of jsdoc-marked-deprecated imports
|
|
77
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
|
|
78
|
-
'import/no-deprecated': 'off',
|
|
79
|
-
// Forbid the use of extraneous packages
|
|
80
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
|
|
81
|
-
// paths are treated both as absolute paths, and relative to process.cwd()
|
|
82
|
-
'import/no-extraneous-dependencies': [
|
|
83
|
-
'error',
|
|
84
|
-
{
|
|
85
|
-
devDependencies: [
|
|
86
|
-
'test/**', // tape, common npm pattern
|
|
87
|
-
'tests/**', // also common npm pattern
|
|
88
|
-
'spec/**', // mocha, rspec-like pattern
|
|
89
|
-
'**/__tests__/**', // jest pattern
|
|
90
|
-
'**/__mocks__/**', // jest pattern
|
|
91
|
-
'test.{js,jsx}', // repos with a single test file
|
|
92
|
-
'test-*.{js,jsx}', // repos with multiple top-level test files
|
|
93
|
-
'**/*{.,_}{test,spec}.{js,jsx}', // tests where the extension or filename suffix denotes that it is a test
|
|
94
|
-
'**/jest.config.js', // jest config
|
|
95
|
-
'**/jest.setup.js', // jest setup
|
|
96
|
-
'**/vue.config.js', // vue-cli config
|
|
97
|
-
'**/webpack.config.js', // webpack config
|
|
98
|
-
'**/webpack.config.*.js', // webpack config
|
|
99
|
-
'**/rollup.config.js', // rollup config
|
|
100
|
-
'**/rollup.config.*.js', // rollup config
|
|
101
|
-
'**/gulpfile.js', // gulp config
|
|
102
|
-
'**/gulpfile.*.js', // gulp config
|
|
103
|
-
'**/Gruntfile{,.js}', // grunt config
|
|
104
|
-
'**/protractor.conf.js', // protractor config
|
|
105
|
-
'**/protractor.conf.*.js', // protractor config
|
|
106
|
-
'**/karma.conf.js', // karma config
|
|
107
|
-
'**/.eslintrc.js', // eslint config
|
|
108
|
-
],
|
|
109
|
-
optionalDependencies: false,
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
// Forbid mutable exports
|
|
113
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md
|
|
114
|
-
'import/no-mutable-exports': 'error',
|
|
115
|
-
// Module systems:
|
|
116
|
-
// disallow require()
|
|
117
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
|
|
118
|
-
'import/no-commonjs': 'off',
|
|
119
|
-
// disallow AMD require/define
|
|
120
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-amd.md
|
|
121
|
-
'import/no-amd': 'error',
|
|
122
|
-
// No Node.js builtin modules
|
|
123
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
|
|
124
|
-
// TODO: enable?
|
|
125
|
-
'import/no-nodejs-modules': 'off',
|
|
126
|
-
// Style guide:
|
|
127
|
-
// disallow non-import statements appearing before import statements
|
|
128
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/first.md
|
|
129
|
-
'import/first': 'error',
|
|
130
|
-
// disallow non-import statements appearing before import statements
|
|
131
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/imports-first.md
|
|
132
|
-
// deprecated: use `import/first`
|
|
133
|
-
'import/imports-first': 'off',
|
|
134
|
-
// disallow duplicate imports
|
|
135
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
|
|
136
|
-
'import/no-duplicates': 'error',
|
|
137
|
-
// disallow namespace imports
|
|
138
|
-
// TODO: enable?
|
|
139
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
|
|
140
|
-
'import/no-namespace': 'off',
|
|
141
|
-
// Ensure consistent use of file extension within the import path
|
|
142
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/extensions.md
|
|
143
|
-
'import/extensions': [
|
|
144
|
-
'error',
|
|
145
|
-
'ignorePackages',
|
|
146
|
-
{
|
|
147
|
-
js: 'never',
|
|
148
|
-
mjs: 'never',
|
|
149
|
-
jsx: 'never',
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
// ensure absolute imports are above relative imports and that unassigned imports are ignored
|
|
153
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md
|
|
154
|
-
// TODO: enforce a stricter convention in module import order?
|
|
155
|
-
'import/order': ['error', { groups: [['builtin', 'external', 'internal']] }],
|
|
156
|
-
// Require a newline after the last import/require in a group
|
|
157
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
|
|
158
|
-
'import/newline-after-import': 'error',
|
|
159
|
-
// Require modules with a single export to use a default export
|
|
160
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
|
|
161
|
-
'import/prefer-default-export': 'error',
|
|
162
|
-
// Restrict which files can be imported in a given folder
|
|
163
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
|
|
164
|
-
'import/no-restricted-paths': 'off',
|
|
165
|
-
// Forbid modules to have too many dependencies
|
|
166
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
|
|
167
|
-
'import/max-dependencies': ['off', { max: 10 }],
|
|
168
|
-
// Forbid import of modules using absolute paths
|
|
169
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
|
|
170
|
-
'import/no-absolute-path': 'error',
|
|
171
|
-
// Forbid require() calls with expressions
|
|
172
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
|
|
173
|
-
'import/no-dynamic-require': 'error',
|
|
174
|
-
// prevent importing the submodules of other modules
|
|
175
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
|
|
176
|
-
'import/no-internal-modules': [
|
|
177
|
-
'off',
|
|
178
|
-
{
|
|
179
|
-
allow: [],
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
// Warn if a module could be mistakenly parsed as a script by a consumer
|
|
183
|
-
// leveraging Unambiguous JavaScript Grammar
|
|
184
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
|
|
185
|
-
// this should not be enabled until this proposal has at least been *presented* to TC39.
|
|
186
|
-
// At the moment, it's not a thing.
|
|
187
|
-
'import/unambiguous': 'off',
|
|
188
|
-
// Forbid Webpack loader syntax in imports
|
|
189
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
|
|
190
|
-
'import/no-webpack-loader-syntax': 'error',
|
|
191
|
-
// Prevent unassigned imports
|
|
192
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
|
|
193
|
-
// importing for side effects is perfectly acceptable, if you need side effects.
|
|
194
|
-
'import/no-unassigned-import': 'off',
|
|
195
|
-
// Prevent importing the default as if it were named
|
|
196
|
-
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-default.md
|
|
197
|
-
'import/no-named-default': 'error',
|
|
198
|
-
// Reports if a module's default export is unnamed
|
|
199
|
-
// https://github.com/import-js/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md
|
|
200
|
-
'import/no-anonymous-default-export': [
|
|
201
|
-
'off',
|
|
202
|
-
{
|
|
203
|
-
allowArray: false,
|
|
204
|
-
allowArrowFunction: false,
|
|
205
|
-
allowAnonymousClass: false,
|
|
206
|
-
allowAnonymousFunction: false,
|
|
207
|
-
allowLiteral: false,
|
|
208
|
-
allowObject: false,
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
// This rule enforces that all exports are declared at the bottom of the file.
|
|
212
|
-
// https://github.com/import-js/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
|
|
213
|
-
// TODO: enable?
|
|
214
|
-
'import/exports-last': 'off',
|
|
215
|
-
// Reports when named exports are not grouped together in a single export declaration
|
|
216
|
-
// or when multiple assignments to CommonJS module.exports or exports object are present
|
|
217
|
-
// in a single file.
|
|
218
|
-
// https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
|
|
219
|
-
'import/group-exports': 'off',
|
|
220
|
-
// forbid default exports. this is a terrible rule, do not use it.
|
|
221
|
-
// https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md
|
|
222
|
-
'import/no-default-export': 'off',
|
|
223
|
-
// Prohibit named exports. this is a terrible rule, do not use it.
|
|
224
|
-
// https://github.com/import-js/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md
|
|
225
|
-
'import/no-named-export': 'off',
|
|
226
|
-
// Forbid a module from importing itself
|
|
227
|
-
// https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-self-import.md
|
|
228
|
-
'import/no-self-import': 'error',
|
|
229
|
-
// Forbid cyclical dependencies between modules
|
|
230
|
-
// https://github.com/import-js/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md
|
|
231
|
-
'import/no-cycle': ['error', { maxDepth: '∞' }],
|
|
232
|
-
// Ensures that there are no useless path segments
|
|
233
|
-
// https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/no-useless-path-segments.md
|
|
234
|
-
'import/no-useless-path-segments': ['error', { commonjs: true }],
|
|
235
|
-
// dynamic imports require a leading comment with a webpackChunkName
|
|
236
|
-
// https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md
|
|
237
|
-
'import/dynamic-import-chunkname': [
|
|
238
|
-
'off',
|
|
239
|
-
{
|
|
240
|
-
importFunctions: [],
|
|
241
|
-
webpackChunknameFormat: '[0-9a-zA-Z-_/.]+',
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
// Use this rule to prevent imports to folders in relative parent paths.
|
|
245
|
-
// https://github.com/import-js/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
|
|
246
|
-
'import/no-relative-parent-imports': 'off',
|
|
247
|
-
// Reports modules without any exports, or with unused exports
|
|
248
|
-
// https://github.com/import-js/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
|
|
249
|
-
// TODO: enable once it supports CJS
|
|
250
|
-
'import/no-unused-modules': [
|
|
251
|
-
'off',
|
|
252
|
-
{
|
|
253
|
-
ignoreExports: [],
|
|
254
|
-
missingExports: true,
|
|
255
|
-
unusedExports: true,
|
|
256
|
-
},
|
|
257
|
-
],
|
|
258
|
-
// Reports the use of import declarations with CommonJS exports in any module except for the main module.
|
|
259
|
-
// https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-import-module-exports.md
|
|
260
|
-
'import/no-import-module-exports': [
|
|
261
|
-
'error',
|
|
262
|
-
{
|
|
263
|
-
exceptions: [],
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
// Use this rule to prevent importing packages through relative paths.
|
|
267
|
-
// https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-relative-packages.md
|
|
268
|
-
'import/no-relative-packages': 'error',
|
|
269
|
-
// enforce a consistent style for type specifiers (inline or top-level)
|
|
270
|
-
// https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/consistent-type-specifier-style.md
|
|
271
|
-
// TODO, semver-major: enable (just in case)
|
|
272
|
-
'import/consistent-type-specifier-style': ['off', 'prefer-inline'],
|
|
273
|
-
// Reports the use of empty named import blocks.
|
|
274
|
-
// https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/no-empty-named-blocks.md
|
|
275
|
-
// TODO, semver-minor: enable
|
|
276
|
-
'import/no-empty-named-blocks': 'off',
|
|
277
|
-
},
|
|
278
|
-
};
|
|
279
|
-
var templateObject_1;
|
package/dist/src/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;
|
package/dist/src/rules/node.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var globals_1 = __importDefault(require("globals"));
|
|
18
|
-
exports.default = {
|
|
19
|
-
name: 'airbnb/config/node',
|
|
20
|
-
languageOptions: {
|
|
21
|
-
globals: __assign({}, globals_1.default.nodeBuiltin),
|
|
22
|
-
},
|
|
23
|
-
rules: {
|
|
24
|
-
// enforce return after a callback
|
|
25
|
-
'callback-return': 'off',
|
|
26
|
-
// require all requires be top-level
|
|
27
|
-
// https://eslint.org/docs/rules/global-require
|
|
28
|
-
'global-require': 'error',
|
|
29
|
-
// enforces error handling in callbacks (node environment)
|
|
30
|
-
'handle-callback-err': 'off',
|
|
31
|
-
// disallow use of the Buffer() constructor
|
|
32
|
-
// https://eslint.org/docs/rules/no-buffer-constructor
|
|
33
|
-
'no-buffer-constructor': 'error',
|
|
34
|
-
// disallow mixing regular variable and require declarations
|
|
35
|
-
'no-mixed-requires': ['off', false],
|
|
36
|
-
// disallow use of new operator with the require function
|
|
37
|
-
'no-new-require': 'error',
|
|
38
|
-
// disallow string concatenation with __dirname and __filename
|
|
39
|
-
// https://eslint.org/docs/rules/no-path-concat
|
|
40
|
-
'no-path-concat': 'error',
|
|
41
|
-
// disallow use of process.env
|
|
42
|
-
'no-process-env': 'off',
|
|
43
|
-
// disallow process.exit()
|
|
44
|
-
'no-process-exit': 'off',
|
|
45
|
-
// restrict usage of specified node modules
|
|
46
|
-
'no-restricted-modules': 'off',
|
|
47
|
-
// disallow use of synchronous methods (off by default)
|
|
48
|
-
'no-sync': 'off',
|
|
49
|
-
},
|
|
50
|
-
};
|
package/dist/src/rules/strict.js
DELETED