bedrock/.eslintrc.js

36 строки
939 B
JavaScript
Исходник Обычный вид История

2016-03-02 17:39:10 +03:00
module.exports = {
env: {
'jasmine': true
2016-03-02 17:39:10 +03:00
},
extends: [
'@mozilla-protocol/eslint-config',
'plugin:json/recommended'
],
/**
* 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'
2016-03-02 17:39:10 +03:00
}
};