forked from ManageIQ/manageiq-ui-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (51 loc) · 1.17 KB
/
.eslintrc.js
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
module.exports = {
env: {
amd: true,
browser: true,
es6: true,
jasmine: true,
jquery: true,
node: true,
protractor: true,
},
extends: [
'eslint:recommended',
'eslint-config-angular',
],
globals: {
Atomics: 'readonly',
N_: 'readonly',
SharedArrayBuffer: 'readonly',
__: 'readonly',
angular: 'readonly',
bard: 'readonly',
sinon: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'eslint-plugin-angular',
'eslint-plugin-import',
],
rules: {
// prevent eslint-plugin-angular warnings about behaviour change
'angular/service-name': ['error', {
oldBehavior: false,
}],
// disable a bunch of "use the angular version of this" warnings
'angular/angularelement': 'off',
'angular/definedundefined': 'off',
'angular/document-service': 'off',
'angular/json-functions': 'off',
'angular/log': 'off',
'angular/on-watch': 'off',
'angular/typecheck-array': 'off',
'angular/typecheck-object': 'off',
'angular/window-service': 'off',
// FIXME: 71 problems
'no-unused-vars': 'off',
}
};