forked from apache/couchdb-fauxton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
94 lines (86 loc) · 2.17 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"root": true,
"parser": "@babel/eslint-parser",
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"semi": ["error", "always"],
"keyword-spacing": "error",
"space-infix-ops": "error",
"space-before-blocks": "error",
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-spacing": ["error", {"before": false, "after": true}],
"computed-property-spacing": ["error", "never"],
"eol-last": "error",
"indent": ["error", 2, { "SwitchCase": 1, "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }],
"no-case-declarations": "off",
"no-console": [1, { "allow": ["warn", "error", "info"] }],
"no-else-return": "error",
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-trailing-spaces": "error",
"semi-spacing": ["error", {"before": false, "after": true}],
"space-in-parens": ["error", "never"],
"space-unary-ops": "error",
"no-unused-vars": ["error", {"varsIgnorePattern": "ReactDOM"}],
"react/display-name": "off",
// disabling for now since there are too many components without PropTypes
"react/prop-types": "off"
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"node": true,
"jquery": true,
"amd": true,
"mocha": true,
"phantomjs": true,
"es6": true
},
"globals": {
"document": true,
"window": true,
"location": true,
"alert": true,
"console": true,
"clearInterval": true,
"setInterval": true,
"setTimeout": true,
"prompt": true,
"confirm": true,
"jQuery": true,
"Backbone": true,
"$": true,
"_": true,
"require": true,
"module": true,
"sinon": true,
"it": true,
"describe": true,
"beforeEach": true,
"afterEach": true,
"before": true,
"after": true,
"define": true,
"expect": true,
"prettyPrint": true,
"jest": true,
"fail": true
},
"settings": {
"react": {
"version": "detect"
}
}
}