Last active
March 5, 2019 15:56
-
-
Save maiquealmeida/9195425f03736c410dffdc01c86a4313 to your computer and use it in GitHub Desktop.
Configuração do ESLint e EditorConfig para uso com o CRA
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
{ | |
"parser": "babel-eslint", | |
"extends": "airbnb", | |
"env": { | |
"browser": true, | |
"jest": true | |
}, | |
"plugins": ["react", "jsx-a11y", "import"], | |
"rules": { | |
"react/jsx-filename-extension": [ | |
"error", | |
{ | |
"extensions": [".js", ".jsx"] | |
} | |
], | |
"global-require": "off", | |
"import/prefer-default-export": "off", | |
"react/jsx-one-expression-per-line": "off" | |
} | |
} |
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
yarn add eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react -D | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment