Skip to content

Build your personal knowledge base with Trilium Notes

chore(eslint): correctly pickup ts files as well

Panagiotis Papadopoulos7812c0574c1f
diff --git a/eslint.format.config.js b/eslint.format.config.js
index dce3194167..d5bfce3318 100644
--- a/eslint.format.config.js
+++ b/eslint.format.config.js
@@ -1,4 +1,5 @@
import stylistic from "@stylistic/eslint-plugin";
+import tsParser from "@typescript-eslint/parser";
// eslint config just for formatting rules
// potentially to be merged with the linting rules into one single config,
@@ -20,6 +21,10 @@ export const stylisticRules = {
export default [
{
+ files: [ "**/*.{js,ts,mjs,cjs}" ],
+ languageOptions: {
+ parser: tsParser
+ },
plugins: {
"@stylistic": stylistic
},