Skip to content

Commit

Permalink
Revert "refine flat config types (#204)"
Browse files Browse the repository at this point in the history
This reverts commit e2bf1f9.
  • Loading branch information
ota-meshi authored Apr 1, 2024
1 parent e2bf1f9 commit 08acacd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/configs/flat/base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ESLint, Linter } from "eslint";
import type { ESLint } from "eslint";
import * as parser from "toml-eslint-parser";
export default [
{
Expand All @@ -20,4 +20,4 @@ export default [
"spaced-comment": "off",
},
},
] satisfies Linter.FlatConfig[];
];
3 changes: 1 addition & 2 deletions src/configs/flat/recommended.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// IMPORTANT!
// This file has been automatically generated,
// in order to update its content execute "npm run update"
import type { Linter } from "eslint";
import base from "./base";
export default [
...base,
Expand All @@ -14,4 +13,4 @@ export default [
"toml/vue-custom-block/no-parsing-error": "error",
},
},
] satisfies Linter.FlatConfig[];
];
3 changes: 1 addition & 2 deletions src/configs/flat/standard.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// IMPORTANT!
// This file has been automatically generated,
// in order to update its content execute "npm run update"
import type { Linter } from "eslint";
import base from "./base";
export default [
...base,
Expand Down Expand Up @@ -29,4 +28,4 @@ export default [
"toml/vue-custom-block/no-parsing-error": "error",
},
},
] satisfies Linter.FlatConfig[];
];
3 changes: 1 addition & 2 deletions tools/update-rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ for (const rec of ["recommended", "standard"] as const) {
* This file has been automatically generated,
* in order to update its content execute "npm run update"
*/
import type { Linter } from "eslint";
import base from './base';
export default [
...base,
Expand All @@ -84,7 +83,7 @@ export default [
.join(",\n")}
},
}
] satisfies Linter.FlatConfig[]
]
`;

const filePath = path.resolve(__dirname, FLAT_RULESET_NAME[rec]);
Expand Down

0 comments on commit 08acacd

Please sign in to comment.