fix(eslint): better /dist import restriction
this will also match `/dist-whatever`, but this doesn't really matter
This commit is contained in:
parent
964f47497c
commit
e2d182519f
1 changed files with 2 additions and 2 deletions
|
@ -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**'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue