@so1ve/eslint-config 3.15.0 → 3.16.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/dist/index.js +7 -4
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import pluginComments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
|
3
3
|
import pluginSo1ve from "@so1ve/eslint-plugin";
|
|
4
4
|
import pluginSortImports from "@so1ve/eslint-plugin-sort-imports";
|
|
5
5
|
import pluginArrayFunc from "eslint-plugin-array-func";
|
|
6
|
+
import pluginImportLite from "eslint-plugin-import-lite";
|
|
6
7
|
import pluginImport from "eslint-plugin-import-x";
|
|
7
8
|
import pluginNode from "eslint-plugin-n";
|
|
8
9
|
import * as pluginNoAwaitInPromise from "eslint-plugin-no-await-in-promise";
|
|
@@ -417,7 +418,10 @@ const ignores = () => [{
|
|
|
417
418
|
const imports = (options = {}) => [
|
|
418
419
|
{
|
|
419
420
|
name: "so1ve/imports/setup",
|
|
420
|
-
plugins: {
|
|
421
|
+
plugins: {
|
|
422
|
+
"import": pluginImport,
|
|
423
|
+
"import-lite": pluginImportLite
|
|
424
|
+
}
|
|
421
425
|
},
|
|
422
426
|
{
|
|
423
427
|
name: "so1ve/imports/rules",
|
|
@@ -461,15 +465,14 @@ const imports = (options = {}) => [
|
|
|
461
465
|
} : { node: { extensions: [".js", ".mjs"] } } }
|
|
462
466
|
},
|
|
463
467
|
rules: {
|
|
468
|
+
"import-lite/no-duplicates": "error",
|
|
469
|
+
"import-lite/no-named-default": "error",
|
|
464
470
|
"import/default": "error",
|
|
465
471
|
"import/export": "error",
|
|
466
472
|
"import/first": "error",
|
|
467
473
|
"import/named": "error",
|
|
468
474
|
"import/namespace": "off",
|
|
469
|
-
"import/no-duplicates": "error",
|
|
470
|
-
"import/no-mutable-exports": "error",
|
|
471
475
|
"import/no-named-as-default": "error",
|
|
472
|
-
"import/no-named-default": "error",
|
|
473
476
|
"import/no-useless-path-segments": ["error", { noUselessIndex: true }],
|
|
474
477
|
"import/no-webpack-loader-syntax": "error"
|
|
475
478
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Ray's eslint config.",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"eslint-plugin-case-police": "^2.1.1",
|
|
51
51
|
"eslint-plugin-command": "^3.3.1",
|
|
52
52
|
"eslint-plugin-html": "^8.1.3",
|
|
53
|
+
"eslint-plugin-import-lite": "^0.3.0",
|
|
53
54
|
"eslint-plugin-import-x": "^4.16.1",
|
|
54
55
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
55
56
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
@@ -76,8 +77,8 @@
|
|
|
76
77
|
"typescript-eslint": "^8.47.0",
|
|
77
78
|
"vue-eslint-parser": "^10.2.0",
|
|
78
79
|
"yaml-eslint-parser": "^1.3.0",
|
|
79
|
-
"@so1ve/eslint-plugin
|
|
80
|
-
"@so1ve/eslint-plugin": "3.
|
|
80
|
+
"@so1ve/eslint-plugin": "3.16.0",
|
|
81
|
+
"@so1ve/eslint-plugin-sort-imports": "3.16.0"
|
|
81
82
|
},
|
|
82
83
|
"peerDependencies": {
|
|
83
84
|
"eslint": "^9.39.1",
|