@kirklin/eslint-config 2.1.0 → 2.3.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,8 +1,8 @@
1
1
  {
2
2
  "name": "@kirklin/eslint-config",
3
3
  "type": "module",
4
- "version": "2.1.0",
5
- "packageManager": "pnpm@8.15.1",
4
+ "version": "2.3.0",
5
+ "packageManager": "pnpm@8.15.5",
6
6
  "description": "Kirk Lin's ESLint config",
7
7
  "author": "Kirk Lin (https://github.com/kirklin/)",
8
8
  "license": "MIT",
@@ -26,18 +26,29 @@
26
26
  ],
27
27
  "peerDependencies": {
28
28
  "@unocss/eslint-plugin": ">=0.50.0",
29
+ "astro-eslint-parser": "^0.16.3",
29
30
  "eslint": ">=8.40.0",
31
+ "eslint-plugin-astro": "^0.31.4",
30
32
  "eslint-plugin-format": ">=0.1.0",
31
33
  "eslint-plugin-react": "^7.33.2",
32
34
  "eslint-plugin-react-hooks": "^4.6.0",
33
35
  "eslint-plugin-react-refresh": "^0.4.4",
34
- "eslint-plugin-svelte": "^2.34.1",
36
+ "eslint-plugin-solid": "^0.13.2",
37
+ "eslint-plugin-svelte": ">=2.35.1",
38
+ "prettier-plugin-astro": "^0.13.0",
39
+ "prettier-plugin-slidev": "^1.0.5",
35
40
  "svelte-eslint-parser": "^0.33.1"
36
41
  },
37
42
  "peerDependenciesMeta": {
38
43
  "@unocss/eslint-plugin": {
39
44
  "optional": true
40
45
  },
46
+ "astro-eslint-parser": {
47
+ "optional": true
48
+ },
49
+ "eslint-plugin-astro": {
50
+ "optional": true
51
+ },
41
52
  "eslint-plugin-format": {
42
53
  "optional": true
43
54
  },
@@ -50,84 +61,96 @@
50
61
  "eslint-plugin-react-refresh": {
51
62
  "optional": true
52
63
  },
64
+ "eslint-plugin-solid": {
65
+ "optional": true
66
+ },
53
67
  "eslint-plugin-svelte": {
54
68
  "optional": true
55
69
  },
70
+ "prettier-plugin-astro": {
71
+ "optional": true
72
+ },
73
+ "prettier-plugin-slidev": {
74
+ "optional": true
75
+ },
56
76
  "svelte-eslint-parser": {
57
77
  "optional": true
58
78
  }
59
79
  },
60
80
  "dependencies": {
61
- "@antfu/eslint-define-config": "1.23.0-2",
62
- "@antfu/install-pkg": "^0.3.1",
63
- "@eslint-types/jsdoc": "48.0.4",
64
- "@eslint-types/typescript-eslint": "^6.19.1",
65
- "@eslint-types/unicorn": "^50.0.1",
66
- "@stylistic/eslint-plugin": "^1.6.0",
67
- "@typescript-eslint/eslint-plugin": "^6.21.0",
68
- "@typescript-eslint/parser": "^6.21.0",
69
- "eslint-config-flat-gitignore": "^0.1.2",
81
+ "@antfu/install-pkg": "^0.3.2",
82
+ "@clack/prompts": "^0.7.0",
83
+ "@stylistic/eslint-plugin": "^1.7.0",
84
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
85
+ "@typescript-eslint/parser": "^7.6.0",
86
+ "eslint-config-flat-gitignore": "^0.1.5",
87
+ "eslint-flat-config-utils": "^0.2.3",
70
88
  "eslint-merge-processors": "^0.1.0",
71
89
  "eslint-plugin-eslint-comments": "^3.2.0",
72
- "eslint-plugin-i": "^2.29.1",
73
- "eslint-plugin-jsdoc": "^48.0.5",
74
- "eslint-plugin-jsonc": "^2.13.0",
90
+ "eslint-plugin-import-x": "^0.5.0",
91
+ "eslint-plugin-jsdoc": "^48.2.3",
92
+ "eslint-plugin-jsonc": "^2.15.1",
75
93
  "eslint-plugin-kirklin": "^1.1.0",
76
- "eslint-plugin-markdown": "^3.0.1",
77
- "eslint-plugin-n": "^16.6.2",
94
+ "eslint-plugin-markdown": "^4.0.1",
95
+ "eslint-plugin-n": "^17.2.1",
78
96
  "eslint-plugin-no-only-tests": "^3.1.0",
79
- "eslint-plugin-perfectionist": "^2.5.0",
80
- "eslint-plugin-toml": "^0.9.2",
81
- "eslint-plugin-unicorn": "^50.0.1",
82
- "eslint-plugin-unused-imports": "^3.0.0",
83
- "eslint-plugin-vitest": "^0.3.21",
84
- "eslint-plugin-vue": "^9.21.1",
85
- "eslint-plugin-yml": "^1.12.2",
97
+ "eslint-plugin-perfectionist": "^2.9.0",
98
+ "eslint-plugin-toml": "^0.11.0",
99
+ "eslint-plugin-unicorn": "^52.0.0",
100
+ "eslint-plugin-unused-imports": "^3.1.0",
101
+ "eslint-plugin-vitest": "^0.5.3",
102
+ "eslint-plugin-vue": "^9.25.0",
103
+ "eslint-plugin-yml": "^1.14.0",
86
104
  "eslint-processor-vue-blocks": "^0.1.1",
87
- "globals": "^13.24.0",
105
+ "globals": "^15.0.0",
88
106
  "jsonc-eslint-parser": "^2.4.0",
89
107
  "local-pkg": "^0.5.0",
90
108
  "parse-gitignore": "^2.0.0",
91
109
  "picocolors": "^1.0.0",
92
- "prompts": "^2.4.2",
93
110
  "toml-eslint-parser": "^0.9.3",
94
111
  "vue-eslint-parser": "^9.4.2",
95
112
  "yaml-eslint-parser": "^1.2.2",
96
113
  "yargs": "^17.7.2"
97
114
  },
