Last active
January 8, 2021 12:56
-
-
Save danielpaz6/8ceb0fe04bca73c90edb771799206f8b to your computer and use it in GitHub Desktop.
Airbnb linter + prettier
This file contains 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
{ | |
"arrowParens": "avoid", | |
"bracketSpacing": true, | |
"jsxBracketSameLine": false, | |
"jsxSingleQuote": false, | |
"printWidth": 100, | |
"proseWrap": "always", | |
"quoteProps": "as-needed", | |
"semi": true, | |
"singleQuote": true, | |
"tabWidth": 2, | |
"trailingComma": "es5", | |
"useTabs": false | |
} |
This file contains 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
"devDependencies": { | |
"eslint-config-airbnb": "^18.2.0", | |
"eslint-plugin-jsx-a11y": "^6.3.1", | |
"eslint-plugin-react": "^7.21.4", | |
"eslint-plugin-react-hooks": "^4.0.0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: CRA already comes with all eslint plugin except
eslint-config-airbnb
.So once CRA app created, just need to
npm i -D eslint-config-airbnb
.Then, in order to active it, use
npx eslint --init
( without installing dependencies )