Skip to content

Commit

Permalink
Enable JSX a11y plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
osmestad committed Sep 19, 2023
1 parent 0c7b9e0 commit d95cfc5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
26 changes: 6 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-cypress": "^2.14.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-perfectionist": "^2.1.0",
"eslint-plugin-prettier": "5.0.0",
Expand All @@ -79,8 +80,5 @@
"typed-redux-saga": "1.4.0",
"typescript": "5.2.2",
"vitest": "^0.34.3"
},
"peerDependencies": {
"eslint-plugin-jsx-a11y": "6.6.1"
}
}
3 changes: 3 additions & 0 deletions rule-sets/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import tsPlugin from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import confusingBrowserGlobals from 'confusing-browser-globals';
import importPlugin from 'eslint-plugin-import';
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
import noOnlyTestsPlugin from 'eslint-plugin-no-only-tests';
import perfectionist from 'eslint-plugin-perfectionist';
import prettier from 'eslint-plugin-prettier';
Expand All @@ -28,6 +29,7 @@ export default {
'@typescript-eslint': tsPlugin,
import: importPlugin,
'internal-rules': internalRules,
'jsx-a11y': jsxA11yPlugin,
'no-only-tests': noOnlyTestsPlugin,
perfectionist,
prettier,
Expand All @@ -37,6 +39,7 @@ export default {
...tsPlugin.configs['stylistic-type-checked'].rules,
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
...importPlugin.configs.typescript.rules,
...jsxA11yPlugin.configs.recommended.rules,
'@jambit/typed-redux-saga/delegate-effects': 'error',
'@jambit/typed-redux-saga/use-typed-effects': ['error', 'macro'],
'@typescript-eslint/array-type': ['error', { default: 'generic' }],
Expand Down

0 comments on commit d95cfc5

Please sign in to comment.