mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
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:
parent
1b6253e140
commit
b98b190097
@ -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.'
|
||||
}
|
||||
]]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user