-
Notifications
You must be signed in to change notification settings - Fork 188
/
Copy path.eslintrc
89 lines (89 loc) · 2.48 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
{
"ecmaFeatures": {
"jsx": true
},
"rules": {
// Stylistic rules
"quotes": [2, "single"],
"strict": [2, "never"],
"indent": [2, 2],
"brace-style": [2, "1tbs"],
"comma-style": [2, "last"],
"camelcase": 0, // using google-camelcase instead
"space-in-parens": [2, "never"],
"space-after-keywords": [2, "always"],
"space-before-function-parentheses": [0, {"anonymous": "always", "named": "never"}], // to be enabled
// Enforce off-by-defaults
"consistent-return": 2,
"consistent-this": [2, "self"],
"no-bitwise": 2,
"no-lonely-if": 2,
"no-nested-ternary": 2,
"no-void": 2,
"radix": 2,
"no-throw-literal": 2,
"valid-jsdoc": 0, // to be enabled
"wrap-iife": 2,
// Relax on-by-defaults
"dot-notation": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
// Plugins
"angular/ng_angularelement": 0,
"angular/ng_controller_name": 0,
"angular/ng_definedundefined": 0,
"angular/ng_directive_name": [2, "rg"],
"angular/ng_document_service": 0,
"angular/ng_empty_controller": 0,
"angular/ng_filter_name": 0,
"angular/ng_interval_service": 0,
"angular/ng_json_functions": 0,
"angular/ng_on_watch": 2,
"angular/ng_no_digest": 0,
"angular/ng_timeout_service": 0,
"angular/ng_typecheck_array": 0,
"angular/ng_typecheck_boolean": 0,
"angular/ng_typecheck_date": 0,
"angular/ng_typecheck_function": 0,
"angular/ng_typecheck_number": 0,
"angular/ng_typecheck_object": 0,
"angular/ng_typecheck_regexp": 0,
"angular/ng_typecheck_string": 0,
"angular/ng_window_service": 0,
"mocha/no-exclusive-tests": 2,
"filenames/filenames": [2, "^[a-z-_.]+$"],
"google-camelcase/google-camelcase": 2,
"one-variable-per-var/one-variable-per-var": 2,
"react/display-name": 0,
"react/jsx-quotes": [0, "double"],
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 0,
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": 2
},
"env": {
"browser": true,
"mocha": true
},
"globals": {
"expect": false,
"sinon": false,
"should": false,
"require": false,
"module": false
},
"plugins": [
"angular",
"filenames",
"google-camelcase",
"mocha",
"one-variable-per-var",
"react"
]
}