VSCode - prettier settings
-
/.vscode/settings.json
{ "editor.formatOnSave": false, "prettier.singleQuote": true, "prettier.jsxSingleQuote": true, "prettier.tabWidth": 2, "prettier.useTabs": true, "editor.tabSize": 2, "prettier.singleAttributePerLine": false, "prettier.printWidth": 10000, "printWidth": 1000, "prettier.semi": false, "svelte.plugin.svelte.compilerWarnings": { "a11y-click-events-have-key-events": "ignore", "a11y-no-static-element-interactions": "ignore" }, "explorer.compactFolders": false }
Add prettier ignore on the file
JS
// prettier-ignore
HTML
<!-- prettier-ignore -->
CSS
/* prettier-ignore */