This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
63 lines (63 loc) · 1.73 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
{
"env": {
"node": true,
"browser": true,
"commonjs": true,
"es6": true,
"mocha": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true,
"blockBindings": true,
"forOf": true,
"experimentalObjectRestSpread": true
}
},
"globals": {
"i18n": true,
"React": true,
"ReactDOM": true,
"require": true,
"__ENV__": true,
"__DEV__": true,
"__VERSION__": true,
"__DEV_TOOLS__": true
},
"rules": {
"brace-style": [2, "stroustrup", { "allowSingleLine": false }],
"default-case": 2,
"indent": [2, "tab", {"SwitchCase": 1}],
"new-cap": 0, // for things like Immutable.Map()
"no-catch-shadow": 2,
"no-eq-null": 2,
"no-floating-decimal": 2,
"no-inline-comments": 0,
"no-nested-ternary": 2,
"no-param-reassign": 0,
"quote-props": [2, "as-needed"],
"no-self-compare": 2,
"no-shadow": 0,
"no-throw-literal": 2,
"no-undefined": 0,
"no-void": 2,
"quotes": [1, "double"],
"keyword-spacing": 2,
"wrap-iife": [2, "outside"],
"no-underscore-dangle": 0, // Allow leading underscores for method names - REASON: we use underscores to denote private methods
"dot-notation": 0,
"no-unused-vars": [2, { vars: "local" }],
"no-undef": 2
},
"plugins": [
"react",
"mocha",
"babel"
],
"extends": ["eslint:recommended", "plugin:react/recommended"]
}