@schoero/configs 1.0.22 → 1.0.24
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/eslint/imports.js +7 -7
- package/eslint/markdown.js +3 -3
- package/eslint/typescript.js +8 -9
- package/package.json +14 -14
package/eslint/imports.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import eslintPluginImportX from "eslint-plugin-import-x";
|
|
2
2
|
import eslintPluginImportNewlines from "eslint-plugin-import-newlines";
|
|
3
3
|
import eslintPluginSimpleImportSort from "eslint-plugin-simple-import-sort";
|
|
4
4
|
import eslintPluginUnusedImports from "eslint-plugin-unused-imports";
|
|
@@ -10,17 +10,17 @@ export const imports = [
|
|
|
10
10
|
plugins: {
|
|
11
11
|
"eslint-plugin-unused-imports": eslintPluginUnusedImports,
|
|
12
12
|
"eslint-plugin-import-newlines": eslintPluginImportNewlines,
|
|
13
|
-
"eslint-plugin-import":
|
|
13
|
+
"eslint-plugin-import-x": eslintPluginImportX,
|
|
14
14
|
"eslint-plugin-simple-import-sort": eslintPluginSimpleImportSort
|
|
15
15
|
},
|
|
16
16
|
rules: {
|
|
17
17
|
"eslint-plugin-unused-imports/no-unused-imports": "warn",
|
|
18
18
|
|
|
19
|
-
"eslint-plugin-import/first": "warn",
|
|
20
|
-
"eslint-plugin-import/newline-after-import": ["warn", { count: 2 }],
|
|
21
|
-
"eslint-plugin-import/no-duplicates": "warn",
|
|
22
|
-
"eslint-plugin-import/no-self-import": "warn",
|
|
23
|
-
"eslint-plugin-import/no-useless-path-segments": ["warn", { noUselessIndex: false }],
|
|
19
|
+
"eslint-plugin-import-x/first": "warn",
|
|
20
|
+
"eslint-plugin-import-x/newline-after-import": ["warn", { count: 2 }],
|
|
21
|
+
"eslint-plugin-import-x/no-duplicates": "warn",
|
|
22
|
+
"eslint-plugin-import-x/no-self-import": "warn",
|
|
23
|
+
"eslint-plugin-import-x/no-useless-path-segments": ["warn", { noUselessIndex: false }],
|
|
24
24
|
|
|
25
25
|
"eslint-plugin-import-newlines/enforce": ["warn", { "items": 6, "max-len": 119 }],
|
|
26
26
|
|
package/eslint/markdown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import eslintPluginImportX from "eslint-plugin-import-x";
|
|
2
2
|
import eslintPluginJsonc from "eslint-plugin-jsonc";
|
|
3
3
|
import eslintPluginMarkdown from "eslint-plugin-markdown";
|
|
4
4
|
import eslintPluginUnusedImports from "eslint-plugin-unused-imports";
|
|
@@ -12,12 +12,12 @@ export const markdown = [
|
|
|
12
12
|
{
|
|
13
13
|
files: ["**/*.{md,mdx}/*.{ts,tsx,mjs,cjs,js,jsx}"],
|
|
14
14
|
plugins: {
|
|
15
|
-
"eslint-plugin-import":
|
|
15
|
+
"eslint-plugin-import-x": eslintPluginImportX,
|
|
16
16
|
"eslint-plugin-markdown": eslintPluginMarkdown,
|
|
17
17
|
"eslint-plugin-unused-imports": eslintPluginUnusedImports
|
|
18
18
|
},
|
|
19
19
|
rules: {
|
|
20
|
-
"eslint-plugin-import/newline-after-import": ["warn", { count: 1 }],
|
|
20
|
+
"eslint-plugin-import-x/newline-after-import": ["warn", { count: 1 }],
|
|
21
21
|
"eslint-plugin-unused-imports/no-unused-imports": "off"
|
|
22
22
|
}
|
|
23
23
|
},
|
package/eslint/typescript.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import eslintPluginImportX from "eslint-plugin-import-x";
|
|
2
2
|
import eslintPluginJSDoc from "eslint-plugin-jsdoc";
|
|
3
3
|
import eslintPluginJsonc from "eslint-plugin-jsonc";
|
|
4
4
|
import eslintPluginTypeScriptSortKeys from "eslint-plugin-typescript-sort-keys";
|
|
@@ -20,18 +20,17 @@ export const typescript = [
|
|
|
20
20
|
languageOptions: {
|
|
21
21
|
parser: eslintPluginTypeScript.parser,
|
|
22
22
|
parserOptions: {
|
|
23
|
-
|
|
23
|
+
EXPERIMENTAL_useProjectService: true,
|
|
24
|
+
projectService: true,
|
|
25
|
+
project: false
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
28
|
files: ["**/*.{ts,tsx,cts}"]
|
|
27
29
|
},
|
|
28
30
|
|
|
29
31
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
parserOptions: {
|
|
33
|
-
project: true
|
|
34
|
-
}
|
|
32
|
+
plugins: {
|
|
33
|
+
"eslint-plugin-typescript": eslintPluginTypeScript.plugin
|
|
35
34
|
},
|
|
36
35
|
files: ["**/*.{ts,cts}"],
|
|
37
36
|
rules: {
|
|
@@ -51,7 +50,7 @@ export const typescript = [
|
|
|
51
50
|
{
|
|
52
51
|
files: ["**/*.{ts,tsx,cts}"],
|
|
53
52
|
plugins: {
|
|
54
|
-
"eslint-plugin-import":
|
|
53
|
+
"eslint-plugin-import-x": eslintPluginImportX,
|
|
55
54
|
"eslint-plugin-jsdoc": eslintPluginJSDoc,
|
|
56
55
|
"eslint-plugin-typescript": eslintPluginTypeScript.plugin,
|
|
57
56
|
"eslint-plugin-stylistic-ts": eslintPluginStylisticTS,
|
|
@@ -61,7 +60,7 @@ export const typescript = [
|
|
|
61
60
|
rules: {
|
|
62
61
|
|
|
63
62
|
// type imports
|
|
64
|
-
"eslint-plugin-import/consistent-type-specifier-style": ["warn", "prefer-top-level"],
|
|
63
|
+
"eslint-plugin-import-x/consistent-type-specifier-style": ["warn", "prefer-top-level"],
|
|
65
64
|
"eslint-plugin-typescript/consistent-type-imports": ["warn", { disallowTypeAnnotations: false }],
|
|
66
65
|
|
|
67
66
|
// class
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.24",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"name": "@schoero/configs",
|
|
5
5
|
"description": "",
|
|
@@ -86,19 +86,19 @@
|
|
|
86
86
|
"@cspell/dict-node": "^5.0.1",
|
|
87
87
|
"@cspell/dict-npm": "^5.0.16",
|
|
88
88
|
"@cspell/dict-public-licenses": "^2.0.7",
|
|
89
|
-
"@cspell/dict-software-terms": "^3.4.
|
|
89
|
+
"@cspell/dict-software-terms": "^3.4.9",
|
|
90
90
|
"@cspell/dict-typescript": "^3.1.5",
|
|
91
|
-
"@stylistic/eslint-plugin-js": "^2.
|
|
92
|
-
"@stylistic/eslint-plugin-jsx": "^2.
|
|
93
|
-
"@stylistic/eslint-plugin-plus": "^2.
|
|
94
|
-
"@stylistic/eslint-plugin-ts": "^2.
|
|
95
|
-
"cspell-lib": "^8.
|
|
96
|
-
"eslint-plugin-import": "npm:eslint-plugin-i@2.29.1",
|
|
91
|
+
"@stylistic/eslint-plugin-js": "^2.3.0",
|
|
92
|
+
"@stylistic/eslint-plugin-jsx": "^2.3.0",
|
|
93
|
+
"@stylistic/eslint-plugin-plus": "^2.3.0",
|
|
94
|
+
"@stylistic/eslint-plugin-ts": "^2.3.0",
|
|
95
|
+
"cspell-lib": "^8.10.0",
|
|
97
96
|
"eslint-plugin-import-newlines": "^1.4.0",
|
|
98
|
-
"eslint-plugin-
|
|
97
|
+
"eslint-plugin-import-x": "^0.5.3",
|
|
98
|
+
"eslint-plugin-jsdoc": "^48.5.0",
|
|
99
99
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
100
100
|
"eslint-plugin-markdown": "^5.0.0",
|
|
101
|
-
"eslint-plugin-simple-import-sort": "^12.1.
|
|
101
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
102
102
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
103
103
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
104
104
|
"eslint-plugin-typescript-sort-keys": "^3.2.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"eslint-plugin-vitest": "^0.5.4",
|
|
108
108
|
"eslint-plugin-yml": "^1.14.0",
|
|
109
109
|
"markdownlint-cli2": "^0.13.0",
|
|
110
|
-
"typescript-eslint": "^7.
|
|
110
|
+
"typescript-eslint": "^7.15.0",
|
|
111
111
|
"vite-tsconfig-paths": "^4.3.2",
|
|
112
112
|
"vitest-github-actions-reporter": "^0.11.1"
|
|
113
113
|
},
|
|
@@ -116,12 +116,12 @@
|
|
|
116
116
|
"eslint-plugin-tailwindcss": "^3.17.4"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@types/node": "^20.14.
|
|
119
|
+
"@types/node": "^20.14.9",
|
|
120
120
|
"changelogen": "^0.5.5",
|
|
121
|
-
"cspell": "^8.
|
|
121
|
+
"cspell": "^8.10.0",
|
|
122
122
|
"eslint": "^8.57.0",
|
|
123
123
|
"markdownlint": "^0.34.0",
|
|
124
|
-
"vite": "^5.3.
|
|
124
|
+
"vite": "^5.3.3",
|
|
125
125
|
"vitest": "^1.6.0"
|
|
126
126
|
},
|
|
127
127
|
"keywords": []
|