@antfu/eslint-config 4.10.2 → 4.12.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/README.md +21 -0
- package/dist/cli.js +6 -6
- package/dist/index.d.ts +463 -289
- package/dist/index.js +101 -55
- package/package.json +31 -26
package/README.md
CHANGED
|
@@ -540,6 +540,27 @@ export default antfu({
|
|
|
540
540
|
|
|
541
541
|
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.
|
|
542
542
|
|
|
543
|
+
#### Vue Accessibility
|
|
544
|
+
|
|
545
|
+
To enable Vue accessibility support, you need to explicitly turn it on:
|
|
546
|
+
|
|
547
|
+
```js
|
|
548
|
+
// eslint.config.js
|
|
549
|
+
import antfu from '@antfu/eslint-config'
|
|
550
|
+
|
|
551
|
+
export default antfu({
|
|
552
|
+
vue: {
|
|
553
|
+
a11y: true
|
|
554
|
+
},
|
|
555
|
+
})
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
Running `npx eslint` should prompt you to install the required dependencies, otherwise, you can install them manually:
|
|
559
|
+
|
|
560
|
+
```bash
|
|
561
|
+
npm i -D eslint-plugin-vuejs-accessibility
|
|
562
|
+
```
|
|
563
|
+
|
|
543
564
|
### Optional Configs
|
|
544
565
|
|
|
545
566
|
We provide some optional configs for specific use cases, that we don't include their dependencies by default.
|
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import c5 from "ansis";
|
|
|
5
5
|
import { cac } from "cac";
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "4.
|
|
8
|
+
var version = "4.12.0";
|
|
9
9
|
|
|
10
10
|
// src/cli/run.ts
|
|
11
11
|
import fs3 from "node:fs";
|
|
@@ -224,19 +224,19 @@ import c3 from "ansis";
|
|
|
224
224
|
|
|
225
225
|
// src/cli/constants-generated.ts
|
|
226
226
|
var versionsMap = {
|
|
227
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
227
|
+
"@eslint-react/eslint-plugin": "^1.43.0",
|
|
228
228
|
"@unocss/eslint-plugin": "^66.0.0",
|
|
229
|
-
"astro-eslint-parser": "^1.2.
|
|
230
|
-
"eslint": "^9.
|
|
229
|
+
"astro-eslint-parser": "^1.2.2",
|
|
230
|
+
"eslint": "^9.24.0",
|
|
231
231
|
"eslint-plugin-astro": "^1.3.1",
|
|
232
232
|
"eslint-plugin-format": "^1.0.1",
|
|
233
233
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
234
234
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
235
235
|
"eslint-plugin-solid": "^0.14.5",
|
|
236
|
-
"eslint-plugin-svelte": "^3.
|
|
236
|
+
"eslint-plugin-svelte": "^3.5.1",
|
|
237
237
|
"prettier-plugin-astro": "^0.14.1",
|
|
238
238
|
"prettier-plugin-slidev": "^1.0.5",
|
|
239
|
-
"svelte-eslint-parser": "^1.1.
|
|
239
|
+
"svelte-eslint-parser": "^1.1.2"
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
// src/cli/stages/update-package-json.ts
|