From 9a46a2970afe0f1a891d1e8b6c95e1ef72389648 Mon Sep 17 00:00:00 2001 From: Louis Chan Date: Fri, 30 Aug 2024 20:16:55 +0800 Subject: [PATCH] Run the test as if the end-user does --- src/index.test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.test.js b/src/index.test.js index 0dda14b..e6bb7c5 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -10,10 +10,7 @@ async function lint(code) { code, formatter: "json", config: { - plugins: [join(__dirname, "./index.mjs")], - rules: { - "oursky/flex": "error", - }, + extends: [join(__dirname, "../config/oursky.mjs")], }, });