forked from mozilla/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 loc) · 1.05 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
module.exports = {
env: {
'jquery': true,
'jasmine': true
},
extends: [
'@mozilla-protocol/eslint-config',
'plugin:no-jquery/recommended',
'plugin:no-jquery/all',
'plugin:json/recommended'
],
plugins: [
'no-jquery'
],
/**
* 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': 'writable',
'site': 'writable'
}
};