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:
parent
17e4d89a79
commit
81fdde05b9
1 changed files with 5 additions and 5 deletions
10
.eslintrc.js
10
.eslintrc.js
|
@ -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.'
|
||||
}
|
||||
]]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue