forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
94 lines (91 loc) · 2.23 KB
/
.eslintrc.json
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
90
91
92
93
94
{
"root": true,
"installedESLint": true,
"env": {
"browser": true,
"jquery": true
},
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script",
"ecmaFeatures": {
"globalReturn": false,
"impliedStrict": false,
"jsx": false
}
},
"plugins": [],
"extends": ["airbnb-es5"],
"globals": {
"API": false, // local: miq_api.js
"ManageIQ": false, // local: mig_global.js
"Promise": false, // bower: es6-shim
"_": false, // bower: lodash
"__": false, // local: i18n.js
"angular": false, // bower: angular
"c3": false, // bower: c3
"d3": false, // bower: d3
"i18n": false, // gem: gettext_i18n_rails_js
"moment": false, // bower: moment
"numeral": false, // bower: numeral
"sprintf": false // bower: sprintf
},
"rules": {
"indent": [ "error", 2, {
"SwitchCase": 1,
"VariableDeclarator": 1
}],
"consistent-return": 1,
"default-case": 1,
"vars-on-top": 0,
"no-var": 0,
"linebreak-style": [ "error", "unix" ],
"semi-spacing": ["error", {
"before": false,
"after": true
}],
"semi": [ "error", "always" ],
"comma-dangle": [ "warn", "always-multiline" ],
"space-unary-ops": [ "error", {
"words": true,
"nonwords": false,
"overrides": {
"!": true
}
}],
"no-unused-vars": [ "error", {
"args": "all",
"argsIgnorePattern": "^_",
"vars": "local",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_"
}],
"no-console": 1,
"no-alert": 2,
"no-debugger": 2,
"no-else-return": 1,
"no-undef": [ "warn", {
"typeof": true
}],
"eqeqeq": [ "error", "smart" ],
"quotes": [ "warn", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"func-names": 0,
"no-mixed-spaces-and-tabs": 2,
"camelcase": 1,
"curly": [ "warn", "all" ],
"space-before-function-paren": [ "error", "never" ],
"no-eq-null": 0,
"no-param-reassign": 1,
"no-fallthrough": [ "error", {
"commentPattern": "fall.*through|pass"
}],
"no-use-before-define": [ "error", {
"functions": false,
"classes": true
}],
"padded-blocks": [ "error", "never" ]
}
}