2016-03-02 17:39:10 +03:00
|
|
|
module.exports = {
|
2019-05-07 18:33:13 +03:00
|
|
|
env: {
|
2020-06-01 15:56:19 +03:00
|
|
|
'jasmine': true,
|
|
|
|
'commonjs': true
|
2016-03-02 17:39:10 +03:00
|
|
|
},
|
2020-02-10 20:38:49 +03:00
|
|
|
extends: [
|
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
|
|
|
/**
|
2020-06-01 15:56:19 +03:00
|
|
|
* A set of overrides for JavaScript assets where we support ES2015+.
|
2019-05-07 18:33:13 +03:00
|
|
|
* */
|
|
|
|
overrides: [
|
|
|
|
{
|
2021-09-17 16:03:25 +03:00
|
|
|
// JS files transpiled by Babel
|
|
|
|
files: [
|
|
|
|
'media/js/**/*.es6.js',
|
|
|
|
],
|
|
|
|
env: {
|
|
|
|
'es2017': true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// JS files served only to Firefox browsers.
|
2020-06-01 15:56:19 +03:00
|
|
|
files: [
|
|
|
|
'media/js/firefox/welcome/**/*.js',
|
2021-09-17 16:03:25 +03:00
|
|
|
'media/js/firefox/whatsnew/**/*.js',
|
|
|
|
'media/js/firefox/firstrun/**/*.js',
|
2020-06-01 15:56:19 +03:00
|
|
|
],
|
|
|
|
env: {
|
2021-09-17 16:03:25 +03:00
|
|
|
'es2017': true
|
2020-06-01 15:56:19 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2021-09-17 16:03:25 +03:00
|
|
|
// JS build files for local dev.
|
2020-06-01 15:56:19 +03:00
|
|
|
files: [
|
|
|
|
'webpack.config.js',
|
|
|
|
'webpack.static.config.js',
|
|
|
|
'tests/unit/karma.conf.js'
|
|
|
|
],
|
2019-05-07 18:33:13 +03:00
|
|
|
env: {
|
|
|
|
'node': true,
|
2021-09-17 16:03:25 +03:00
|
|
|
'es2017': true
|
2019-05-07 18:33:13 +03:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'strict': ['error', 'global'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
globals: {
|
2020-06-22 15:06:19 +03:00
|
|
|
'Mozilla': 'writable',
|
2021-09-17 16:03:25 +03:00
|
|
|
'Mzp': 'writable',
|
2020-06-22 15:06:19 +03:00
|
|
|
'site': 'writable'
|
2016-03-02 17:39:10 +03:00
|
|
|
}
|
|
|
|
};
|