@shufflies/eslint-config 2.3.0 → 2.5.0
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/lib/cjs/configs.js +12 -5
- package/lib/esm/configs.js +12 -5
- package/package.json +20 -17
package/lib/cjs/configs.js
CHANGED
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.recommended = recommended;
|
|
7
7
|
const compat_1 = require("@eslint/compat");
|
|
8
8
|
const js_1 = __importDefault(require("@eslint/js"));
|
|
9
|
-
const
|
|
9
|
+
const eslint_plugin_import_x_1 = require("eslint-plugin-import-x");
|
|
10
|
+
const eslint_import_resolver_typescript_1 = require("eslint-import-resolver-typescript");
|
|
10
11
|
const eslint_plugin_simple_import_sort_1 = __importDefault(require("eslint-plugin-simple-import-sort"));
|
|
11
12
|
const eslint_plugin_unicorn_1 = __importDefault(require("eslint-plugin-unicorn"));
|
|
12
13
|
const typescript_eslint_1 = __importDefault(require("typescript-eslint"));
|
|
@@ -24,9 +25,15 @@ function recommended(args = {}) {
|
|
|
24
25
|
{ name: "eslint recommended", ...js_1.default.configs.recommended },
|
|
25
26
|
typescript_eslint_1.default.configs.recommended,
|
|
26
27
|
eslint_plugin_unicorn_1.default.configs.recommended,
|
|
27
|
-
// eslint-plugin-import
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
// eslint-plugin-import-x
|
|
29
|
+
eslint_plugin_import_x_1.importX.flatConfigs.recommended,
|
|
30
|
+
eslint_plugin_import_x_1.importX.flatConfigs.typescript,
|
|
31
|
+
{
|
|
32
|
+
name: "import-x resolver config",
|
|
33
|
+
settings: {
|
|
34
|
+
"import-x/resolver-next": [(0, eslint_import_resolver_typescript_1.createTypeScriptImportResolver)(), (0, eslint_plugin_import_x_1.createNodeResolver)()],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
30
37
|
{
|
|
31
38
|
name: "override eslint core rule defaults",
|
|
32
39
|
rules: {
|
|
@@ -69,7 +76,7 @@ function recommended(args = {}) {
|
|
|
69
76
|
// ✅ Group + sort import lines, sort named specifiers
|
|
70
77
|
"simple-import-sort/imports": "error",
|
|
71
78
|
"simple-import-sort/exports": "error",
|
|
72
|
-
"import/no-unresolved": ["error", { ignore: ["eslint/config"] }],
|
|
79
|
+
"import-x/no-unresolved": ["error", { ignore: ["eslint/config"] }],
|
|
73
80
|
},
|
|
74
81
|
},
|
|
75
82
|
{
|
package/lib/esm/configs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { includeIgnoreFile } from "@eslint/compat";
|
|
2
2
|
import eslint from "@eslint/js";
|
|
3
|
-
import
|
|
3
|
+
import { createNodeResolver, importX } from "eslint-plugin-import-x";
|
|
4
|
+
import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
|
|
4
5
|
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
5
6
|
import eslintPluginUnicorn from "eslint-plugin-unicorn";
|
|
6
7
|
import tseslint from "typescript-eslint";
|
|
@@ -18,9 +19,15 @@ export function recommended(args = {}) {
|
|
|
18
19
|
{ name: "eslint recommended", ...eslint.configs.recommended },
|
|
19
20
|
tseslint.configs.recommended,
|
|
20
21
|
eslintPluginUnicorn.configs.recommended,
|
|
21
|
-
// eslint-plugin-import
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
// eslint-plugin-import-x
|
|
23
|
+
importX.flatConfigs.recommended,
|
|
24
|
+
importX.flatConfigs.typescript,
|
|
25
|
+
{
|
|
26
|
+
name: "import-x resolver config",
|
|
27
|
+
settings: {
|
|
28
|
+
"import-x/resolver-next": [createTypeScriptImportResolver(), createNodeResolver()],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
24
31
|
{
|
|
25
32
|
name: "override eslint core rule defaults",
|
|
26
33
|
rules: {
|
|
@@ -63,7 +70,7 @@ export function recommended(args = {}) {
|
|
|
63
70
|
// ✅ Group + sort import lines, sort named specifiers
|
|
64
71
|
"simple-import-sort/imports": "error",
|
|
65
72
|
"simple-import-sort/exports": "error",
|
|
66
|
-
"import/no-unresolved": ["error", { ignore: ["eslint/config"] }],
|
|
73
|
+
"import-x/no-unresolved": ["error", { ignore: ["eslint/config"] }],
|
|
67
74
|
},
|
|
68
75
|
},
|
|
69
76
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shufflies/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"build:types": "tsc --declaration --emitDeclarationOnly --outDir lib/types -p src",
|
|
23
23
|
"build:cjs": "tsc --module commonjs --outDir lib/cjs -p src",
|
|
24
24
|
"build:esm": "tsc --module nodenext --outDir lib/esm -p src",
|
|
25
|
-
"build": "
|
|
25
|
+
"build": "concurrently -n cjs,esm,types \"npm:build:cjs\" \"npm:build:esm\" \"npm:build:types\""
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
28
|
"eslint",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"author": "Royston Shufflebotham",
|
|
32
32
|
"license": "MIT",
|
|
33
|
-
"packageManager": "npm@11.
|
|
33
|
+
"packageManager": "npm@11.12.0",
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public",
|
|
36
36
|
"provenance": true,
|
|
@@ -41,27 +41,30 @@
|
|
|
41
41
|
"url": "git+https://github.com/RoystonS/shufflies-eslint-config.git"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"eslint": "^
|
|
44
|
+
"eslint": "^10.1.0"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
|
-
"@commitlint/cli": "^20.
|
|
48
|
-
"@commitlint/config-conventional": "^20.
|
|
50
|
+
"@commitlint/cli": "^20.5.0",
|
|
51
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
49
52
|
"@semantic-release/changelog": "^6.0.3",
|
|
50
|
-
"@semantic-release/github": "^12.0.
|
|
51
|
-
"@semantic-release/npm": "13.1.
|
|
52
|
-
"@types/node": "^
|
|
53
|
+
"@semantic-release/github": "^12.0.6",
|
|
54
|
+
"@semantic-release/npm": "13.1.5",
|
|
55
|
+
"@types/node": "^25.3",
|
|
53
56
|
"concurrently": "^9.2.1",
|
|
54
57
|
"husky": "^9.1.7",
|
|
55
|
-
"rimraf": "^6.1.
|
|
56
|
-
"semantic-release": "25.0.
|
|
57
|
-
"zx": "^8.8.5"
|
|
58
|
+
"rimraf": "^6.1.3",
|
|
59
|
+
"semantic-release": "25.0.3"
|
|
58
60
|
},
|
|
59
61
|
"dependencies": {
|
|
60
|
-
"@eslint/compat": "^2.0.
|
|
61
|
-
"@eslint/js": "^
|
|
62
|
-
"eslint-
|
|
62
|
+
"@eslint/compat": "^2.0.3",
|
|
63
|
+
"@eslint/js": "^10.0.1",
|
|
64
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
65
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
63
66
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
64
|
-
"eslint-plugin-unicorn": "^
|
|
65
|
-
"typescript-eslint": "^8.
|
|
67
|
+
"eslint-plugin-unicorn": "^63.0.0",
|
|
68
|
+
"typescript-eslint": "^8.57.1"
|
|
66
69
|
}
|
|
67
70
|
}
|