diff --git a/.eslintrc.js b/.eslintrc.js index 62e862fc9c..60d2ad6169 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -261,6 +261,18 @@ module.exports = { }, ], + // Forbid imports from vanilla in glitch flavour + 'import/no-restricted-paths': [ + 'error', + { + zones: [{ + target: 'app/javascript/flavours/glitch/', + from: 'app/javascript/mastodon/', + message: 'Import from /flavours/glitch/ instead' + }] + } + ], + 'promise/always-return': 'off', 'promise/catch-or-return': [ 'error',