mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 05:09:54 +01:00
chore(eslint): integrate formatter config
This commit is contained in:
@@ -8,8 +8,26 @@ export default defineConfig(
|
||||
globalIgnores([
|
||||
".cache",
|
||||
"tmp",
|
||||
"**/dist"
|
||||
"**/dist",
|
||||
"**/out-tsc",
|
||||
"apps/edit-docs/demo/*",
|
||||
"docs/*",
|
||||
"apps/web-clipper/lib/*",
|
||||
// TODO: check if we want to format packages here as well - for now skipping it
|
||||
"packages/*",
|
||||
]),
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommended,
|
||||
// consider using rules below, once we have a full TS codebase and can be more strict
|
||||
// tseslint.configs.strictTypeChecked,
|
||||
// tseslint.configs.stylisticTypeChecked,
|
||||
// tseslint.configs.recommendedTypeChecked,
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user