Skip to content

Instantly share code, notes, and snippets.

@pocojang
Last active November 20, 2017 06:42
Show Gist options
  • Save pocojang/13da05cc9c189a5db3845a02df574af4 to your computer and use it in GitHub Desktop.
Save pocojang/13da05cc9c189a5db3845a02df574af4 to your computer and use it in GitHub Desktop.
custom eslintrc
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true,
},
},
"extends": "airbnb",
"globals": {
"window": true,
"document": true,
},
"rules": {
"no-var": 1,
"no-unused-vars": 1,
"no-underscore-dangle": 1,
"no-console": 0,
"camelcase": 1,
"class-methods-use-this": 1,
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"react/prop-types": 1,
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"comma-spacing": [
1,
{
"after": true,
},
],
"array-bracket-spacing": [
2,
"always",
{
"singleValue": true,
"objectsInArrays": true,
},
],
"arrow-body-style": [
2,
"as-needed",
],
"arrow-parens": [
1,
"always",
],
"arrow-spacing": [
1,
{
"before": true,
"after": true,
},
],
"react/prefer-stateless-function": 1,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment