Created
August 7, 2018 14:56
-
-
Save cbeard87/15d1f6b9c4cd1591b52f7fe106351309 to your computer and use it in GitHub Desktop.
ESLint Config for React Static Site Projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// npm install --save-dev eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react | |
{ | |
"root": true, | |
"extends": ["airbnb", "plugin:prettier/recommended"], | |
"settings": { | |
"import/core-modules": ["gatsby"] | |
}, | |
"globals": { | |
"graphql": true | |
}, | |
"rules": { | |
"jsx-a11y/anchor-is-valid": [ | |
"error", | |
{ | |
"components": ["Link"], | |
"specialLink": ["to"], | |
"aspects": ["noHref", "invalidHref", "preferButton"] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment