mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
19 lines
526 B
JavaScript
19 lines
526 B
JavaScript
|
module.exports = {
|
||
|
env: {
|
||
|
es6: true,
|
||
|
node: true
|
||
|
},
|
||
|
plugins: ['ghost'],
|
||
|
extends: [
|
||
|
'plugin:ghost/node'
|
||
|
],
|
||
|
rules: {
|
||
|
// @TODO: remove this rule once it's turned into "error" in the base plugin
|
||
|
'no-shadow': 'error',
|
||
|
'no-var': 'error',
|
||
|
'one-var': [2, 'never'],
|
||
|
// @TODO: enable this for all components once it gets a bit quieter
|
||
|
'ghost/ghost-custom/no-cross-requires': ['warn', {shared: true, server: false, frontend: false}]
|
||
|
}
|
||
|
};
|