chore: 🤖 use simple-import-sort plugin

Use simple-import-sort plugin to enable auto-fix import sort
This commit is contained in:
Jin
2025-04-08 14:09:37 +02:00
parent 0eec8042ca
commit 08ae71e70f
3 changed files with 20 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import simpleImportSort from "eslint-plugin-simple-import-sort";
export default tseslint.config(
eslint.configs.recommended,
@@ -16,6 +17,11 @@ export default tseslint.config(
}
}
},
{
plugins: {
"simple-import-sort": simpleImportSort
}
},
{
rules: {
// add rule overrides here
@@ -28,7 +34,8 @@ export default tseslint.config(
varsIgnorePattern: "^_"
}
],
"sort-imports": [ "error", { ignoreCase: false } ]
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
}
},
{