@egy186/eslint-config 0.105.0 → 0.105.2
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/browser.d.ts
CHANGED
package/dist/browser.js
CHANGED
|
@@ -9,7 +9,10 @@ const config = {
|
|
|
9
9
|
browser: true,
|
|
10
10
|
node: false
|
|
11
11
|
},
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
rules: {
|
|
13
|
+
// Disable all node rules
|
|
14
|
+
...Object.fromEntries(Object.keys(n_rules_js_1.default).map(rule => [rule, 'off'])),
|
|
15
|
+
'import/no-nodejs-modules': 'error'
|
|
16
|
+
}
|
|
14
17
|
};
|
|
15
18
|
exports.default = config;
|
package/dist/index.d.ts
CHANGED
|
@@ -148,7 +148,7 @@ declare const config: {
|
|
|
148
148
|
}];
|
|
149
149
|
'n/callback-return': "error";
|
|
150
150
|
'n/exports-style': "error";
|
|
151
|
-
'n/file-extension-in-import': "error";
|
|
151
|
+
'n/file-extension-in-import': ["error", string];
|
|
152
152
|
'n/global-require': "error";
|
|
153
153
|
'n/handle-callback-err': ["error", string];
|
|
154
154
|
'n/no-callback-literal': "error";
|
|
@@ -247,7 +247,7 @@ declare const config: {
|
|
|
247
247
|
'import/dynamic-import-chunkname': "error";
|
|
248
248
|
'import/export': "error";
|
|
249
249
|
'import/exports-last': "error";
|
|
250
|
-
'import/extensions': "error";
|
|
250
|
+
'import/extensions': ["error", string];
|
|
251
251
|
'import/first': "error";
|
|
252
252
|
'import/group-exports': "error";
|
|
253
253
|
'import/max-dependencies': "error";
|
|
@@ -4,7 +4,7 @@ declare const rules: {
|
|
|
4
4
|
'import/dynamic-import-chunkname': "error";
|
|
5
5
|
'import/export': "error";
|
|
6
6
|
'import/exports-last': "error";
|
|
7
|
-
'import/extensions': "error";
|
|
7
|
+
'import/extensions': ["error", string];
|
|
8
8
|
'import/first': "error";
|
|
9
9
|
'import/group-exports': "error";
|
|
10
10
|
'import/max-dependencies': "error";
|
|
@@ -6,7 +6,7 @@ const rules = {
|
|
|
6
6
|
'import/dynamic-import-chunkname': 'error',
|
|
7
7
|
'import/export': 'error',
|
|
8
8
|
'import/exports-last': 'error',
|
|
9
|
-
'import/extensions': 'error',
|
|
9
|
+
'import/extensions': ['error', 'always'],
|
|
10
10
|
'import/first': 'error',
|
|
11
11
|
'import/group-exports': 'error',
|
|
12
12
|
'import/max-dependencies': 'error',
|
package/dist/rules/n-rules.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const rules: {
|
|
2
2
|
'n/callback-return': "error";
|
|
3
3
|
'n/exports-style': "error";
|
|
4
|
-
'n/file-extension-in-import': "error";
|
|
4
|
+
'n/file-extension-in-import': ["error", string];
|
|
5
5
|
'n/global-require': "error";
|
|
6
6
|
'n/handle-callback-err': ["error", string];
|
|
7
7
|
'n/no-callback-literal': "error";
|
package/dist/rules/n-rules.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const rules = {
|
|
4
4
|
'n/callback-return': 'error',
|
|
5
5
|
'n/exports-style': 'error',
|
|
6
|
-
'n/file-extension-in-import': 'error',
|
|
6
|
+
'n/file-extension-in-import': ['error', 'always'],
|
|
7
7
|
'n/global-require': 'error',
|
|
8
8
|
'n/handle-callback-err': ['error', '^(err|error)$'],
|
|
9
9
|
'n/no-callback-literal': 'error',
|