Enabled restricted require rule for core/server

- we're now so close to having the server not require anything from the frontend... so close
- having these last few problems be visible is motivating
- should be able to upgrade it to an error soooon!
This commit is contained in:
Hannah Wolfe 2021-10-21 20:37:08 +01:00
parent 2d0b5c872f
commit df14789861
No known key found for this signature in database
GPG Key ID: 9F8C7532D0A6BA55

View File

@ -60,7 +60,7 @@ module.exports = {
{
files: 'core/server/**',
rules: {
'ghost/node/no-restricted-require': ['off', [
'ghost/node/no-restricted-require': ['warn', [
{
// Throw an error for all requires of the frontend, _except_ the url service which will be moved soon
name: [path.resolve(__dirname, 'core/frontend/**')],