Skip to content

Commit da3995a

Browse files
authored
ci: add 'eslint-plugin-fast-import' (#1133)
1 parent 84dae90 commit da3995a

File tree

3 files changed

+373
-425
lines changed

3 files changed

+373
-425
lines changed

eslint.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import markdown from "@eslint/markdown";
44
import * as configs from "@local/configs/eslint";
55
import pluginLocal from "@local/eslint-plugin-local";
66
import gitIgnores from "eslint-config-flat-gitignore";
7+
import * as pluginFastImport from "eslint-plugin-fast-import";
78
import pluginVitest from "eslint-plugin-vitest";
89
import { globalIgnores } from "eslint/config";
910
import tseslint from "typescript-eslint";
@@ -56,6 +57,7 @@ export default tseslint.config(
5657
extends: [
5758
...tseslint.configs.strictTypeChecked,
5859
configs.typescript,
60+
pluginFastImport.recommended({ rootDir: dirname }),
5961
],
6062
files: GLOB_TS,
6163
languageOptions: {
@@ -75,6 +77,8 @@ export default tseslint.config(
7577
"local/avoid-multiline-template-expression": "warn",
7678
"local/no-shadow-underscore": "error",
7779
"local/prefer-eqeq-nullish-comparison": "warn",
80+
81+
"fast-import/no-unused-exports": "off",
7882
},
7983
},
8084
{

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@
6666
"@typescript-eslint/rule-tester": "^8.34.0",
6767
"@typescript-eslint/types": "^8.34.0",
6868
"ansis": "^4.1.0",
69-
"cspell": "^9.0.2",
69+
"cspell": "^9.1.1",
7070
"dedent": "^1.6.0",
7171
"dprint": "^0.50.0",
7272
"esbuild": "^0.25.5",
7373
"eslint": "^9.29.0",
7474
"eslint-config-flat-gitignore": "^2.1.0",
75+
"eslint-plugin-fast-import": "^1.1.2",
7576
"eslint-plugin-vitest": "^0.5.4",
7677
"jiti": "^2.4.2",
7778
"lefthook": "^1.11.13",

0 commit comments

Comments
 (0)