mirror of
https://github.com/langgenius/dify.git
synced 2026-10-29 18:07:39 +08:00
chore: add eslint rules for a11y (#37353)
This commit is contained in:
@@ -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:",
|
||||
|
||||
Reference in New Issue
Block a user