2016-03-02 17:39:10 +03:00
|
|
|
module.exports = {
|
2019-05-07 18:33:13 +03:00
|
|
|
env: {
|
|
|
|
'jasmine': true
|
2016-03-02 17:39:10 +03:00
|
|
|
},
|
2020-02-10 20:38:49 +03:00
|
|
|
extends: [
|
2020-06-23 15:31:02 +03:00
|
|
|
'@mozilla-protocol/eslint-config',
|
2020-05-22 19:29:36 +03:00
|
|
|
'plugin:json/recommended'
|
2020-02-10 20:38:49 +03:00
|
|
|
],
|
2019-05-07 18:33:13 +03:00
|
|
|
/**
|
|
|
|
* 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: [
|
|
|
|
{
|
2019-07-12 19:22:46 +03:00
|
|
|
files: ['gulpfile.js', 'tests/unit/karma.conf.js'],
|
2019-05-07 18:33:13 +03:00
|
|
|
env: {
|
|
|
|
'commonjs': true,
|
|
|
|
'node': true,
|
|
|
|
'es6': true
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 8
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'strict': ['error', 'global'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
globals: {
|
2020-06-22 15:06:19 +03:00
|
|
|
'Mozilla': 'writable',
|
|
|
|
'site': 'writable'
|
2016-03-02 17:39:10 +03:00
|
|
|
}
|
|
|
|
};
|