@danielwaltz/eslint-config 2.1.0 → 2.2.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/CHANGELOG.md CHANGED
@@ -1,6 +1,35 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v2.2.1
5
+
6
+ [compare changes](https://github.com/danielwaltz/eslint-config/compare/v2.2.0...v2.2.1)
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - Configure vue accessibility rules to check for nuxt components ([22afe2b](https://github.com/danielwaltz/eslint-config/commit/22afe2b))
11
+
12
+ ### ❤️ Contributors
13
+
14
+ - Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
15
+
16
+ ## v2.2.0
17
+
18
+ [compare changes](https://github.com/danielwaltz/eslint-config/compare/v2.1.0...v2.2.0)
19
+
20
+ ### 🚀 Enhancements
21
+
22
+ - Update vue on handler style ([7924eb2](https://github.com/danielwaltz/eslint-config/commit/7924eb2))
23
+ - Add vue accessibility config ([965489e](https://github.com/danielwaltz/eslint-config/commit/965489e))
24
+
25
+ ### 🏡 Chore
26
+
27
+ - Update deps ([4169d8e](https://github.com/danielwaltz/eslint-config/commit/4169d8e))
28
+
29
+ ### ❤️ Contributors
30
+
31
+ - Daniel Waltz ([@danielwaltz](https://github.com/danielwaltz))
32
+
4
33
  ## v2.1.0
5
34
 
6
35
  [compare changes](https://github.com/danielwaltz/eslint-config/compare/v2.0.1...v2.1.0)
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { sxzz, hasVue } from '@sxzz/eslint-config';
2
2
  export * from '@sxzz/eslint-config';
3
3
  import erasableSyntaxOnlyPlugin from 'eslint-plugin-erasable-syntax-only';
4
+ import vueA11yPlugin from 'eslint-plugin-vuejs-accessibility';
4
5
  import { composer } from 'eslint-flat-config-utils';
5
6
  export { defineFlatConfig } from 'eslint-flat-config-utils';
6
7
 
@@ -32,10 +33,12 @@ function unicornConfigs() {
32
33
 
33
34
  function vueConfigs() {
34
35
  return [
36
+ ...vueA11yPlugin.configs["flat/recommended"],
35
37
  {
36
38
  name: "danielwaltz/vue",
37
39
  files: ["**/*.vue"],
38
40
  rules: {
41
+ // Base
39
42
  "vue/block-lang": ["error", { script: { lang: ["ts", "tsx"] } }],
40
43
  "vue/block-order": [
41
44
  "error",
@@ -108,7 +111,16 @@ function vueConfigs() {
108
111
  { sameNameShorthand: "always" }
109
112
  ],
110
113
  "vue/v-for-delimiter-style": "error",
111
- "vue/v-on-handler-style": "error"
114
+ "vue/v-on-handler-style": ["error", ["method", "inline"]],
115
+ // Accessibility
116
+ "vuejs-accessibility/alt-text": [
117
+ "error",
118
+ { img: ["AppImage", "NuxtImg"] }
119
+ ],
120
+ "vuejs-accessibility/anchor-has-content": [
121
+ "error",
122
+ { components: ["AppLink", "NuxtLink"] }
123
+ ]
112
124
  }
113
125
  }
114
126
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielwaltz/eslint-config",
3
- "version": "2.1.0",
4
- "packageManager": "pnpm@10.6.5",
3
+ "version": "2.2.1",
4
+ "packageManager": "pnpm@10.8.0",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "eslint-config"
@@ -40,15 +40,16 @@
40
40
  "prettier": ">=3"
41
41
  },
42
42
  "dependencies": {
43
- "@sxzz/eslint-config": "^6.1.0",
43
+ "@sxzz/eslint-config": "^6.1.1",
44
44
  "eslint-flat-config-utils": "^2.0.1",
45
- "eslint-plugin-erasable-syntax-only": "^0.3.0"
45
+ "eslint-plugin-erasable-syntax-only": "^0.3.1",
46
+ "eslint-plugin-vuejs-accessibility": "^2.4.1"
46
47
  },
47
48
  "devDependencies": {
48
- "@tsconfig/node22": "^22.0.0",
49
- "@types/node": "~22.13.11",
49
+ "@tsconfig/node22": "^22.0.1",
50
+ "@types/node": "~22.14.0",
50
51
  "changelogen": "^0.6.1",
51
- "typescript": "~5.8.2",
52
+ "typescript": "~5.8.3",
52
53
  "unbuild": "^3.5.0"
53
54
  }
54
55
  }