eslint-config-airbnb-extended 0.0.5 → 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/dist/base/index.d.ts +9 -1162
- package/dist/base/index.js +8 -8
- package/dist/base/recommended.d.ts +1 -997
- package/dist/index.d.ts +9 -1162
- package/dist/rules/imports.d.ts +1 -158
- package/dist/rules/imports.js +9 -16
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/package.json +1 -1
package/dist/rules/imports.d.ts
CHANGED
|
@@ -1,159 +1,2 @@
|
|
|
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
|
-
};
|
|
61
|
-
};
|
|
62
|
-
plugins: {
|
|
63
|
-
import: any;
|
|
64
|
-
};
|
|
65
|
-
settings: {
|
|
66
|
-
'import/resolver': {
|
|
67
|
-
node: {
|
|
68
|
-
extensions: string[];
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
'import/extensions': string[];
|
|
72
|
-
'import/core-modules': never[];
|
|
73
|
-
'import/ignore': string[];
|
|
74
|
-
};
|
|
75
|
-
rules: {
|
|
76
|
-
'import/no-unresolved': ["error", {
|
|
77
|
-
commonjs: boolean;
|
|
78
|
-
caseSensitive: boolean;
|
|
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", {
|
|
88
|
-
devDependencies: string[];
|
|
89
|
-
optionalDependencies: boolean;
|
|
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, {
|
|
100
|
-
js: string;
|
|
101
|
-
mjs: string;
|
|
102
|
-
jsx: string;
|
|
103
|
-
}];
|
|
104
|
-
'import/order': ["error", {
|
|
105
|
-
groups: 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", {
|
|
111
|
-
max: number;
|
|
112
|
-
}];
|
|
113
|
-
'import/no-absolute-path': "error";
|
|
114
|
-
'import/no-dynamic-require': "error";
|
|
115
|
-
'import/no-internal-modules': ["off", {
|
|
116
|
-
allow: never[];
|
|
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", {
|
|
123
|
-
allowArray: boolean;
|
|
124
|
-
allowArrowFunction: boolean;
|
|
125
|
-
allowAnonymousClass: boolean;
|
|
126
|
-
allowAnonymousFunction: boolean;
|
|
127
|
-
allowLiteral: boolean;
|
|
128
|
-
allowObject: boolean;
|
|
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", {
|
|
136
|
-
maxDepth: string;
|
|
137
|
-
}];
|
|
138
|
-
'import/no-useless-path-segments': ["error", {
|
|
139
|
-
commonjs: boolean;
|
|
140
|
-
}];
|
|
141
|
-
'import/dynamic-import-chunkname': ["off", {
|
|
142
|
-
importFunctions: never[];
|
|
143
|
-
webpackChunknameFormat: string;
|
|
144
|
-
}];
|
|
145
|
-
'import/no-relative-parent-imports': "off";
|
|
146
|
-
'import/no-unused-modules': ["off", {
|
|
147
|
-
ignoreExports: never[];
|
|
148
|
-
missingExports: boolean;
|
|
149
|
-
unusedExports: boolean;
|
|
150
|
-
}];
|
|
151
|
-
'import/no-import-module-exports': ["error", {
|
|
152
|
-
exceptions: never[];
|
|
153
|
-
}];
|
|
154
|
-
'import/no-relative-packages': "error";
|
|
155
|
-
'import/consistent-type-specifier-style': ["off", string];
|
|
156
|
-
'import/no-empty-named-blocks': "off";
|
|
157
|
-
};
|
|
158
|
-
};
|
|
1
|
+
declare const _default: any;
|
|
159
2
|
export default _default;
|
package/dist/rules/imports.js
CHANGED
|
@@ -18,32 +18,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
// @ts-expect-error no @types package in DefinitelyTyped for below
|
|
22
|
-
var eslint_plugin_import_1 = __importDefault(require("eslint-plugin-import"));
|
|
23
21
|
var globals_1 = __importDefault(require("globals"));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
// @ts-expect-error eslint-plugin-import not working in import
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports,unicorn/prefer-module
|
|
24
|
+
var EsLintPluginImport = require('eslint-plugin-import');
|
|
25
|
+
exports.default = __assign(__assign({}, EsLintPluginImport.flatConfigs.recommended), { name: 'airbnb/config/imports', languageOptions: {
|
|
27
26
|
globals: __assign({}, globals_1.default.es2015),
|
|
28
27
|
parserOptions: {
|
|
29
28
|
ecmaVersion: 6,
|
|
30
29
|
sourceType: 'module',
|
|
31
30
|
},
|
|
32
|
-
},
|
|
33
|
-
plugins: {
|
|
34
|
-
import: eslint_plugin_import_1.default,
|
|
35
|
-
},
|
|
36
|
-
settings: {
|
|
31
|
+
}, settings: {
|
|
37
32
|
'import/resolver': {
|
|
38
33
|
node: {
|
|
39
|
-
extensions: ['.
|
|
34
|
+
extensions: ['.js', '.cjs', '.mjs', '.json'],
|
|
40
35
|
},
|
|
41
36
|
},
|
|
42
|
-
'import/extensions': ['.js', '.mjs', '.jsx'],
|
|
37
|
+
'import/extensions': ['.js', '.cjs', '.mjs', '.jsx'],
|
|
43
38
|
'import/core-modules': [],
|
|
44
39
|
'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)$"])))],
|
|
45
|
-
},
|
|
46
|
-
rules: {
|
|
40
|
+
}, rules: {
|
|
47
41
|
// Static analysis:
|
|
48
42
|
// ensure imports point to files/modules that can be resolved
|
|
49
43
|
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
|
|
@@ -267,6 +261,5 @@ exports.default = {
|
|
|
267
261
|
// https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/no-empty-named-blocks.md
|
|
268
262
|
// TODO, semver-minor: enable
|
|
269
263
|
'import/no-empty-named-blocks': 'off',
|
|
270
|
-
}
|
|
271
|
-
};
|
|
264
|
+
} });
|
|
272
265
|
var templateObject_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const jsFiles: string[];
|