diff --git a/index.js b/index.js index 12ad52c..c64c9c9 100644 --- a/index.js +++ b/index.js @@ -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: [ { diff --git a/package-lock.json b/package-lock.json index 2b3391b..26aab39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "1.0.6", "license": "MIT", "dependencies": { - "@navikt/eslint-config-teamia-a11y": ">= 1.0.2", "@next/eslint-plugin-next": ">= 13.1", "@typescript-eslint/eslint-plugin": ">= 5.59", "@typescript-eslint/parser": ">= 5.59", @@ -1170,16 +1169,6 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, - "node_modules/@navikt/eslint-config-teamia-a11y": { - "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==", - "license": "MIT", - "dependencies": { - "eslint": ">= 8", - "eslint-plugin-jsx-a11y": ">= 6.7" - } - }, "node_modules/@next/env": { "version": "13.5.4", "resolved": "https://registry.npmjs.org/@next/env/-/env-13.5.4.tgz", diff --git a/package.json b/package.json index be826e2..57f7802 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index 363db68..604324c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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/env@13.5.4": version "13.5.4" resolved "https://registry.npmjs.org/@next/env/-/env-13.5.4.tgz"