mirror of
https://github.com/langgenius/dify.git
synced 2026-06-12 11:32:08 +08:00
chore: add eslint rules for a11y (#37353)
This commit is contained in:
parent
342c85d865
commit
f9911ab3ef
File diff suppressed because it is too large
Load Diff
1133
pnpm-lock.yaml
generated
1133
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -151,6 +151,7 @@ catalog:
|
||||
eslint-markdown: 0.9.1
|
||||
eslint-plugin-better-tailwindcss: 4.5.0
|
||||
eslint-plugin-hyoban: 0.14.1
|
||||
eslint-plugin-jsx-a11y: 6.10.2
|
||||
eslint-plugin-markdown-preferences: 0.41.1
|
||||
eslint-plugin-no-barrel-files: 1.3.1
|
||||
eslint-plugin-react-refresh: 0.5.2
|
||||
|
||||
@ -6,6 +6,7 @@ import pluginQuery from '@tanstack/eslint-plugin-query'
|
||||
import md from 'eslint-markdown'
|
||||
import tailwindcss from 'eslint-plugin-better-tailwindcss'
|
||||
import hyoban from 'eslint-plugin-hyoban'
|
||||
import jsxA11y from 'eslint-plugin-jsx-a11y'
|
||||
import markdownPreferences from 'eslint-plugin-markdown-preferences'
|
||||
import noBarrelFiles from 'eslint-plugin-no-barrel-files'
|
||||
import sonar from 'eslint-plugin-sonarjs'
|
||||
@ -56,6 +57,10 @@ export default antfu(
|
||||
'react/no-unnecessary-use-prefix': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: [GLOB_TSX],
|
||||
...jsxA11y.flatConfigs.recommended,
|
||||
},
|
||||
{
|
||||
plugins: {
|
||||
'no-barrel-files': noBarrelFiles,
|
||||
|
||||
@ -204,6 +204,7 @@
|
||||
"eslint-markdown": "catalog:",
|
||||
"eslint-plugin-better-tailwindcss": "catalog:",
|
||||
"eslint-plugin-hyoban": "catalog:",
|
||||
"eslint-plugin-jsx-a11y": "catalog:",
|
||||
"eslint-plugin-markdown-preferences": "catalog:",
|
||||
"eslint-plugin-no-barrel-files": "catalog:",
|
||||
"eslint-plugin-react-refresh": "catalog:",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user