fix(eslint): better /dist import restriction

this will also match `/dist-whatever`, but this doesn't really matter
This commit is contained in:
alina 🌸 2023-11-12 00:43:58 +03:00
parent 964f47497c
commit e2d182519f
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -219,7 +219,7 @@ module.exports = {
'error', 'error',
{ {
paths: ['buffer', 'crypto', 'fs', 'path', 'stream'], paths: ['buffer', 'crypto', 'fs', 'path', 'stream'],
patterns: ['@mtcute/*/dist/**'], patterns: ['@mtcute/*/dist**'],
}, },
], ],
}, },
@ -238,7 +238,7 @@ module.exports = {
'no-restricted-imports': [ 'no-restricted-imports': [
'error', 'error',
{ {
patterns: ['@mtcute/*/dist/**'], patterns: ['@mtcute/*/dist**'],
}, },
], ],
}, },