Skip to content

Instantly share code, notes, and snippets.

@wbroek
Created April 30, 2018 13:27
Show Gist options
  • Save wbroek/55ffb6e20637a1be1d55a7a46229d0b5 to your computer and use it in GitHub Desktop.
Save wbroek/55ffb6e20637a1be1d55a7a46229d0b5 to your computer and use it in GitHub Desktop.
ESLint config file
{
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"no-use-before-define": [
"error",
{
"variables": false
}
],
"react/prefer-stateless-function": [
0
],
"react/forbid-prop-types": [
1,
{
"forbid": [
"any",
"array"
]
}
]
},
"env": {
"es6": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment