mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Upgraded no-restricted-require in shared rule to error
- We should not require server or frontend files inside the shared libraries as these are intended to be required FROM the server and frontend components - Now that we've resolved the two outstanding warnings, make this an error so we can't regress on this easily
This commit is contained in:
parent
3b366dc55d
commit
576f1438ee
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ module.exports = {
|
||||||
{
|
{
|
||||||
files: 'core/shared/**',
|
files: 'core/shared/**',
|
||||||
rules: {
|
rules: {
|
||||||
'ghost/node/no-restricted-require': ['warn', [
|
'ghost/node/no-restricted-require': ['error', [
|
||||||
{
|
{
|
||||||
name: path.resolve(__dirname, 'core/server/**'),
|
name: path.resolve(__dirname, 'core/server/**'),
|
||||||
message: 'Invalid require of core/server from core/shared.'
|
message: 'Invalid require of core/server from core/shared.'
|
||||||
|
|
Loading…
Add table
Reference in a new issue