Skip to content

Instantly share code, notes, and snippets.

@seungha-kim
Forked from rakannimer/add-react-jest-airbnb-linting.sh
Last active February 1, 2018 02:38
Show Gist options
  • Save seungha-kim/2fdf7bc979fb516feedb474693c51d23 to your computer and use it in GitHub Desktop.
Save seungha-kim/2fdf7bc979fb516feedb474693c51d23 to your computer and use it in GitHub Desktop.
Adding react-airbnb styleguide linting to create-react-app
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jest": true
},
"extends": "airbnb",
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/prefer-default-export": "off",
"no-bitwise": "off",
"react/prop-types": "off",
"react/prefer-stateless-function": "off",
"linebreak-style": "off",
"import/no-extraneous-dependencies": "off"
}
}
npx install-peerdeps --dev eslint-config-airbnb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment