From c9b45645eafd3517703b30845342929e66932474 Mon Sep 17 00:00:00 2001 From: Tom Jenkinson Date: Sat, 6 May 2023 20:15:58 +0100 Subject: [PATCH 1/2] fix: do not allow importing dev deps from lib/bin --- lib/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/index.js b/lib/index.js index 4c3ee02..c391b80 100644 --- a/lib/index.js +++ b/lib/index.js @@ -28,6 +28,11 @@ module.exports = { 'no-global-assign': 'off', 'no-extend-native': 'off', }, + }, { + files: ['lib/**', 'bin/**], + rules: { + 'import/no-extraneous-dependencies': ['error', { devDependencies: false }], + }, }], rules: { 'accessor-pairs': 'error', From 9c317675b4a26c09994c4efa02323ab41bd7c414 Mon Sep 17 00:00:00 2001 From: Tom Jenkinson Date: Sat, 6 May 2023 20:18:43 +0100 Subject: [PATCH 2/2] fix: add missing comma --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index c391b80..162e621 100644 --- a/lib/index.js +++ b/lib/index.js @@ -29,7 +29,7 @@ module.exports = { 'no-extend-native': 'off', }, }, { - files: ['lib/**', 'bin/**], + files: ['lib/**', 'bin/**'], rules: { 'import/no-extraneous-dependencies': ['error', { devDependencies: false }], },