-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
47 lines (47 loc) · 1.02 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
{
"extends": [
"airbnb",
"prettier"
],
"plugins": [
"prettier"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": true,
}],
"comma-dangle": 0,
"brace-style": [0, "stroustrup"],
"no-console": 0,
"padded-blocks": 0,
"indent": [2, 2, {"SwitchCase": 1}],
"spaced-comment": 1,
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"import/prefer-default-export": "off",
"arrow-parens": ["error", "as-needed"],
"no-void": 2,
"max-len": ["error", {"code": 80, "ignoreUrls": true}],
},
"globals": {
"document": true,
"window": true
},
}