chore: update eslint type (#4032)

* chore: update eslint type

* fix: test type error

---------

Co-authored-by: dong <196628497@qq.com>
This commit is contained in:
Donny Wang
2024-08-04 13:02:01 +08:00
committed by GitHub
parent ccaa32125a
commit 7994d664fd
4 changed files with 4 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ export async function jsonc(): Promise<Linter.Config[]> {
];
}
function sortPackageJson(): Linter.FlatConfig {
function sortPackageJson(): Linter.Config {
return {
files: ['**/package.json'],
rules: {
@@ -130,7 +130,7 @@ function sortPackageJson(): Linter.FlatConfig {
};
}
function sortTsconfig(): Linter.FlatConfig {
function sortTsconfig(): Linter.Config {
return {
files: [
'**/tsconfig.json',