Ghost/.eslintrc.js
Hannah Wolfe d2c6838133
Switched to using .js files for eslint
- 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!
2021-05-07 10:30:41 +01:00

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}]
}
};