Last active
November 20, 2017 06:42
-
-
Save pocojang/13da05cc9c189a5db3845a02df574af4 to your computer and use it in GitHub Desktop.
custom eslintrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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