forked from WebMemex/webmemex-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (58 loc) · 1.56 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"env": {
"browser": true,
"webextensions": true
},
"extends": [
"plugin:import/recommended",
"plugin:import/react",
"plugin:promise/recommended",
"plugin:react/recommended",
"standard",
"standard-react"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
],
"moduleDirectory": [
"node_modules",
"."
]
}
}
},
"plugins": [
"standard",
"import",
"promise",
"react"
],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules":{
"comma-dangle": ["error", "always-multiline"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }],
"no-unused-vars": "warn",
"space-before-function-paren": "off",
"operator-linebreak": ["error", "before"],
"handle-callback-err": "off",
"import/no-mutable-exports": "error",
"import/unambiguous": "off",
"promise/avoid-new": "off",
"react/jsx-filename-extension": "error",
"react/prefer-stateless-function": "warn",
"react/sort-comp": "warn",
"react/jsx-max-props-per-line": [1, { "when": "multiline" }]
}
}