Last active
May 30, 2020 20:44
-
-
Save jsonkao/1660440666a6e59e4476c28eedb5cc73 to your computer and use it in GitHub Desktop.
An opinionated ESLint configuration.
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
{ | |
"extends": "airbnb", | |
"rules": { | |
"import/no-named-as-default": 0, | |
"import/no-named-as-default-member": 0, | |
// allow files to have extension ".js" | |
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], | |
// allow ommitted parentheses in single-argument arrow functions | |
"arrow-parens": [2, "as-needed"], | |
// allow <Link> components to act as anchors | |
"jsx-a11y/anchor-is-valid": [ "error", { | |
"components": [ "Link" ], | |
"specialLink": [ "to" ], | |
"aspects": [ "noHref", "invalidHref", "preferButton" ] | |
}] | |
}, | |
// environments define allowed global variables | |
"env": { | |
"browser": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mhkeller: