-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslintrc
79 lines (75 loc) · 1.88 KB
/
eslintrc
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"node": true,
"browser": true,
"es6": true,
"jest": true
},
"rules": {
"no-unused-vars": [
"warn",
{
"vars": "local",
"args": "none"
}
],
"arrow-parens": 0,
"arrow-spacing": 1,
"one-var": 0,
"one-var-declaration-per-line": 0,
"padded-blocks": 1,
"no-underscore-dangle": 0,
"prefer-const": 1,
"space-infix-ops": 1,
"no-console": "off",
"keyword-spacing": 1,
"object-curly-newline": 0,
"space-in-parens": 1,
"quotes": 0,
"arrow-body-style": 0,
"no-alert": 0,
"no-else-return": 1,
"no-multi-spaces": 1,
"function-paren-newline": 0,
"semi": "warn",
"comma-dangle": "warn",
"key-spacing": "warn",
"no-multiple-empty-lines": "off",
"max-len": "off",
"prefer-template": 1,
"spaced-comment": 1,
"space-before-blocks": 1,
"jsx-quotes": ["warn","prefer-double"],
"no-trailing-spaces": "warn",
"block-spacing": "warn",
"comma-spacing": "warn",
"indent": "warn",
"eol-last": "warn",
"object-curly-spacing": "warn",
"react/jsx-boolean-value": 0,
"react/jsx-closing-bracket-location": 1,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-indent": "warn",
"react/jsx-tag-spacing": 1,
"react/no-unescaped-entities": 1,
"react/no-unused-state": 1,
"react/prop-types": "off",
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/no-autofocus": 0,
"import/first": 1,
import/no-extraneous-dependencies: [2, { devDependencies: true }],
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
}
}