0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Reordered & commented eslint rule for ease of use

- These rules are currently off. We turn them on whilst testing atm to see progress.
- We will turn the core/server rule on sooner than the core/shared one.
- Commented the core/shared rule out and put it first so I don't have to keep adding/removing the comma
This commit is contained in:
Hannah Wolfe 2021-10-16 16:30:09 +01:00
parent 17e4d89a79
commit 81fdde05b9
No known key found for this signature in database
GPG key ID: 9F8C7532D0A6BA55

View file

@ -44,15 +44,15 @@ module.exports = {
files: 'core/frontend/**',
rules: {
'ghost/node/no-restricted-require': ['off', [
// 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.'
// },
// 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.'
}
]]
}