mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
d2c6838133
- Using JS files to configure eslint gives us more power, e.g. being able to calculate paths - We already use JS in pretty much every other repo we own, including admin... it's just Ghost we don't, and it's time!
18 lines
526 B
JavaScript
18 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}]
|
|
}
|
|
};
|