2016-03-02 17:39:10 +03:00
|
|
|
module.exports = {
|
2019-05-07 18:33:13 +03:00
|
|
|
env: {
|
|
|
|
'jquery': true,
|
|
|
|
'jasmine': true
|
2016-03-02 17:39:10 +03:00
|
|
|
},
|
2019-05-07 18:33:13 +03:00
|
|
|
extends: '@mozilla-protocol/eslint-config',
|
|
|
|
rules: {
|
|
|
|
'no-useless-escape': 1,
|
2016-03-03 13:59:26 +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: [
|
|
|
|
{
|
|
|
|
files: 'gulpfile.js',
|
|
|
|
env: {
|
|
|
|
'commonjs': true,
|
|
|
|
'node': true,
|
|
|
|
'es6': true
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 8
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'strict': ['error', 'global'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
globals: {
|
|
|
|
'Mozilla': true,
|
|
|
|
'site': true
|
2016-03-02 17:39:10 +03:00
|
|
|
}
|
|
|
|
};
|