forked from mytardis/mytardis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
67 lines (67 loc) · 1.85 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
{
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"camelcase": [1, {"properties": "always"}],
"comma-spacing": [2, {"before": false, "after": true}],
"complexity": ["error", { "max": 5 }],
"curly": [2, "all"],
"dot-notation": [2, {"allowKeywords": true}],
"eqeqeq": [1],
"indent": [2, 4, { "SwitchCase": 1 }],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"new-cap": [0, {"newIsCap": true, "capIsNew": true}],
"no-alert": [0],
"no-eval": [2],
"no-extend-native": [2, {"exceptions": ["Date", "String"]}],
"no-multi-spaces": [2],
"no-octal-escape": [2],
"no-underscore-dangle": [2],
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-script-url": [2],
"no-shadow": [2, {"hoist": "functions"}],
"no-use-before-define": [1],
"object-shorthand": 0,
"quotes": [1, "double", { "allowTemplateLiterals": true }],
"linebreak-style": 0,
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"space-infix-ops": [2, {"int32Hint": false}],
"strict": 2,
"wrap-iife": [1]
},
"env": {
"browser": true,
"commonjs": true,
"jquery": true
},
"overrides": [
{
"files": [
"assets/js/tardis_portal/facility_view/*.js"
],
"globals": {
"angular": true
},
"rules": {
"quotes": [0, "double"],
"indent": 0,
"complexity": [
"error",
{
"max": 7
}
]
}
}
],
"globals": {
}
}