@kunalnagarco/eslint-config 3.0.4 → 3.0.5
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/index.js +24 -43
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,50 +1,31 @@
|
|
|
1
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
-
if (ar || !(i in from)) {
|
|
16
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
-
ar[i] = from[i];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
-
};
|
|
22
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
6
|
+
const js_1 = __importDefault(require("@eslint/js"));
|
|
7
|
+
const typescript_eslint_1 = __importDefault(require("typescript-eslint"));
|
|
8
|
+
const eslint_plugin_import_x_1 = __importDefault(require("eslint-plugin-import-x"));
|
|
9
|
+
const eslint_plugin_jest_1 = __importDefault(require("eslint-plugin-jest"));
|
|
10
|
+
const eslint_config_prettier_1 = __importDefault(require("eslint-config-prettier"));
|
|
11
|
+
const config = typescript_eslint_1.default.config(js_1.default.configs.recommended, ...typescript_eslint_1.default.configs.recommendedTypeChecked, eslint_plugin_import_x_1.default.flatConfigs.recommended, eslint_plugin_import_x_1.default.flatConfigs.typescript, {
|
|
12
|
+
files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'],
|
|
13
|
+
...eslint_plugin_jest_1.default.configs['flat/recommended'],
|
|
14
|
+
}, {
|
|
15
|
+
rules: {
|
|
16
|
+
'import-x/order': [
|
|
17
|
+
'error',
|
|
18
|
+
{
|
|
19
|
+
pathGroupsExcludedImportTypes: ['builtin'],
|
|
20
|
+
groups: [
|
|
21
|
+
'builtin',
|
|
22
|
+
['external', 'internal'],
|
|
23
|
+
'parent',
|
|
24
|
+
['sibling', 'index'],
|
|
25
|
+
],
|
|
26
|
+
'newlines-between': 'always',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
48
29
|
},
|
|
49
|
-
|
|
30
|
+
}, eslint_config_prettier_1.default);
|
|
50
31
|
exports.default = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kunalnagarco/eslint-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "An ESLint configuration for use across javascript projects",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"eslint-plugin-import-x": "4.x",
|
|
56
56
|
"eslint-plugin-jest": "28.x",
|
|
57
57
|
"rimraf": "6.1.3",
|
|
58
|
-
"typescript": "
|
|
58
|
+
"typescript": "6.0.2",
|
|
59
59
|
"typescript-eslint": "8.x"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|