Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: antfu/eslint-config
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.10.2
Choose a base ref
...
head repository: antfu/eslint-config
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.11.0
Choose a head ref
  • 8 commits
  • 11 files changed
  • 5 contributors

Commits on Mar 21, 2025

  1. chore: update lock

    antfu committed Mar 21, 2025
    Copy the full SHA
    1866b64 View commit details

Commits on Mar 22, 2025

  1. feat: support type augmentation for rule options (#695)

    nwidynski authored Mar 22, 2025
    Copy the full SHA
    898828d View commit details
  2. feat: add ts 5.8 flags for tsconfig sorting (#694)

    nwidynski authored Mar 22, 2025
    Copy the full SHA
    99470cc View commit details
  3. feat: sync the recommended rules of react plugins (#693)

    * feat: sync the recommended rules of react plugins
    
    * --amend
    Rel1cx authored Mar 22, 2025
    Copy the full SHA
    ea15e1d View commit details
  4. feat(vue-a11y): add vue accessibility plugin support (#686)

    oliver139 authored Mar 22, 2025
    Copy the full SHA
    6e483d5 View commit details
  5. chore: remove stub.d.ts since eslint-plugin-react-hooks is now a type…

    …script package (#689)
    VLTHellolin authored Mar 22, 2025
    Copy the full SHA
    843c666 View commit details
  6. chore: update deps

    antfu committed Mar 22, 2025
    Copy the full SHA
    74edad7 View commit details
  7. chore: release v4.11.0

    antfu committed Mar 22, 2025
    Copy the full SHA
    5af1d9b View commit details
Showing with 616 additions and 495 deletions.
  1. +21 −0 README.md
  2. +3 −1 eslint.config.ts
  3. +8 −3 package.json
  4. +461 −421 pnpm-lock.yaml
  5. +8 −7 pnpm-workspace.yaml
  6. +6 −6 src/cli/constants-generated.ts
  7. +60 −53 src/configs/react.ts
  8. +2 −0 src/configs/sort.ts
  9. +38 −1 src/configs/vue.ts
  10. +0 −2 src/stub.d.ts
  11. +9 −1 src/types.ts
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -540,6 +540,27 @@ export default antfu({

As it's in maintenance mode, we only accept bug fixes for Vue 2. It might also be removed in the future when `eslint-plugin-vue` drops support for Vue 2. We recommend upgrading to Vue 3 if possible.

#### Vue Accessibility

To enable Vue accessibility support, you need to explicitly turn it on:

```js
// eslint.config.js
import antfu from '@antfu/eslint-config'

export default antfu({
vue: {
a11y: true
},
})
```

Running `npx eslint` should prompt you to install the required dependencies, otherwise, you can install them manually:

```bash
npm i -D eslint-plugin-vuejs-accessibility
```

### Optional Configs

We provide some optional configs for specific use cases, that we don't include their dependencies by default.
4 changes: 3 additions & 1 deletion eslint.config.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,9 @@ import { antfu } from './src'

export default antfu(
{
vue: true,
vue: {
a11y: true,
},
react: true,
solid: true,
svelte: true,
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@antfu/eslint-config",
"type": "module",
"version": "4.10.2",
"version": "4.11.0",
"packageManager": "pnpm@10.6.5",
"description": "Anthony's ESLint config",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -50,10 +50,11 @@
"eslint": "^9.10.0",
"eslint-plugin-astro": "^1.2.0",
"eslint-plugin-format": ">=0.1.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.4",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"eslint-plugin-solid": "^0.14.3",
"eslint-plugin-svelte": ">=2.35.1",
"eslint-plugin-vuejs-accessibility": "^2.4.1",
"prettier-plugin-astro": "^0.14.0",
"prettier-plugin-slidev": "^1.0.5",
"svelte-eslint-parser": ">=0.37.0"
@@ -89,6 +90,9 @@
"eslint-plugin-svelte": {
"optional": true
},
"eslint-plugin-vuejs-accessibility": {
"optional": true
},
"prettier-plugin-astro": {
"optional": true
},
@@ -155,6 +159,7 @@
"eslint-plugin-react-refresh": "catalog:peer",
"eslint-plugin-solid": "catalog:peer",
"eslint-plugin-svelte": "catalog:peer",
"eslint-plugin-vuejs-accessibility": "catalog:peer",
"eslint-typegen": "catalog:dev",
"execa": "catalog:dev",
"jiti": "catalog:dev",
Loading