@@ -3,23 +3,26 @@ import globals from "globals";
33import reactHooks from "eslint-plugin-react-hooks" ;
44import reactRefresh from "eslint-plugin-react-refresh" ;
55import tseslint from "typescript-eslint" ;
6+ import jsxA11y from "eslint-plugin-jsx-a11y" ;
67
78export default tseslint . config (
89 { ignores : [ "dist" ] } ,
910 {
1011 extends : [ js . configs . recommended , ...tseslint . configs . recommended ] ,
1112 files : [ "**/*.{ts,tsx}" ] ,
12- languageOptions : {
13- ecmaVersion : 2020 ,
14- globals : globals . browser ,
15- } ,
13+ languageOptions : { ecmaVersion : 2020 , globals : globals . browser } ,
1614 plugins : {
1715 "react-hooks" : reactHooks ,
1816 "react-refresh" : reactRefresh ,
17+ "jsx-a11y" : jsxA11y ,
1918 } ,
2019 rules : {
2120 ...reactHooks . configs . recommended . rules ,
22- "react-refresh/only-export-components" : [ "warn" , { allowConstantExport : true } ] ,
21+ ...jsxA11y . configs . recommended . rules ,
22+ "react-refresh/only-export-components" : [
23+ "warn" ,
24+ { allowConstantExport : true } ,
25+ ] ,
2326 "@typescript-eslint/no-unused-vars" : [
2427 "error" ,
2528 {
@@ -33,5 +36,5 @@ export default tseslint.config(
3336 } ,
3437 ] ,
3538 } ,
36- }
39+ } ,
3740) ;
0 commit comments