-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
36 lines (36 loc) · 1.2 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"jest": true,
"jquery": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"extends": ["standard", "plugin:react/recommended"],
"rules": {
"indent": ["error", 2],
"no-multi-spaces": ["error", { "exceptions": { "VariableDeclarator": true, "ImportDeclaration": true } }],
"no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
"key-spacing": ["error", { "mode": "minimum" }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"space-infix-ops": ["error", {"int32Hint": false}],
"space-before-blocks": "error",
"keyword-spacing": "error",
"block-spacing": "error",
"space-in-parens": "error",
"eqeqeq": "error",
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
"semi": ["error", "always"],
"quotes": "off",
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"no-extra-semi": "error",
"react/no-deprecated": "off",
"prefer-const": "error"
}
}