.eslintrc.json
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"airbnb"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"arrow-parens": [
"warn",
"always"
],
"comma-dangle": [
"error",
"never"
],
"complexity": [
"warn",
10
],
"import/extensions": [
"warn",
"never"
],
"indent": [
"warn",
2,
{
"SwitchCase": 1,
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
}
}
],
"keyword-spacing": "warn",
"max-len": [
"error",
120,
2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-alert": "off",
"no-mixed-operators": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"vars": "local"
}
],
"one-var": "off",
"one-var-declaration-per-line": [
"warn",
"initializations"
],
"quotes": [
"warn",
"single"
],
"react/jsx-filename-extension": "off",
"react/jsx-no-bind": "off",
"semi": [
"error",
"always"
]
}
}