Skip to content

Build your personal knowledge base with Trilium Notes

chore(eslint): configure @stylistic/quotes rule

Panagiotis Papadopoulos8dfdb48e8d7a
diff --git a/eslint.config.js b/eslint.config.js
index d54886b60d..5abb68103a 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -6,7 +6,7 @@ import stylistic from "@stylistic/eslint-plugin";
// Go to https://eslint.style/rules/default/${rule_without_prefix} to check the rule details
const stylisticRules = {
"@stylistic/indent": [ "error", 4 ],
- "@stylistic/quotes": [ "error", "double" ],
+ "@stylistic/quotes": [ "error", "double", { avoidEscape: true, allowTemplateLiterals: "always" } ],
"@stylistic/semi": [ "error", "always" ],
"@stylistic/quote-props": [ "error", "consistent-as-needed" ],
"@stylistic/max-len": [ "error", { code: 200 } ],