Updated restricted require eslint warnings [off]

- These rules are currently off, but we use them for measuring progress towards our refactoring goals
This commit is contained in:
Hannah Wolfe 2021-09-29 11:12:33 +01:00
parent 1b6253e140
commit b98b190097
No known key found for this signature in database
GPG Key ID: 9F8C7532D0A6BA55

View File

@ -44,9 +44,15 @@ module.exports = {
files: 'core/frontend/**',
rules: {
'ghost/node/no-restricted-require': ['off', [
// These are critical refactoring issues that we need to tackle ASAP
{
name: path.resolve(__dirname, 'core/server/**'),
message: 'Invalid require of core/server from core/frontend.'
},
// If we make the frontend entirely independent, these have to be solved too
{
name: path.resolve(__dirname, 'core/shared/**'),
message: 'Invalid require of core/shared from core/frontend.'
}
]]
}