Skip to content

Commit

Permalink
add a11y linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gcor committed Dec 26, 2023
1 parent 8a7e291 commit 6679867
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
29 changes: 19 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"next/core-web-vitals",
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended"
],
"ignorePatterns": ["next.config.js", "scripts/**/*.*js"],
"parserOptions": {
Expand All @@ -12,18 +14,17 @@
"rules": {
"@next/next/no-img-element": "off",

"no-irregular-whitespace": "off",

// TODO: remove this rule
"@typescript-eslint/no-explicit-any": "off",
// TODO: remove this rule
"@typescript-eslint/ban-ts-comment": "off",
// TODO: remove this rule
"jsx-a11y/click-events-have-key-events": "off",
// TODO: remove this rule
"jsx-a11y/no-static-element-interactions": "off",

"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]
}
],
"import/no-restricted-imports": [
"no-irregular-whitespace": "off",
"no-restricted-imports": [
"error",
{
"patterns": [
Expand All @@ -34,6 +35,14 @@
]
}
],

"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]
}
],

"import/no-restricted-paths": [
"error",
{
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"classnames": "^2.3.2",
"ekb": "^1.1.5",
"framer-motion": "^10.16.16",
"hls.js": "^1.4.14",
"lodash": "^4.17.21",
"mapbox-gl": "npm:[email protected]",
"maplibre-gl": "^3.6.2",
Expand Down

0 comments on commit 6679867

Please sign in to comment.