@cuiqg/eslint-config 2.8.4 → 2.8.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/README.md +14 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -13,17 +13,26 @@ npm i -D eslint @cuiqg/eslint-config
|
|
|
13
13
|
+ "type": "module",
|
|
14
14
|
"scripts": {
|
|
15
15
|
+ "lint": "eslint .",
|
|
16
|
-
+ "lint:fix": "eslint . --fix"
|
|
16
|
+
+ "lint:fix": "eslint . --fix",
|
|
17
|
+
+ "lint:inspect": "eslint . --inspect-config"
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
```
|
|
20
21
|
|
|
21
|
-
创建 `eslint.config.
|
|
22
|
+
创建 `eslint.config.mjs` 文件
|
|
22
23
|
|
|
23
24
|
```js
|
|
25
|
+
import fs from 'node:fs'
|
|
24
26
|
import cuiqg from '@cuiqg/eslint-config'
|
|
27
|
+
import { FlatCompat } from '@eslint/eslintrc'
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
const compat = new FlatCompat()
|
|
30
|
+
|
|
31
|
+
export default cuiqg({},
|
|
32
|
+
fs.existsSync('.eslintrc-auto-import.json')
|
|
33
|
+
? compat.extend('./.eslintrc-auto-import.json')
|
|
34
|
+
: []
|
|
35
|
+
)
|
|
27
36
|
```
|
|
28
37
|
|
|
29
38
|
## 插件配置
|
|
@@ -36,7 +45,9 @@ export default cuiqg()
|
|
|
36
45
|
{
|
|
37
46
|
"prettier.enable": false,
|
|
38
47
|
"editor.formatOnSave": false,
|
|
48
|
+
|
|
39
49
|
"eslint.useFlatConfig": true,
|
|
50
|
+
|
|
40
51
|
"editor.codeActionsOnSave": {
|
|
41
52
|
"source.fixAll.eslint": "explicit",
|
|
42
53
|
"source.organizeImports": "never"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuiqg/eslint-config",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
4
4
|
"description": "Eslint config for @cuiqg",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -36,29 +36,29 @@
|
|
|
36
36
|
"@eslint/config-inspector": "^1.4.2",
|
|
37
37
|
"@eslint/eslintrc": "^3.3.3",
|
|
38
38
|
"bumpp": "^10.3.2",
|
|
39
|
-
"eslint": "^9.39.
|
|
40
|
-
"tsdown": "^0.
|
|
39
|
+
"eslint": "^9.39.2",
|
|
40
|
+
"tsdown": "^0.18.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"eslint": ">=9.28.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@eslint/js": "^9.39.
|
|
46
|
+
"@eslint/js": "^9.39.2",
|
|
47
47
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
48
|
-
"@unocss/eslint-plugin": "^66.5.
|
|
48
|
+
"@unocss/eslint-plugin": "^66.5.10",
|
|
49
49
|
"@vue-macros/eslint-config": "3.0.0-beta.21",
|
|
50
50
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
51
51
|
"eslint-config-prettier": "^10.1.8",
|
|
52
52
|
"eslint-flat-config-utils": "^2.1.4",
|
|
53
|
-
"eslint-plugin-format": "^1.0
|
|
53
|
+
"eslint-plugin-format": "^1.1.0",
|
|
54
54
|
"eslint-plugin-import-x": "^4.16.1",
|
|
55
|
-
"eslint-plugin-jsdoc": "^61.
|
|
55
|
+
"eslint-plugin-jsdoc": "^61.5.0",
|
|
56
56
|
"eslint-plugin-package-json": "^0.85.0",
|
|
57
57
|
"eslint-plugin-prettier": "^5.5.4",
|
|
58
58
|
"eslint-plugin-tailwindcss": "4.0.0-beta.0",
|
|
59
59
|
"eslint-plugin-vue": "^10.6.2",
|
|
60
60
|
"globals": "^16.5.0",
|
|
61
|
-
"jsonc-eslint-parser": "^2.4.
|
|
61
|
+
"jsonc-eslint-parser": "^2.4.2",
|
|
62
62
|
"local-pkg": "^1.1.2",
|
|
63
63
|
"vue-eslint-parser": "^10.2.0"
|
|
64
64
|
}
|