bedrock/.eslintrc.js

55 строки
1.3 KiB
JavaScript
Исходник Обычный вид История

2016-03-02 17:39:10 +03:00
module.exports = {
env: {
2020-06-01 15:56:19 +03:00
'jasmine': true,
'commonjs': true
2016-03-02 17:39:10 +03:00
},
extends: [
'plugin:json/recommended'
],
/**
2020-06-01 15:56:19 +03:00
* A set of overrides for JavaScript assets where we support ES2015+.
* */
overrides: [
{
// 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',
'media/js/firefox/whatsnew/**/*.js',
'media/js/firefox/firstrun/**/*.js',
2020-06-01 15:56:19 +03:00
],
env: {
'es2017': true
2020-06-01 15:56:19 +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'
],
env: {
'node': true,
'es2017': true
},
rules: {
'strict': ['error', 'global'],
}
}
],
globals: {
'Mozilla': 'writable',
'Mzp': 'writable',
'site': 'writable'
2016-03-02 17:39:10 +03:00
}
};