From e2d182519f5b99b5caafa2d701a66c06b05864ad Mon Sep 17 00:00:00 2001 From: Alina Sireneva Date: Sun, 12 Nov 2023 00:43:58 +0300 Subject: [PATCH] fix(eslint): better /dist import restriction this will also match `/dist-whatever`, but this doesn't really matter --- .eslintrc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 10e56c08..29e199f6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -219,7 +219,7 @@ module.exports = { 'error', { paths: ['buffer', 'crypto', 'fs', 'path', 'stream'], - patterns: ['@mtcute/*/dist/**'], + patterns: ['@mtcute/*/dist**'], }, ], }, @@ -238,7 +238,7 @@ module.exports = { 'no-restricted-imports': [ 'error', { - patterns: ['@mtcute/*/dist/**'], + patterns: ['@mtcute/*/dist**'], }, ], },