diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 446d6e3..0000000 --- a/.prettierrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }], - "plugins": ["prettier-plugin-svelte"], - "printWidth": 100, - "singleQuote": true, - "tabWidth": 2, - "trailingComma": "none", - "useTabs": false, - "svelteSortOrder": "options-scripts-markup-styles" -} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index ff8f82e..20b3ce9 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -19,6 +19,7 @@ "zignd.html-css-class-completion", "zixuanchen.vitest-explorer", "usernamehw.errorlens", - "github.vscode-github-actions" + "github.vscode-github-actions", + "yzhang.markdown-all-in-one" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index a4f0fe3..e1f2063 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -52,5 +52,8 @@ "MD033": { "allowed_elements": ["table", "td", "tr", "thead", "tbody", "img", "a"] } + }, + "[markdown]": { + "editor.defaultFormatter": "yzhang.markdown-all-in-one" } } diff --git a/prettier.config.cjs b/prettier.config.cjs new file mode 100644 index 0000000..9857ba2 --- /dev/null +++ b/prettier.config.cjs @@ -0,0 +1,10 @@ +module.exports = { + overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }], + plugins: ['prettier-plugin-svelte'], + printWidth: 100, + singleQuote: true, + tabWidth: 2, + trailingComma: 'none', + useTabs: false, + svelteSortOrder: 'options-scripts-markup-styles' +}; diff --git a/tsconfig.lint.json b/tsconfig.lint.json index dc86d10..c82036b 100644 --- a/tsconfig.lint.json +++ b/tsconfig.lint.json @@ -13,6 +13,8 @@ "assets.ts", "capacitor.config.ts", "playwright.config.ts", + "postcss.config.cjs", + "prettier.config.cjs", "pwa-configuration.js", "svelte.config.js" ]