mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
chore: 🤖 use simple-import-sort plugin
Use simple-import-sort plugin to enable auto-fix import sort
This commit is contained in:
@@ -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"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user