Skip to content

Instantly share code, notes, and snippets.

@jpomykala
Last active November 16, 2017 19:25
Show Gist options
  • Save jpomykala/5818908b51ed28e742947f2fa32be88b to your computer and use it in GitHub Desktop.
Save jpomykala/5818908b51ed28e742947f2fa32be88b to your computer and use it in GitHub Desktop.
My eslint config
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": "eslint-config-airbnb",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"modules": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"class-methods-use-this": [
0,
{
"exceptMethods": []
}
],
"react/no-string-refs": 0,
"react/no-array-index-key": [
0,
{}
],
"react/no-find-dom-node": 0,
"react/prop-types": [
0,
{}
],
"react/forbid-prop-types": [
0,
{}
],
"import/prefer-default-export": [
0,
{}
],
"import/imports-first": [
"warn",
"DISABLE-absolute-first"
],
"no-console": 0,
"max-len": 0,
"no-return-assign": 0,
"no-unused-vars": [
1,
{}
],
"react/sort-comp": [
0,
{}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment