Skip to content

Commit

Permalink
Merge pull request #26 from neighborhoods/version-1.2.10
Browse files Browse the repository at this point in the history
Fix React Router Link element linting
  • Loading branch information
Megan authored Jun 4, 2019
2 parents c5b71d5 + 1a27909 commit 5a6fb98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-neighborhoods",
"version": "2.0.0",
"version": "2.0.1",
"description": "Neighborhoods.com Javascript Style Guide & Linting Rules",
"keywords": [
"nhds",
Expand Down
5 changes: 3 additions & 2 deletions js/react/rules/react-a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ module.exports = {
components: ['']
}],

// disallow href "#"
// disallow href "#" and enforce link best practices
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md
'jsx-a11y/anchor-is-valid': [2, {
components: ['Link', 'Anchor', 'a']
components: ['Link', 'Anchor', 'a'],
specialLink: ['to']
}],

// require HTML elements to have a "lang" prop
Expand Down

0 comments on commit 5a6fb98

Please sign in to comment.