@dhzh/eslint-config 0.16.0 → 0.16.1

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 CHANGED
@@ -47,6 +47,10 @@ Differences from [@antfu/eslint-config](https://github.com/antfu/eslint-config/b
47
47
 
48
48
  - `'react/no-useless-fragment': 'warn'`
49
49
 
50
+ 10. remove spacing when useing jsx curly braces:
51
+
52
+ - `'style/jsx-curly-spacing': ['error', { children: true, when: 'never' }]`
53
+
50
54
  ## Usage
51
55
 
52
56
  > Requires ESLint v9.5.0+
package/dist/cli.cjs CHANGED
@@ -41,8 +41,8 @@ var import_picocolors = __toESM(require("picocolors"), 1);
41
41
  var package_default = {
42
42
  name: "@dhzh/eslint-config",
43
43
  type: "module",
44
- version: "0.16.0",
45
- packageManager: "pnpm@9.15.0",
44
+ version: "0.16.1",
45
+ packageManager: "pnpm@9.15.3",
46
46
  description: "Easton's ESLint config",
47
47
  author: "Easton Zheng <dhzhme@gmail.com>",
48
48
  license: "MIT",
@@ -125,25 +125,25 @@ var package_default = {
125
125
  },
126
126
  dependencies: {
127
127
  "@antfu/install-pkg": "^0.5.0",
128
- "@clack/prompts": "^0.8.2",
128
+ "@clack/prompts": "^0.9.0",
129
129
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
130
- "@eslint-react/eslint-plugin": "^1.19.0",
130
+ "@eslint-react/eslint-plugin": "^1.22.1",
131
131
  "@eslint/markdown": "^6.2.1",
132
132
  "@stylistic/eslint-plugin": "^2.12.1",
133
- "@typescript-eslint/eslint-plugin": "^8.18.0",
134
- "@typescript-eslint/parser": "^8.18.0",
135
- "@vitest/eslint-plugin": "^1.1.16",
133
+ "@typescript-eslint/eslint-plugin": "^8.18.2",
134
+ "@typescript-eslint/parser": "^8.18.2",
135
+ "@vitest/eslint-plugin": "^1.1.20",
136
136
  "eslint-config-flat-gitignore": "^0.3.0",
137
137
  "eslint-flat-config-utils": "^0.4.0",
138
138
  "eslint-merge-processors": "^0.1.0",
139
139
  "eslint-plugin-antfu": "^2.7.0",
140
- "eslint-plugin-command": "^0.2.6",
141
- "eslint-plugin-import-x": "^4.5.0",
140
+ "eslint-plugin-command": "^0.2.7",
141
+ "eslint-plugin-import-x": "^4.6.1",
142
142
  "eslint-plugin-jsdoc": "^50.6.1",
143
143
  "eslint-plugin-jsonc": "^2.18.2",
144
- "eslint-plugin-n": "^17.15.0",
144
+ "eslint-plugin-n": "^17.15.1",
145
145
  "eslint-plugin-no-only-tests": "^3.3.0",
146
- "eslint-plugin-perfectionist": "^4.3.0",
146
+ "eslint-plugin-perfectionist": "^4.4.0",
147
147
  "eslint-plugin-react-hooks": "^5.1.0",
148
148
  "eslint-plugin-react-refresh": "^0.4.16",
149
149
  "eslint-plugin-regexp": "^2.7.0",
@@ -153,7 +153,7 @@ var package_default = {
153
153
  "eslint-plugin-vue": "^9.32.0",
154
154
  "eslint-plugin-yml": "^1.16.0",
155
155
  "eslint-processor-vue-blocks": "^0.1.2",
156
- globals: "^15.13.0",
156
+ globals: "^15.14.0",
157
157
  "jsonc-eslint-parser": "^2.4.0",
158
158
  "local-pkg": "^0.5.1",
159
159
  "parse-gitignore": "^2.0.0",
@@ -164,7 +164,7 @@ var package_default = {
164
164
  yargs: "^17.7.2"
165
165
  },
166
166
  devDependencies: {
167
- "@antfu/ni": "^0.23.1",
167
+ "@antfu/ni": "^0.23.2",
168
168
  "@eslint/config-inspector": "^0.6.0",
169
169
  "@prettier/plugin-xml": "^3.4.1",
170
170
  "@stylistic/eslint-plugin-migrate": "^2.12.1",
@@ -172,11 +172,11 @@ var package_default = {
172
172
  "@types/node": "^22.10.2",
173
173
  "@types/prompts": "^2.4.9",
174
174
  "@types/yargs": "^17.0.33",
175
- "@unocss/eslint-plugin": "^0.65.1",
175
+ "@unocss/eslint-plugin": "^0.65.2",
176
176
  "astro-eslint-parser": "^1.1.0",
177
- bumpp: "^9.9.1",
177
+ bumpp: "^9.9.2",
178
178
  "bundle-require": "^5.0.0",
179
- eslint: "^9.16.0",
179
+ eslint: "^9.17.0",
180
180
  "eslint-plugin-astro": "^1.3.1",
181
181
  "eslint-plugin-format": "^0.1.3",
182
182
  "eslint-plugin-solid": "^0.14.5",
@@ -186,7 +186,7 @@ var package_default = {
186
186
  execa: "^9.5.2",
187
187
  "fast-glob": "^3.3.2",
188
188
  "fs-extra": "^11.2.0",
189
- jiti: "^2.4.1",
189
+ jiti: "^2.4.2",
190
190
  "lint-staged": "^15.2.11",
191
191
  "prettier-plugin-astro": "^0.14.1",
192
192
  "prettier-plugin-slidev": "^1.0.5",
@@ -199,8 +199,8 @@ var package_default = {
199
199
  },
200
200
  resolutions: {
201
201
  "@eslint-community/eslint-utils": "^4.4.1",
202
- "@typescript-eslint/utils": "^8.18.0",
203
- eslint: "^9.16.0",
202
+ "@typescript-eslint/utils": "^8.18.2",
203
+ eslint: "^9.17.0",
204
204
  tsx: "^4.19.2"
205
205
  },
206
206
  "simple-git-hooks": {
package/dist/cli.js CHANGED
@@ -12,8 +12,8 @@ import c from "picocolors";
12
12
  var package_default = {
13
13
  name: "@dhzh/eslint-config",
14
14
  type: "module",
15
- version: "0.16.0",
16
- packageManager: "pnpm@9.15.0",
15
+ version: "0.16.1",
16
+ packageManager: "pnpm@9.15.3",
17
17
  description: "Easton's ESLint config",
18
18
  author: "Easton Zheng <dhzhme@gmail.com>",
19
19
  license: "MIT",
@@ -96,25 +96,25 @@ var package_default = {
96
96
  },
97
97
  dependencies: {
98
98
  "@antfu/install-pkg": "^0.5.0",
99
- "@clack/prompts": "^0.8.2",
99
+ "@clack/prompts": "^0.9.0",
100
100
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
101
- "@eslint-react/eslint-plugin": "^1.19.0",
101
+ "@eslint-react/eslint-plugin": "^1.22.1",
102
102
  "@eslint/markdown": "^6.2.1",
103
103
  "@stylistic/eslint-plugin": "^2.12.1",
104
- "@typescript-eslint/eslint-plugin": "^8.18.0",
105
- "@typescript-eslint/parser": "^8.18.0",
106
- "@vitest/eslint-plugin": "^1.1.16",
104
+ "@typescript-eslint/eslint-plugin": "^8.18.2",
105
+ "@typescript-eslint/parser": "^8.18.2",
106
+ "@vitest/eslint-plugin": "^1.1.20",
107
107
  "eslint-config-flat-gitignore": "^0.3.0",
108
108
  "eslint-flat-config-utils": "^0.4.0",
109
109
  "eslint-merge-processors": "^0.1.0",
110
110
  "eslint-plugin-antfu": "^2.7.0",
111
- "eslint-plugin-command": "^0.2.6",
112
- "eslint-plugin-import-x": "^4.5.0",
111
+ "eslint-plugin-command": "^0.2.7",
112
+ "eslint-plugin-import-x": "^4.6.1",
113
113
  "eslint-plugin-jsdoc": "^50.6.1",
114
114
  "eslint-plugin-jsonc": "^2.18.2",
115
- "eslint-plugin-n": "^17.15.0",
115
+ "eslint-plugin-n": "^17.15.1",
116
116
  "eslint-plugin-no-only-tests": "^3.3.0",
117
- "eslint-plugin-perfectionist": "^4.3.0",
117
+ "eslint-plugin-perfectionist": "^4.4.0",
118
118
  "eslint-plugin-react-hooks": "^5.1.0",
119
119
  "eslint-plugin-react-refresh": "^0.4.16",
120
120
  "eslint-plugin-regexp": "^2.7.0",
@@ -124,7 +124,7 @@ var package_default = {
124
124
  "eslint-plugin-vue": "^9.32.0",
125
125
  "eslint-plugin-yml": "^1.16.0",
126
126
  "eslint-processor-vue-blocks": "^0.1.2",
127
- globals: "^15.13.0",
127
+ globals: "^15.14.0",
128
128
  "jsonc-eslint-parser": "^2.4.0",
129
129
  "local-pkg": "^0.5.1",
130
130
  "parse-gitignore": "^2.0.0",
@@ -135,7 +135,7 @@ var package_default = {
135
135
  yargs: "^17.7.2"
136
136
  },
137
137
  devDependencies: {
138
- "@antfu/ni": "^0.23.1",
138
+ "@antfu/ni": "^0.23.2",
139
139
  "@eslint/config-inspector": "^0.6.0",
140
140
  "@prettier/plugin-xml": "^3.4.1",
141
141
  "@stylistic/eslint-plugin-migrate": "^2.12.1",
@@ -143,11 +143,11 @@ var package_default = {
143
143
  "@types/node": "^22.10.2",
144
144
  "@types/prompts": "^2.4.9",
145
145
  "@types/yargs": "^17.0.33",
146
- "@unocss/eslint-plugin": "^0.65.1",
146
+ "@unocss/eslint-plugin": "^0.65.2",
147
147
  "astro-eslint-parser": "^1.1.0",
148
- bumpp: "^9.9.1",
148
+ bumpp: "^9.9.2",
149
149
  "bundle-require": "^5.0.0",
150
- eslint: "^9.16.0",
150
+ eslint: "^9.17.0",
151
151
  "eslint-plugin-astro": "^1.3.1",
152
152
  "eslint-plugin-format": "^0.1.3",
153
153
  "eslint-plugin-solid": "^0.14.5",
@@ -157,7 +157,7 @@ var package_default = {
157
157
  execa: "^9.5.2",
158
158
  "fast-glob": "^3.3.2",
159
159
  "fs-extra": "^11.2.0",
160
- jiti: "^2.4.1",
160
+ jiti: "^2.4.2",
161
161
  "lint-staged": "^15.2.11",
162
162
  "prettier-plugin-astro": "^0.14.1",
163
163
  "prettier-plugin-slidev": "^1.0.5",
@@ -170,8 +170,8 @@ var package_default = {
170
170
  },
171
171
  resolutions: {
172
172
  "@eslint-community/eslint-utils": "^4.4.1",
173
- "@typescript-eslint/utils": "^8.18.0",
174
- eslint: "^9.16.0",
173
+ "@typescript-eslint/utils": "^8.18.2",
174
+ eslint: "^9.17.0",
175
175
  tsx: "^4.19.2"
176
176
  },
177
177
  "simple-git-hooks": {
package/dist/index.cjs CHANGED
@@ -498,6 +498,9 @@ async function stylistic(options = {}) {
498
498
  ...config.rules,
499
499
  "antfu/consistent-chaining": "error",
500
500
  "antfu/consistent-list-newline": "error",
501
+ ...jsx2 ? {
502
+ "style/jsx-curly-spacing": ["error", { children: true, when: "never" }]
503
+ } : {},
501
504
  ...lessOpinionated ? {
502
505
  curly: ["error", "all"]
503
506
  } : {