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

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
local
Plastikmensch 10 months ago committed by GitHub
parent 470ded3687
commit a0047184d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      .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',

Loading…
Cancel
Save