@so1ve/eslint-config 3.20.2 → 3.22.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.d.ts +897 -461
- package/dist/index.js +5 -4
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -204,10 +204,10 @@ async function formatting(options) {
|
|
|
204
204
|
rules: {
|
|
205
205
|
"curly": ["error", "all"],
|
|
206
206
|
"so1ve/function-style": "error",
|
|
207
|
+
"so1ve/import-export-newline": "error",
|
|
207
208
|
"so1ve/no-import-promises-as": "error",
|
|
208
209
|
"so1ve/no-negated-comparison": "error",
|
|
209
210
|
"so1ve/no-useless-template-string": "error",
|
|
210
|
-
"so1ve/pad-after-last-import": "error",
|
|
211
211
|
"style/lines-between-class-members": [
|
|
212
212
|
"error",
|
|
213
213
|
"always",
|
|
@@ -400,12 +400,14 @@ async function html() {
|
|
|
400
400
|
files: [GLOB_HTML],
|
|
401
401
|
rules: {
|
|
402
402
|
...renameRules(pluginHtml.configs.recommended.rules, { "@html-eslint": "html" }),
|
|
403
|
+
"@so1ve/html-spaced-comment": "error",
|
|
403
404
|
"html/attrs-newline": "off",
|
|
404
405
|
"html/indent": "off",
|
|
405
406
|
"html/no-extra-spacing-attrs": "off",
|
|
406
407
|
"html/no-trailing-spaces": "off",
|
|
407
408
|
"html/quotes": "off",
|
|
408
|
-
"html/require-closing-tags": "off"
|
|
409
|
+
"html/require-closing-tags": "off",
|
|
410
|
+
"style/spaced-comment": "off"
|
|
409
411
|
}
|
|
410
412
|
}];
|
|
411
413
|
}
|
|
@@ -498,7 +500,7 @@ async function javascript({ overrides } = {}) {
|
|
|
498
500
|
plugins: {
|
|
499
501
|
"array-func": pluginArrayFunc,
|
|
500
502
|
"no-await-in-promise": pluginNoAwaitInPromise,
|
|
501
|
-
"so1ve":
|
|
503
|
+
"so1ve": pluginSo1ve,
|
|
502
504
|
"sort-imports": pluginSortImports,
|
|
503
505
|
"unused-imports": pluginUnusedImports
|
|
504
506
|
}
|
|
@@ -1313,7 +1315,6 @@ const unicorn = () => [{
|
|
|
1313
1315
|
"unicorn/no-await-expression-member": "error",
|
|
1314
1316
|
"unicorn/no-await-in-promise-methods": "error",
|
|
1315
1317
|
"unicorn/no-for-loop": "error",
|
|
1316
|
-
"unicorn/no-immediate-mutation": "error",
|
|
1317
1318
|
"unicorn/no-instanceof-builtins": "error",
|
|
1318
1319
|
"unicorn/no-lonely-if": "error",
|
|
1319
1320
|
"unicorn/no-negated-condition": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.0",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Ray's eslint config.",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
36
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
37
|
-
"@html-eslint/parser": "^0.
|
|
36
|
+
"@html-eslint/eslint-plugin": "^0.52.0",
|
|
37
|
+
"@html-eslint/parser": "^0.52.0",
|
|
38
38
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
39
|
-
"@typescript-eslint/parser": "^8.
|
|
40
|
-
"@typescript-eslint/utils": "^8.
|
|
41
|
-
"@unocss/eslint-config": "^66.5.
|
|
42
|
-
"@vitest/eslint-plugin": "^1.4
|
|
39
|
+
"@typescript-eslint/parser": "^8.50.1",
|
|
40
|
+
"@typescript-eslint/utils": "^8.50.1",
|
|
41
|
+
"@unocss/eslint-config": "^66.5.10",
|
|
42
|
+
"@vitest/eslint-plugin": "^1.6.4",
|
|
43
43
|
"astro-eslint-parser": "^1.2.2",
|
|
44
44
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
45
45
|
"eslint-flat-config-utils": "^2.1.4",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"eslint-plugin-array-func": "^5.1.0",
|
|
49
49
|
"eslint-plugin-astro": "^1.5.0",
|
|
50
50
|
"eslint-plugin-case-police": "^2.1.1",
|
|
51
|
-
"eslint-plugin-command": "^3.
|
|
51
|
+
"eslint-plugin-command": "^3.4.0",
|
|
52
52
|
"eslint-plugin-html": "^8.1.3",
|
|
53
|
-
"eslint-plugin-import-lite": "^0.
|
|
53
|
+
"eslint-plugin-import-lite": "^0.4.0",
|
|
54
54
|
"eslint-plugin-import-x": "^4.16.1",
|
|
55
55
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
56
56
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
@@ -60,29 +60,29 @@
|
|
|
60
60
|
"eslint-plugin-no-explicit-type-exports": "^0.12.1",
|
|
61
61
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
62
62
|
"eslint-plugin-only-error": "^1.0.2",
|
|
63
|
-
"eslint-plugin-perfectionist": "^
|
|
64
|
-
"eslint-plugin-pnpm": "^1.3
|
|
63
|
+
"eslint-plugin-perfectionist": "^5.1.0",
|
|
64
|
+
"eslint-plugin-pnpm": "^1.4.3",
|
|
65
65
|
"eslint-plugin-promise": "^7.2.1",
|
|
66
66
|
"eslint-plugin-regexp": "^2.10.0",
|
|
67
67
|
"eslint-plugin-solid": "^0.14.5",
|
|
68
68
|
"eslint-plugin-toml": "^0.12.0",
|
|
69
69
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
70
70
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
71
|
-
"eslint-plugin-vue": "^10.
|
|
72
|
-
"eslint-plugin-yml": "^1.19.
|
|
71
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
72
|
+
"eslint-plugin-yml": "^1.19.1",
|
|
73
73
|
"globals": "^16.5.0",
|
|
74
|
-
"jsonc-eslint-parser": "^2.4.
|
|
74
|
+
"jsonc-eslint-parser": "^2.4.2",
|
|
75
75
|
"local-pkg": "^1.1.2",
|
|
76
|
-
"toml-eslint-parser": "^0.10.
|
|
77
|
-
"typescript-eslint": "^8.
|
|
76
|
+
"toml-eslint-parser": "^0.10.1",
|
|
77
|
+
"typescript-eslint": "^8.50.1",
|
|
78
78
|
"vue-eslint-parser": "^10.2.0",
|
|
79
|
-
"yaml-eslint-parser": "^1.3.
|
|
80
|
-
"@so1ve/eslint-plugin
|
|
81
|
-
"@so1ve/eslint-plugin": "3.
|
|
79
|
+
"yaml-eslint-parser": "^1.3.2",
|
|
80
|
+
"@so1ve/eslint-plugin": "3.22.0",
|
|
81
|
+
"@so1ve/eslint-plugin-sort-imports": "3.22.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"eslint": "^9.39.
|
|
85
|
-
"prettier": "^3.
|
|
84
|
+
"eslint": "^9.39.2",
|
|
85
|
+
"prettier": "^3.7.4"
|
|
86
86
|
},
|
|
87
87
|
"scripts": {
|
|
88
88
|
"typegen": "tsx ./scripts/typegen.ts"
|