From 581bf4cdff79bdccf269f8a374c4491441152c87 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 7 Apr 2023 22:56:10 +0200 Subject: [PATCH] Update coc eslint & prettier config --- .vim/coc-settings.json | 47 +++++++----------------------------------- 1 file changed, 7 insertions(+), 40 deletions(-) diff --git a/.vim/coc-settings.json b/.vim/coc-settings.json index d41196a..dba6b08 100644 --- a/.vim/coc-settings.json +++ b/.vim/coc-settings.json @@ -1,50 +1,17 @@ { - "prettier.requireConfig": false, - "eslint.probe": [ - "javascript", - "javascriptreact", - "typescript", - "typescriptreact", - "html", - "vue", - "markdown", - "svelte" - ], - "eslint.autoFixOnSave": true, - "eslint.format.enable": true, - "eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact", "typescript.tsx", "svelte"], + /** + * Linting & (Auto)formatting + */ + "prettier.semi": false, "prettier.tabWidth": 2, "prettier.singleQuote": true, "prettier.arrowParens": "avoid", "prettier.printWidth": 120, + "eslint.format.enable": true, "coc.preferences.formatOnType": true, - "coc.preferences.formatOnTypeFiletypes": [ - "javascript", - "typescript", - "javascriptreact", - "typescriptreact", - "typescript.tsx", - "html", - "json", - "Markdown", - "css", - "svelte", - "haskell" - ], - "coc.preferences.formatOnSaveFiletypes": [ - "javascript", - "typescript", - "javascriptreact", - "typescriptreact", - "typescript.tsx", - "html", - "json", - "Markdown", - "css", - "svelte", - "haskell" - ], + "coc.preferences.formatOnSave": true, + "languageserver": { // "racket": { // "command": "racket",