forked from noderaider/redux-idle-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
52 lines (52 loc) · 1.55 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
{
"env": {
"shared-node-browser": true,
"es6": true,
"mocha": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"blockBindings": true,
"defaultParams": true,
"forOf": true,
"generators": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"templateStrings": true,
"experimentalObjectRestSpead": true
}
},
"rules": {
"quotes": [2, "single"],
"strict": [2, "never"],
"semi": [2, "never"],
"brace-style": [2, "1tbs", {
"allowSingleLine": true
}],
"comma-style": ["error", "first"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": [2, "never"],
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
"object-curly-spacing": ["error", "always"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
"rest-spread-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "always"],
"no-mixed-spaces-and-tabs": "error",
"no-dupe-keys": 2,
"no-ex-assign": 2,
"no-extra-semi": 2,
"valid-typeof": 2,
"generator-star-spacing": [2, {"before": false, "after": true}],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2
},
"plugins": ["react"]
}