forked from mozilla/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
89 lines (89 loc) · 2.41 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
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
module.exports = {
env: {
'jquery': true,
'jasmine': true
},
extends: [
'@mozilla-protocol/eslint-config'
],
plugins: [
'jquery'
],
rules: {
'jquery/no-ajax': 1,
'jquery/no-ajax-events': 1,
'jquery/no-animate': 1,
'jquery/no-attr': 1,
'jquery/no-bind': 1,
'jquery/no-class': 1,
'jquery/no-clone': 1,
'jquery/no-closest': 1,
'jquery/no-css': 1,
'jquery/no-data': 1,
'jquery/no-deferred': 1,
'jquery/no-delegate': 1,
'jquery/no-each': 1,
'jquery/no-extend': 1,
'jquery/no-fade': 1,
'jquery/no-filter': 1,
'jquery/no-find': 1,
'jquery/no-global-eval': 1,
'jquery/no-grep': 1,
'jquery/no-has': 1,
'jquery/no-hide': 1,
'jquery/no-html': 1,
'jquery/no-in-array': 1,
'jquery/no-is-array': 1,
'jquery/no-is-function': 1,
'jquery/no-is': 1,
'jquery/no-load': 1,
'jquery/no-map': 1,
'jquery/no-merge': 1,
'jquery/no-param': 1,
'jquery/no-parent': 1,
'jquery/no-parents': 1,
'jquery/no-parse-html': 1,
'jquery/no-prop': 1,
'jquery/no-proxy': 1,
'jquery/no-ready': 1,
'jquery/no-serialize': 1,
'jquery/no-show': 1,
'jquery/no-size': 1,
'jquery/no-sizzle': 1,
'jquery/no-slide': 1,
'jquery/no-submit': 1,
'jquery/no-text': 1,
'jquery/no-toggle': 1,
'jquery/no-trigger': 1,
'jquery/no-trim': 1,
'jquery/no-val': 1,
'jquery/no-when': 1,
'jquery/no-wrap': 1
},
/**
* Provide a set of overrides for `gulpfile.js` in the root directory.
* Ideally we want to extend @mozilla-protocol/eslint-config/index-node,
* however ESLint does not currently allow extends inside glob overrides.
* (see https://github.com/eslint/eslint/issues/8813)
* */
overrides: [
{
files: ['gulpfile.js', 'tests/unit/karma.conf.js'],
env: {
'commonjs': true,
'node': true,
'es6': true
},
parserOptions: {
ecmaVersion: 8
},
rules: {
'strict': ['error', 'global'],
}
}
],
globals: {
'Mozilla': true,
'site': true
}
};