98
115
  "devDependencies": {
99
- "@antfu/eslint-plugin-prettier": "5.0.1-1",
116
+ "@antfu/eslint-plugin-prettier": "^5.0.1-1",
100
117
  "@antfu/ni": "^0.21.12",
101
- "@stylistic/eslint-plugin-migrate": "^1.6.0",
102
- "@types/eslint": "^8.56.2",
118
+ "@eslint/config-inspector": "^0.4.6",
119
+ "@stylistic/eslint-plugin-migrate": "^1.7.0",
120
+ "@types/eslint": "^8.56.9",
103
121
  "@types/fs-extra": "^11.0.4",
104
- "@types/node": "^20.11.16",
122
+ "@types/node": "^20.12.7",
105
123
  "@types/prompts": "^2.4.9",
106
124
  "@types/yargs": "^17.0.32",
107
- "@unocss/eslint-plugin": "^0.58.5",
108
- "bumpp": "^9.3.0",
109
- "eslint": "npm:eslint-ts-patch@8.56.0-0",
110
- "eslint-flat-config-viewer": "^0.1.11",
125
+ "@unocss/eslint-plugin": "^0.59.2",
126
+ "astro-eslint-parser": "^0.17.0",
127
+ "bumpp": "^9.4.0",
128
+ "bundle-require": "^4.0.2",
129
+ "eslint": "^9.0.0",
130
+ "eslint-plugin-astro": "^0.34.0",
111
131
  "eslint-plugin-format": "^0.1.0",
112
- "eslint-plugin-react": "^7.33.2",
132
+ "eslint-plugin-react": "^7.34.1",
113
133
  "eslint-plugin-react-hooks": "^4.6.0",
114
- "eslint-plugin-react-refresh": "^0.4.5",
115
- "eslint-plugin-svelte": "^2.35.1",
116
- "eslint-ts-patch": "8.56.0-0",
117
- "esno": "^4.0.0",
134
+ "eslint-plugin-react-refresh": "^0.4.6",
135
+ "eslint-plugin-solid": "^0.13.2",
136
+ "eslint-plugin-svelte": "2.36.0-next.13",
137
+ "eslint-typegen": "^0.2.3",
138
+ "esno": "^4.7.0",
118
139
  "execa": "^8.0.1",
119
140
  "fast-glob": "^3.3.2",
120
141
  "fs-extra": "^11.2.0",
121
142
  "lint-staged": "^15.2.2",
143
+ "prettier-plugin-astro": "^0.13.0",
144
+ "prettier-plugin-slidev": "^1.0.5",
122
145
  "rimraf": "^5.0.5",
123
- "simple-git-hooks": "^2.9.0",
124
- "svelte": "^4.2.10",
125
- "svelte-eslint-parser": "^0.33.1",
126
- "tsup": "^8.0.1",
127
- "typescript": "^5.3.3",
128
- "vitest": "^1.2.2",
129
- "vue": "^3.4.15",
130
- "@kirklin/eslint-config": "2.1.0"
146
+ "simple-git-hooks": "^2.11.1",
147
+ "svelte": "^4.2.14",
148
+ "svelte-eslint-parser": "^0.34.1",
149
+ "tsup": "^8.0.2",
150
+ "typescript": "^5.4.5",
151
+ "vitest": "^1.5.0",
152
+ "vue": "^3.4.21",
153
+ "@kirklin/eslint-config": "2.3.0"
131
154
  },
132
155
  "simple-git-hooks": {
133
156
  "pre-commit": "pnpm lint-staged"
@@ -136,12 +159,14 @@
136
159
  "*": "eslint --fix"
137
160
  },
138
161
  "scripts": {
139
- "build": "tsup --format esm,cjs --clean --dts",
162
+ "build": "nr typegen && tsup --format esm,cjs --clean --dts",
140
163
  "stub": "tsup --format esm",
141
- "dev": "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
164
+ "dev": "npx @eslint/config-inspector --config eslint.config.ts",
165
+ "build:inspector": "pnpm build && npx @eslint/config-inspector build",
142
166
  "watch": "tsup --format esm,cjs --watch",
143
167
  "lint": "eslint .",
144
168
  "lint:fix": "eslint . --fix",
169
+ "typegen": "esno scripts/typegen.ts",
145
170
  "release": "bumpp && pnpm publish",
146
171
  "test": "vitest",
147
172
  "typecheck": "tsc --noEmit"