From 274e13903c7da9618a1a77c29e9e252734a22ea0 Mon Sep 17 00:00:00 2001 From: "Anantachai Saothong (Manta)" Date: Sat, 22 Jun 2024 17:49:34 +0700 Subject: [PATCH] fix: misspelled eslint.config file --- index.js | 2 +- index.test.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 8f385b3..42380f3 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,7 @@ function findRulePath(workPath) { const item = fs.readdirSync(workPath, { withFileTypes: true }) .find(item => item.isFile() && ( - /^\.eslint.local\.c?js$/.test(item.name) || + /^\eslint.local\.c?js$/.test(item.name) || /^\.eslint-plugin-local\.c?js$/.test(item.name) ) || item.isDirectory() && item.name === '.eslint-plugin-local' diff --git a/index.test.js b/index.test.js index 8ba1ad9..e387497 100644 --- a/index.test.js +++ b/index.test.js @@ -8,8 +8,8 @@ afterEach(() => { jest.resetModules() for (const item of [ - '.eslint.local.js', - '.eslint.local.cjs', + 'eslint.local.js', + 'eslint.local.cjs', '.eslint-plugin-local.js', '.eslint-plugin-local.cjs', '.eslint-plugin-local', @@ -48,8 +48,8 @@ it('exports meta', () => { }) it.each([ - ['.eslint.local.js'], - ['.eslint.local.cjs'], + ['eslint.local.js'], + ['eslint.local.cjs'], ['.eslint-plugin-local.js'], ['.eslint-plugin-local.cjs'], ])('exports "%s"', (item) => {