Skip to content

Instantly share code, notes, and snippets.

@danielpaz6
Last active January 8, 2021 12:56
Show Gist options
  • Save danielpaz6/8ceb0fe04bca73c90edb771799206f8b to your computer and use it in GitHub Desktop.
Save danielpaz6/8ceb0fe04bca73c90edb771799206f8b to your computer and use it in GitHub Desktop.
Airbnb linter + prettier
{
"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
}
"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"
}
@danielpaz6
Copy link
Author

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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment