Skip to content

Commit f8b0e36

Browse files
committed
fix: fix ignore config
1 parent 8873893 commit f8b0e36

File tree

3 files changed

+86
-40
lines changed

3 files changed

+86
-40
lines changed

package-lock.json

Lines changed: 77 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,28 @@
5454
"eslint-plugin-tailwindcss": "3.18.0",
5555
"eslint-plugin-vitest": "0.5.4",
5656
"globals": "16.0.0",
57-
"local-pkg": "1.0.0",
57+
"local-pkg": "1.1.1",
5858
"typescript-eslint": "8.25.0"
5959
},
6060
"devDependencies": {
6161
"@eslint/eslintrc": "3.3.0",
62-
"@eslint/js": "9.21.0",
62+
"@eslint/js": "9.22.0",
6363
"@semantic-release/github": "11.0.1",
6464
"@semantic-release/npm": "12.0.1",
6565
"@semantic-release/release-notes-generator": "14.0.3",
6666
"@types/eslint": "9.6.1",
6767
"cspell": "8.17.5",
68-
"eslint": "9.21.0",
68+
"eslint": "9.22.0",
6969
"eslint-find-rules": "5.0.0",
7070
"husky": "9.1.7",
7171
"jest": "29.7.0",
72-
"lint-staged": "15.4.3",
72+
"lint-staged": "15.5.0",
7373
"np": "10.2.0",
7474
"npm-run-all": "4.1.5",
7575
"pinst": "3.0.0",
76-
"prettier": "3.5.2",
76+
"prettier": "3.5.3",
7777
"semantic-release": "24.2.3",
78-
"typescript": "5.7.3",
78+
"typescript": "5.8.2",
7979
"unbuild": "3.5.0"
8080
},
8181
"peerDependencies": {

src/modules/ignore.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import { globalIgnores } from 'eslint/config';
2+
13
import { ignoreGlobs } from '../utils/globs.mjs';
24
/**
35
* @param { import('../option').Options } options
46
* @return { import('eslint').Linter.Config }
57
*/
68
function ignores(options = {}) {
7-
return {
8-
ignores: [...ignoreGlobs, ...(options.ignores ?? [])],
9-
};
9+
return globalIgnores([...ignoreGlobs, ...options.ignores]);
1010
}
1111

1212
export default ignores;

0 commit comments

Comments
 (0)