@eslint-sets/eslint-config 6.0.0-beta.1 → 6.0.0-beta.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/README.md CHANGED
@@ -122,6 +122,8 @@ export default eslintConfig({
122
122
  astro: true,
123
123
 
124
124
  // Relax rules for scripts (default: true)
125
+ // Applies to: scripts/**, bin/**, cli/**, tasks/**, tools/**
126
+ // Allows: console, process.exit, process.env, shebang, require, etc.
125
127
  command: true,
126
128
  // Disable rules in config files (default: true)
127
129
  disables: true,
@@ -185,7 +187,6 @@ export default eslintConfig({
185
187
 
186
188
  // Or with options:
187
189
  react: {
188
- a11y: true, // Enable JSX accessibility rules
189
190
  reactCompiler: true, // React Compiler support
190
191
  },
191
192
 
@@ -301,7 +302,7 @@ export default eslintConfig({
301
302
  // Use Prettier with custom options
302
303
  export default eslintConfig({
303
304
  prettier: {
304
- printWidth: 120,
305
+ printWidth: 240,
305
306
  semi: false,
306
307
  singleQuote: true,
307
308
  tabWidth: 2,
@@ -326,9 +327,7 @@ export default eslintConfig({
326
327
 
327
328
  // React/JSX accessibility
328
329
  export default eslintConfig({
329
- react: {
330
- a11y: true,
331
- },
330
+ jsxA11y: true,
332
331
  })
333
332
 
334
333
  // Or standalone JSX a11y
@@ -374,7 +373,6 @@ import eslintConfig from '@eslint-sets/eslint-config'
374
373
 
375
374
  export default eslintConfig({
376
375
  react: {
377
- a11y: true,
378
376
  reactCompiler: true,
379
377
  },
380
378
  typescript: true,
@@ -580,8 +578,7 @@ The following packages are optional and will be used if installed:
580
578
 
581
579
  ### React
582
580
 
583
- - `eslint-plugin-react` - React support
584
- - `eslint-plugin-react-hooks` - React Hooks support
581
+ - `@eslint-react/eslint-plugin` - Modern React linting (includes core, dom, web-api, hooks-extra, naming-convention, debug)
585
582
  - `eslint-plugin-react-refresh` - React Refresh support
586
583
 
587
584
  ### Vue
@@ -834,10 +831,6 @@ Add to your `.vscode/settings.json`:
834
831
  }
835
832
  ```
836
833
 
837
- ## Comparison with @antfu/eslint-config
838
-
839
- See [COMPARISON.md](./COMPARISON.md) for a detailed comparison with `@antfu/eslint-config`.
840
-
841
834
  ## Changelog
842
835
 
843
836
  See [CHANGELOG.md](./CHANGELOG.md) for release history.
package/dist/cli/index.js CHANGED
@@ -210,8 +210,14 @@ function getDependencies(answers) {
210
210
  if (answers.formatter === "prettier") {
211
211
  deps.push("prettier");
212
212
  }
213
+ if (answers.frameworks.includes("react")) {
214
+ deps.push("@eslint-react/eslint-plugin");
215
+ deps.push("eslint-plugin-react-refresh");
216
+ }
213
217
  if (answers.frameworks.includes("nextjs")) {
214
218
  deps.push("@next/eslint-plugin-next");
219
+ deps.push("@eslint-react/eslint-plugin");
220
+ deps.push("eslint-plugin-react-refresh");
215
221
  }
216
222
  if (answers.frameworks.includes("astro")) {
217
223
  deps.push("eslint-plugin-astro");
@@ -186,8 +186,14 @@ function getDependencies(answers) {
186
186
  if (answers.formatter === "prettier") {
187
187
  deps.push("prettier");
188
188
  }
189
+ if (answers.frameworks.includes("react")) {
190
+ deps.push("@eslint-react/eslint-plugin");
191
+ deps.push("eslint-plugin-react-refresh");
192
+ }
189
193
  if (answers.frameworks.includes("nextjs")) {
190
194
  deps.push("@next/eslint-plugin-next");
195
+ deps.push("@eslint-react/eslint-plugin");
196
+ deps.push("eslint-plugin-react-refresh");
191
197
  }
192
198
  if (answers.frameworks.includes("astro")) {
193
199
  deps.push("eslint-plugin-astro");