Skip to content

Commit

Permalink
chore(a11y): add linting rules for ambiguous text
Browse files Browse the repository at this point in the history
  • Loading branch information
42tte committed Jul 29, 2024
1 parent 246ea90 commit a8e71b7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,31 @@ module.exports = {
plugins: ['jsx-a11y'],
rules: {
'jsx-a11y/anchor-is-valid': 'warn', // remove this error due to old next/link syntax
'jsx-a11y/anchor-ambiguous-text': [
'error',
{
words: [
'lenke',
'klikk',
'klikk her',
'les',
'les mer',
'les her',
'les mer her',
'se',
'se mer',
'se mer her',
'her',
'mer',
],
},
],
},
settings: {
'jsx-a11y': {
components: {
Link: 'a',
},
},
},
};

0 comments on commit a8e71b7

Please sign in to comment.