fg-devkit 1.21.5 → 1.22.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.
@@ -7,6 +7,7 @@ export interface CreateBaseConfigOptions {
7
7
  extraNonTypeAwareFiles?: string[]
8
8
  enablePrettier?: boolean
9
9
  enableI18n?: boolean
10
+ enableA11y?: boolean
10
11
  i18nLocaleDir?: string
11
12
  additionalRules?: Linter.RulesRecord
12
13
  additionalPlugins?: NonNullable<Linter.Config['plugins']>
@@ -8,6 +8,7 @@ import pluginVitest from '@vitest/eslint-plugin'
8
8
  import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
9
9
  import pluginPrettier from 'eslint-plugin-prettier'
10
10
  import pluginVue from 'eslint-plugin-vue'
11
+ import pluginVueA11y from 'eslint-plugin-vuejs-accessibility'
11
12
  import { globalIgnores } from 'eslint/config'
12
13
  import vueParser from 'vue-eslint-parser'
13
14
 
@@ -19,6 +20,7 @@ export default function createBaseConfig(options = {}) {
19
20
  extraNonTypeAwareFiles = [],
20
21
  enablePrettier = false,
21
22
  enableI18n = false,
23
+ enableA11y = false,
22
24
  i18nLocaleDir = './src/lang/*.json',
23
25
  additionalRules = {},
24
26
  additionalPlugins = {},
@@ -120,6 +122,7 @@ export default function createBaseConfig(options = {}) {
120
122
  ...additionalIgnores,
121
123
  ]),
122
124
  ...pluginVue.configs['flat/essential'],
125
+ ...(enableA11y ? pluginVueA11y.configs['flat/recommended'] : []),
123
126
  {
124
127
  ...pluginVitest.configs.recommended,
125
128
  files: ['**/__tests__/**', '**/*.test.*', '**/*.spec.*'],
@@ -12,6 +12,7 @@ export default [
12
12
  extraNonTypeAwareFiles: ['playwright.config.ts', 'poeditor/**/*.ts'],
13
13
  enablePrettier: true,
14
14
  enableI18n: true,
15
+ enableA11y: true,
15
16
  i18nLocaleDir: './src/lang/*.json',
16
17
  }),
17
18
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fg-devkit",
3
- "version": "1.21.5",
3
+ "version": "1.22.0",
4
4
  "description": "Shared configs, scripts, and DX tooling for Vue / TypeScript frontend repos",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -128,6 +128,7 @@
128
128
  "eslint": "10.12.0",
129
129
  "eslint-plugin-prettier": "5.5.6",
130
130
  "eslint-plugin-vue": "10.11.1",
131
+ "eslint-plugin-vuejs-accessibility": "2.6.2",
131
132
  "fallow": "3.32.0",
132
133
  "git-cliff": "2.14.2",
133
134
  "lefthook": "2.1.17",
@@ -32,7 +32,7 @@
32
32
  "@intlify/unplugin-vue-i18n": "11.2.5",
33
33
  "@tanstack/vue-query-devtools": "6.3.1",
34
34
  "@types/node": "22.16.5",
35
- "fg-devkit": "1.21.5",
35
+ "fg-devkit": "1.22.0",
36
36
  "@vitejs/plugin-vue": "6.0.9",
37
37
  "tailwindcss": "4.3.3",
38
38
  "tsx": "4.23.15",