forked from WorldBrain/Memex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
66 lines (66 loc) · 2.02 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
59
60
61
62
63
64
65
66
{
"env": {
"browser": true,
"webextensions": true
},
"extends": [
"plugin:jest/recommended",
"plugin:import/recommended",
"plugin:import/react",
"plugin:promise/recommended",
"standard",
"standard-react",
"prettier",
"prettier/react",
"prettier/standard"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"],
"moduleDirectory": ["node_modules", "."]
}
}
},
"plugins": ["prettier", "jest", "standard", "import", "promise", "react"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"quotes": "off",
"no-var": "error",
"prefer-const": "error",
"indent": "off",
"jest/no-disabled-tests": "off",
"camelcase": ["error", { "properties": "never" }],
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"jsx-quotes": "off",
"operator-linebreak": "off",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }],
"no-unused-vars": "warn",
"space-before-function-paren": "off",
"space-infix-ops": "off",
"no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
"handle-callback-err": "off",
"no-return-await": "off",
"import/no-mutable-exports": "error",
"import/unambiguous": "off",
"promise/avoid-new": "off",
"promise/param-names": "off",
"promise/always-return": "off",
"prefer-promise-reject-errors": "off",
"react/jsx-filename-extension": "off",
"react/prefer-stateless-function": [
"warn",
{ "ignorePureComponents": true }
],
"react/sort-comp": "warn",
"react/jsx-max-props-per-line": [1, { "when": "multiline" }]
}
}