@pengzhanbo/eslint-config 1.7.0 → 1.8.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pengzhanbo/eslint-config",
3
3
  "type": "module",
4
- "version": "1.7.0",
4
+ "version": "1.8.0",
5
5
  "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/pengzhanbo/configs#readme",
@@ -18,10 +18,6 @@
18
18
  "import": {
19
19
  "types": "./dist/index.d.ts",
20
20
  "default": "./dist/index.js"
21
- },
22
- "require": {
23
- "types": "./dist/index.d.cts",
24
- "default": "./dist/index.cjs"
25
21
  }
26
22
  },
27
23
  "./package.json": "./package.json"
@@ -32,47 +28,101 @@
32
28
  "dist"
33
29
  ],
34
30
  "peerDependencies": {
31
+ "@next/eslint-plugin-next": "^14.1.4",
35
32
  "@unocss/eslint-plugin": ">=0.50.0",
33
+ "astro-eslint-parser": "^0.16.3",
36
34
  "eslint": ">=8.40.0",
35
+ "eslint-plugin-astro": "^0.31.4",
37
36
  "eslint-plugin-format": ">=0.1.0",
38
- "eslint-plugin-tailwindcss": ">=3.10.0"
37
+ "eslint-plugin-react": "^7.33.2",
38
+ "eslint-plugin-react-hooks": "^4.6.0",
39
+ "eslint-plugin-react-refresh": "^0.4.4",
40
+ "eslint-plugin-solid": "^0.13.2",
41
+ "eslint-plugin-svelte": ">=2.35.1",
42
+ "eslint-plugin-tailwindcss": "^3.15.1",
43
+ "eslint-plugin-vue": "^9.24.0",
44
+ "eslint-processor-vue-blocks": "^0.1.1",
45
+ "prettier-plugin-astro": "^0.13.0",
46
+ "prettier-plugin-slidev": "^1.0.5",
47
+ "svelte-eslint-parser": "^0.33.1",
48
+ "vue-eslint-parser": "^9.4.2"
39
49
  },
40
50
  "peerDependenciesMeta": {
51
+ "@next/eslint-plugin-next": {
52
+ "optional": true
53
+ },
41
54
  "@unocss/eslint-plugin": {
42
55
  "optional": true
43
56
  },
57
+ "astro-eslint-parser": {
58
+ "optional": true
59
+ },
60
+ "eslint-plugin-astro": {
61
+ "optional": true
62
+ },
44
63
  "eslint-plugin-format": {
45
64
  "optional": true
46
65
  },
66
+ "eslint-plugin-react": {
67
+ "optional": true
68
+ },
69
+ "eslint-plugin-react-hooks": {
70
+ "optional": true
71
+ },
72
+ "eslint-plugin-react-refresh": {
73
+ "optional": true
74
+ },
75
+ "eslint-plugin-solid": {
76
+ "optional": true
77
+ },
78
+ "eslint-plugin-svelte": {
79
+ "optional": true
80
+ },
47
81
  "eslint-plugin-tailwindcss": {
48
82
  "optional": true
83
+ },
84
+ "eslint-plugin-vue": {
85
+ "optional": true
86
+ },
87
+ "eslint-processor-vue-blocks": {
88
+ "optional": true
89
+ },
90
+ "prettier-plugin-astro": {
91
+ "optional": true
92
+ },
93
+ "prettier-plugin-slidev": {
94
+ "optional": true
95
+ },
96
+ "svelte-eslint-parser": {
97
+ "optional": true
98
+ },
99
+ "vue-eslint-parser": {
100
+ "optional": true
49
101
  }
50
102
  },
