Skip to content

Commit

Permalink
Fjernet dependency til eslint-config-teamia-a11y.
Browse files Browse the repository at this point in the history
La til regel fra eslint-plugin-jsx-a11y i dette regelsettet.
  • Loading branch information
sstensby committed Oct 31, 2023
1 parent 891e176 commit 0f71332
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
22 changes: 21 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,32 @@ module.exports = {
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"next/core-web-vitals",
"@navikt/teamia-a11y",
"prettier", // Add "prettier" last. This will turn off eslint rules conflicting with prettier. This is not what will format our code.
],
rules: {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-empty-function": "off",
"jsx-a11y/anchor-ambiguous-text": [
2,
{
words: [
"her",
"klikk",
"klikk her",
"trykk",
"trykk her",
"lenken",
"linken",
"lenka",
"lenken her",
"linken her",
"lenka her",
"denne lenken",
"denne linken",
"denne lenka",
],
},
],
},
overrides: [
{
Expand Down
11 changes: 0 additions & 11 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"homepage": "https://github.com/navikt/eslint-config-teamia#readme",
"dependencies": {
"eslint": ">= 8",
"@navikt/eslint-config-teamia-a11y": ">= 1.0.2",
"eslint-config-next": ">= 13.1",
"next": ">= 13.5",
"eslint-plugin-react": ">= 7.32",
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -603,14 +603,6 @@
"@jridgewell/resolve-uri" "3.1.0"
"@jridgewell/sourcemap-codec" "1.4.14"

"@navikt/eslint-config-teamia-a11y@>= 1.0.2":
version "1.0.2"
resolved "https://npm.pkg.github.com/download/@navikt/eslint-config-teamia-a11y/1.0.2/56d4e6d15ca0e1ea3cc2d4a6ca33a6936f3eac10"
integrity sha512-B6m3DX6DVZTMG3GJyjxj+AOscEI9H4yqdka6lYIrYkcBxn1+seC49/Sh7kIQS5igUtLWl02IWMwLkVUbko4J3Q==
dependencies:
eslint ">= 8"
eslint-plugin-jsx-a11y ">= 6.7"

"@next/[email protected]":
version "13.5.4"
resolved "https://registry.npmjs.org/@next/env/-/env-13.5.4.tgz"
Expand Down

0 comments on commit 0f71332

Please sign in to comment.