Add eslint rule to forbid vanilla imports in glitch (#2293)

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
lolsob-rspec
Plastikmensch 2023-07-13 21:36:23 +02:00 committed by GitHub
parent 7714478818
commit 459405d705
1 changed files with 12 additions and 0 deletions

View File

@ -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/always-return': 'off',
'promise/catch-or-return': [ 'promise/catch-or-return': [
'error', 'error',