51
103
  "dependencies": {
52
- "@antfu/eslint-define-config": "^1.23.0-2",
53
- "@eslint-types/jsdoc": "47.0.2",
54
- "@eslint-types/typescript-eslint": "^7.0.2",
55
- "@eslint-types/unicorn": "^51.0.1",
56
- "@stylistic/eslint-plugin": "^1.6.3",
57
- "@typescript-eslint/eslint-plugin": "^7.2.0",
58
- "@typescript-eslint/parser": "^7.2.0",
59
- "eslint-config-flat-gitignore": "^0.1.3",
104
+ "@antfu/install-pkg": "^0.3.2",
105
+ "@stylistic/eslint-plugin": "^1.7.0",
106
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
107
+ "@typescript-eslint/parser": "^7.6.0",
108
+ "eslint-config-flat-gitignore": "^0.1.5",
109
+ "eslint-flat-config-utils": "^0.2.1",
60
110
  "eslint-merge-processors": "^0.1.0",
61
111
  "eslint-plugin-antfu": "^2.1.2",
62
112
  "eslint-plugin-eslint-comments": "^3.2.0",
63
- "eslint-plugin-i": "^2.29.1",
64
- "eslint-plugin-jsdoc": "^48.2.1",
65
- "eslint-plugin-jsonc": "^2.13.0",
113
+ "eslint-plugin-import-x": "^0.5.0",
114
+ "eslint-plugin-jsdoc": "^48.2.3",
115
+ "eslint-plugin-jsonc": "^2.15.0",
66
116
  "eslint-plugin-markdown": "^4.0.1",
67
- "eslint-plugin-n": "^16.6.2",
117
+ "eslint-plugin-n": "^17.0.0",
68
118
  "eslint-plugin-no-only-tests": "^3.1.0",
69
- "eslint-plugin-perfectionist": "^2.6.0",
70
- "eslint-plugin-toml": "^0.9.2",
71
- "eslint-plugin-unicorn": "^51.0.1",
119
+ "eslint-plugin-perfectionist": "^2.8.0",
120
+ "eslint-plugin-toml": "^0.11.0",
121
+ "eslint-plugin-unicorn": "^52.0.0",
72
122
  "eslint-plugin-unused-imports": "^3.1.0",
73
- "eslint-plugin-vitest": "^0.3.25",
74
- "eslint-plugin-yml": "^1.12.2",
75
- "globals": "^14.0.0",
123
+ "eslint-plugin-vitest": "^0.4.1",
124
+ "eslint-plugin-yml": "^1.14.0",
125
+ "globals": "^15.0.0",
76
126
  "jsonc-eslint-parser": "^2.4.0",
77
127
  "local-pkg": "^0.5.0",
78
128
  "parse-gitignore": "^2.0.0",
@@ -80,16 +130,33 @@
80
130
  "yaml-eslint-parser": "^1.2.2"
81
131
  },
82
132
  "devDependencies": {
83
- "@unocss/eslint-plugin": "^0.58.5",
84
- "eslint": "^8.57.0",
85
- "eslint-flat-config-viewer": "^0.1.11",
133
+ "@eslint/config-inspector": "^0.4.1",
134
+ "@next/eslint-plugin-next": "^14.1.4",
135
+ "@unocss/eslint-plugin": "^0.59.0",
136
+ "astro-eslint-parser": "^0.17.0",
137
+ "eslint": "^9.0.0",
138
+ "eslint-plugin-astro": "^0.34.0",
86
139
  "eslint-plugin-format": "^0.1.0",
87
- "eslint-plugin-tailwindcss": "^3.15.0",
88
- "tsup": "^8.0.2"
140
+ "eslint-plugin-react": "^7.34.1",
141
+ "eslint-plugin-react-hooks": "^4.6.0",
142
+ "eslint-plugin-react-refresh": "^0.4.6",
143
+ "eslint-plugin-solid": "^0.13.2",
144
+ "eslint-plugin-svelte": "^2.36.0",
145
+ "eslint-plugin-tailwindcss": "^3.15.1",
146
+ "eslint-plugin-vue": "^9.24.1",
147
+ "eslint-processor-vue-blocks": "^0.1.1",
148
+ "eslint-typegen": "^0.2.1",
149
+ "prettier-plugin-astro": "^0.13.0",
150
+ "prettier-plugin-slidev": "^1.0.5",
151
+ "svelte": "^4.2.12",
152
+ "svelte-eslint-parser": "^0.34.0",
153
+ "vue-eslint-parser": "^9.4.2"
89
154
  },
90
155
  "scripts": {
91
- "dev": "tsup src/index.ts --format esm --watch & eslint-flat-config-viewer",
92
- "build": "tsup src/index.ts --format esm,cjs --clean --dts --shims",
93
- "stub": "tsup src/index.ts --format esm"
156
+ "dev": "tsup src/index.ts --shims --format esm --watch & npx @eslint/config-inspector",
157
+ "build": "pnpm typegen && tsup src/index.ts --format esm --clean --dts --shims",
158
+ "build:inspector": "pnpm build && npx @eslint/config-inspector build",
159
+ "stub": "tsup src/index.ts --format esm",
160
+ "typegen": "esno scripts/typegen.ts"
94
161
  }
95
162
  }