Skip to content

Commit

Permalink
fix: misspelled eslint.config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsManta committed Jun 22, 2024
1 parent 00c9cd7 commit 274e139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 4 additions & 4 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 274e139

Please sign in to comment.