mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 08:34:13 -05:00
Add eslint rule to forbid vanilla imports in glitch (#2293)
Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
parent
470ded3687
commit
a0047184d7
12
.eslintrc.js
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/always-return': 'off',
|
||||||
'promise/catch-or-return': [
|
'promise/catch-or-return': [
|
||||||
'error',
|
'error',
|
||||||
|
Loading…
Reference in New Issue
Block a user