@antfu/eslint-config 2.23.1 → 2.23.2

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/cli.cjs CHANGED
@@ -48,8 +48,8 @@ var import_picocolors = __toESM(require("picocolors"), 1);
48
48
  var package_default = {
49
49
  name: "@antfu/eslint-config",
50
50
  type: "module",
51
- version: "2.23.1",
52
- packageManager: "pnpm@9.5.0",
51
+ version: "2.23.2",
52
+ packageManager: "pnpm@9.6.0",
53
53
  description: "Anthony's ESLint config",
54
54
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
55
55
  license: "MIT",
@@ -143,7 +143,6 @@ var package_default = {
143
143
  }
144
144
  },
145
145
  dependencies: {
146
- "@antfu/eslint-plugin-unused-imports": "^4.0.0",
147
146
  "@antfu/install-pkg": "^0.3.3",
148
147
  "@clack/prompts": "^0.7.0",
149
148
  "@stylistic/eslint-plugin": "^2.6.0-beta.0",
@@ -165,6 +164,7 @@ var package_default = {
165
164
  "eslint-plugin-regexp": "^2.6.0",
166
165
  "eslint-plugin-toml": "^0.11.1",
167
166
  "eslint-plugin-unicorn": "^54.0.0",
167
+ "eslint-plugin-unused-imports": "^4.0.1",
168
168
  "eslint-plugin-vitest": "^0.5.4",
169
169
  "eslint-plugin-vue": "^9.27.0",
170
170
  "eslint-plugin-yml": "^1.14.0",
@@ -182,7 +182,7 @@ var package_default = {
182
182
  devDependencies: {
183
183
  "@antfu/eslint-config": "workspace:*",
184
184
  "@antfu/ni": "^0.22.0",
185
- "@eslint-react/eslint-plugin": "^1.5.28",
185
+ "@eslint-react/eslint-plugin": "^1.5.30",
186
186
  "@eslint/config-inspector": "^0.5.2",
187
187
  "@prettier/plugin-xml": "^3.4.1",
188
188
  "@stylistic/eslint-plugin-migrate": "^2.3.0",
@@ -198,7 +198,7 @@ var package_default = {
198
198
  "eslint-plugin-astro": "^1.2.3",
199
199
  "eslint-plugin-format": "^0.1.2",
200
200
  "eslint-plugin-react-hooks": "^4.6.2",
201
- "eslint-plugin-react-refresh": "^0.4.8",
201
+ "eslint-plugin-react-refresh": "^0.4.9",
202
202
  "eslint-plugin-solid": "^0.14.1",
203
203
  "eslint-plugin-svelte": "^2.43.0",
204
204
  "eslint-ts-patch": "9.5.0-0",
@@ -214,10 +214,10 @@ var package_default = {
214
214
  "simple-git-hooks": "^2.11.1",
215
215
  svelte: "^4.2.18",
216
216
  "svelte-eslint-parser": "^0.41.0",
217
- tsup: "^8.2.0",
217
+ tsup: "^8.2.2",
218
218
  tsx: "^4.16.2",
219
219
  typescript: "^5.5.3",
220
- vitest: "^2.0.3",
220
+ vitest: "^2.0.4",
221
221
  vue: "^3.4.33"
222
222
  },
223
223
  resolutions: {
package/dist/cli.js CHANGED
@@ -19,8 +19,8 @@ import c from "picocolors";
19
19
  var package_default = {
20
20
  name: "@antfu/eslint-config",
21
21
  type: "module",
22
- version: "2.23.1",
23
- packageManager: "pnpm@9.5.0",
22
+ version: "2.23.2",
23
+ packageManager: "pnpm@9.6.0",
24
24
  description: "Anthony's ESLint config",
25
25
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
26
26
  license: "MIT",
@@ -114,7 +114,6 @@ var package_default = {
114
114
  }
115
115
  },
116
116
  dependencies: {
117
- "@antfu/eslint-plugin-unused-imports": "^4.0.0",
118
117
  "@antfu/install-pkg": "^0.3.3",
119
118
  "@clack/prompts": "^0.7.0",
120
119
  "@stylistic/eslint-plugin": "^2.6.0-beta.0",
@@ -136,6 +135,7 @@ var package_default = {
136
135
  "eslint-plugin-regexp": "^2.6.0",
137
136
  "eslint-plugin-toml": "^0.11.1",
138
137
  "eslint-plugin-unicorn": "^54.0.0",
138
+ "eslint-plugin-unused-imports": "^4.0.1",
139
139
  "eslint-plugin-vitest": "^0.5.4",
140
140
  "eslint-plugin-vue": "^9.27.0",
141
141
  "eslint-plugin-yml": "^1.14.0",
@@ -153,7 +153,7 @@ var package_default = {
153
153
  devDependencies: {
154
154
  "@antfu/eslint-config": "workspace:*",
155
155
  "@antfu/ni": "^0.22.0",
156
- "@eslint-react/eslint-plugin": "^1.5.28",
156
+ "@eslint-react/eslint-plugin": "^1.5.30",
157
157
  "@eslint/config-inspector": "^0.5.2",
158
158
  "@prettier/plugin-xml": "^3.4.1",
159
159
  "@stylistic/eslint-plugin-migrate": "^2.3.0",
@@ -169,7 +169,7 @@ var package_default = {
169
169
  "eslint-plugin-astro": "^1.2.3",
170
170
  "eslint-plugin-format": "^0.1.2",
171
171
  "eslint-plugin-react-hooks": "^4.6.2",
172
- "eslint-plugin-react-refresh": "^0.4.8",
172
+ "eslint-plugin-react-refresh": "^0.4.9",
173
173
  "eslint-plugin-solid": "^0.14.1",
174
174
  "eslint-plugin-svelte": "^2.43.0",
175
175
  "eslint-ts-patch": "9.5.0-0",
@@ -185,10 +185,10 @@ var package_default = {
185
185
  "simple-git-hooks": "^2.11.1",
186
186
  svelte: "^4.2.18",
187
187
  "svelte-eslint-parser": "^0.41.0",
188
- tsup: "^8.2.0",
188
+ tsup: "^8.2.2",
189
189
  tsx: "^4.16.2",
190
190
  typescript: "^5.5.3",
191
- vitest: "^2.0.3",
191
+ vitest: "^2.0.4",
192
192
  vue: "^3.4.33"
193
193
  },
194
194
  resolutions: {
package/dist/index.cjs CHANGED
@@ -344,7 +344,7 @@ var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint
344
344
  var pluginImport = __toESM(require("eslint-plugin-import-x"), 1);
345
345
  var import_eslint_plugin_n = __toESM(require("eslint-plugin-n"), 1);
346
346
  var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
347
- var import_eslint_plugin_unused_imports = __toESM(require("@antfu/eslint-plugin-unused-imports"), 1);
347
+ var import_eslint_plugin_unused_imports = __toESM(require("eslint-plugin-unused-imports"), 1);
348
348
  var import_eslint_plugin_perfectionist = __toESM(require("eslint-plugin-perfectionist"), 1);
349
349
 
350
350
  // src/configs/comments.ts
package/dist/index.d.cts CHANGED
@@ -3087,6 +3087,11 @@ interface RuleOptions {
3087
3087
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
3088
3088
  */
3089
3089
  'react/no-create-ref'?: Linter.RuleEntry<[]>
3090
+ /**
3091
+ * disallow the use of 'defaultProps' property in components
3092
+ * @see https://eslint-react.xyz/docs/rules/no-default-props
3093
+ */
3094
+ 'react/no-default-props'?: Linter.RuleEntry<[]>
3090
3095
  /**
3091
3096
  * disallow direct mutation of state
3092
3097
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
@@ -3123,6 +3128,11 @@ interface RuleOptions {
3123
3128
  * @see https://eslint-react.xyz/docs/rules/no-nested-components
3124
3129
  */
3125
3130
  'react/no-nested-components'?: Linter.RuleEntry<[]>
3131
+ /**
3132
+ * disallow the use of 'propTypes' property in components
3133
+ * @see https://eslint-react.xyz/docs/rules/no-prop-types
3134
+ */
3135
+ 'react/no-prop-types'?: Linter.RuleEntry<[]>
3126
3136
  /**
3127
3137
  * disallow usage of 'shouldComponentUpdate' in class component extends 'React.PureComponent'
3128
3138
  * @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
package/dist/index.d.ts CHANGED
@@ -3087,6 +3087,11 @@ interface RuleOptions {
3087
3087
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
3088
3088
  */
3089
3089
  'react/no-create-ref'?: Linter.RuleEntry<[]>
3090
+ /**
3091
+ * disallow the use of 'defaultProps' property in components
3092
+ * @see https://eslint-react.xyz/docs/rules/no-default-props
3093
+ */
3094
+ 'react/no-default-props'?: Linter.RuleEntry<[]>
3090
3095
  /**
3091
3096
  * disallow direct mutation of state
3092
3097
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
@@ -3123,6 +3128,11 @@ interface RuleOptions {
3123
3128
  * @see https://eslint-react.xyz/docs/rules/no-nested-components
3124
3129
  */
3125
3130
  'react/no-nested-components'?: Linter.RuleEntry<[]>
3131
+ /**
3132
+ * disallow the use of 'propTypes' property in components
3133
+ * @see https://eslint-react.xyz/docs/rules/no-prop-types
3134
+ */
3135
+ 'react/no-prop-types'?: Linter.RuleEntry<[]>
3126
3136
  /**
3127
3137
  * disallow usage of 'shouldComponentUpdate' in class component extends 'React.PureComponent'
3128
3138
  * @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
package/dist/index.js CHANGED
@@ -239,7 +239,7 @@ import { default as default3 } from "eslint-plugin-eslint-comments";
239
239
  import * as pluginImport from "eslint-plugin-import-x";
240
240
  import { default as default4 } from "eslint-plugin-n";
241
241
  import { default as default5 } from "eslint-plugin-unicorn";
242
- import { default as default6 } from "@antfu/eslint-plugin-unused-imports";
242
+ import { default as default6 } from "eslint-plugin-unused-imports";
243
243
  import { default as default7 } from "eslint-plugin-perfectionist";
244
244
 
245
245
  // src/configs/comments.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "2.23.1",
4
+ "version": "2.23.2",
5
5
  "description": "Anthony's ESLint config",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -81,7 +81,6 @@
81
81
  }
82
82
  },
83
83
  "dependencies": {
84
- "@antfu/eslint-plugin-unused-imports": "^4.0.0",
85
84
  "@antfu/install-pkg": "^0.3.3",
86
85
  "@clack/prompts": "^0.7.0",
87
86
  "@stylistic/eslint-plugin": "^2.6.0-beta.0",
@@ -103,6 +102,7 @@
103
102
  "eslint-plugin-regexp": "^2.6.0",
104
103
  "eslint-plugin-toml": "^0.11.1",
105
104
  "eslint-plugin-unicorn": "^54.0.0",
105
+ "eslint-plugin-unused-imports": "^4.0.1",
106
106
  "eslint-plugin-vitest": "^0.5.4",
107
107
  "eslint-plugin-vue": "^9.27.0",
108
108
  "eslint-plugin-yml": "^1.14.0",
@@ -119,7 +119,7 @@
119
119
  },
120
120
  "devDependencies": {
121
121
  "@antfu/ni": "^0.22.0",
122
- "@eslint-react/eslint-plugin": "^1.5.28",
122
+ "@eslint-react/eslint-plugin": "^1.5.30",
123
123
  "@eslint/config-inspector": "^0.5.2",
124
124
  "@prettier/plugin-xml": "^3.4.1",
125
125
  "@stylistic/eslint-plugin-migrate": "^2.3.0",
@@ -135,7 +135,7 @@
135
135
  "eslint-plugin-astro": "^1.2.3",
136
136
  "eslint-plugin-format": "^0.1.2",
137
137
  "eslint-plugin-react-hooks": "^4.6.2",
138
- "eslint-plugin-react-refresh": "^0.4.8",
138
+ "eslint-plugin-react-refresh": "^0.4.9",
139
139
  "eslint-plugin-solid": "^0.14.1",
140
140
  "eslint-plugin-svelte": "^2.43.0",
141
141
  "eslint-ts-patch": "9.5.0-0",
@@ -151,12 +151,12 @@
151
151
  "simple-git-hooks": "^2.11.1",
152
152
  "svelte": "^4.2.18",
153
153
  "svelte-eslint-parser": "^0.41.0",
154
- "tsup": "^8.2.0",
154
+ "tsup": "^8.2.2",
155
155
  "tsx": "^4.16.2",
156
156
  "typescript": "^5.5.3",
157
- "vitest": "^2.0.3",
157
+ "vitest": "^2.0.4",
158
158
  "vue": "^3.4.33",
159
- "@antfu/eslint-config": "2.23.1"
159
+ "@antfu/eslint-config": "2.23.2"
160
160
  },
161
161
  "resolutions": {
162
162
  "tsx": "~4.16.2"