forked from mathandpencil/react-bootstrap-inputs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
80 lines (80 loc) · 2 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
{
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"node": true,
"jasmine": true,
"jest": true
},
"plugins": ["react"],
"globals": {
"Raven": true,
"$": true,
"MediaElementPlayer": true,
"moment": true,
"_": true,
"Stripe": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
},
"settings": {
"react": {
"pragma": "React",
"version": "15.0.2"
}
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
#"vars-on-top": 2,
"no-alert": 0,
"radix": [2, "always"],
"dot-location": [2, "property"],
"dot-notation": 2,
"indent": [2, 4, {"SwitchCase": 1}],
"no-self-compare": 2,
"no-redeclare": [2, { "builtinGlobals": true }],
"no-script-url": 2,
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"complexity": [2, 20],
"max-params": [2, 22],
#"max-len": [2, 120, 4, {"ignoreUrls": true}],
"max-depth": [2, 5],
"max-statements": [2, 35],
#"id-length": [2, {"min": 1, "max": 30, "properties": "never", "exceptions": ["x"]}],
"no-console": 0,
"no-unused-vars": 1,
"curly": 2,
"eqeqeq": 2,
"yoda": [2, "never"],
#"default-case": 2,
"camelcase": [2, {"properties": "never"}],
"keyword-spacing": 2,
"react/no-danger": 1,
"comma-spacing": [2, { "before": false, "after": true }]
}
}