diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-07-23 20:08:52 -0600 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-07-25 07:45:23 +0000 |
commit | 8c131073730ec684145c2cc8ee8d6b39bbe9278d (patch) | |
tree | 1129d432ae88475909f0e5d38960395b75364902 /.vscode | |
parent | 6.4.1-nightly.11 [skip ci] (diff) | |
download | ferdium-app-8c131073730ec684145c2cc8ee8d6b39bbe9278d.tar.gz ferdium-app-8c131073730ec684145c2cc8ee8d6b39bbe9278d.tar.zst ferdium-app-8c131073730ec684145c2cc8ee8d6b39bbe9278d.zip |
chore: improve lint setup
- update eslint config
- merged eslint rules for JS and TS to avoid duplicates
- extended stricter lint ruleset from typescript-eslint
- corrected wrong setup for certain eslint rulesets
- opt in to reportUnusedDisableDirectives config option
- fix or disable a lot of lint issues throughout codebase
- remove trailingComma: all from prettier config which is default in prettier v3
- add volta configuration to package.json to autoload correct node and pnpm versions
- upgrade all eslint and prettier related dependencies to latest
- remove config options from settings.json which are default anyways
- remove config options from settings.json which are outdated/unknown
- set up prettier as default formatter in settings.json
Diffstat (limited to '.vscode')
-rw-r--r-- | .vscode/settings.json | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json index 815aa0cfb..ac616e418 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json | |||
@@ -8,8 +8,6 @@ | |||
8 | // "editor.fontFamily": "Fira Code", | 8 | // "editor.fontFamily": "Fira Code", |
9 | // "editor.fontLigatures": true, | 9 | // "editor.fontLigatures": true, |
10 | "editor.detectIndentation": false, | 10 | "editor.detectIndentation": false, |
11 | "editor.bracketPairColorization.enabled": true, | ||
12 | "editor.bracketPairColorization.independentColorPoolPerBracketType": true, | ||
13 | "editor.guides.bracketPairs": "active", | 11 | "editor.guides.bracketPairs": "active", |
14 | "editor.codeActionsOnSave": { | 12 | "editor.codeActionsOnSave": { |
15 | "source.fixAll": true, | 13 | "source.fixAll": true, |
@@ -19,21 +17,17 @@ | |||
19 | // "explorer.confirmDelete": false, | 17 | // "explorer.confirmDelete": false, |
20 | // "explorer.confirmDragAndDrop": false, | 18 | // "explorer.confirmDragAndDrop": false, |
21 | 19 | ||
22 | "eslint.enable": true, | ||
23 | "eslint.runtime": "node", | 20 | "eslint.runtime": "node", |
24 | "eslint.format.enable": true, | 21 | "eslint.format.enable": true, |
25 | "eslint.alwaysShowStatus": true, | 22 | "eslint.workingDirectories": [{ "mode": "auto" }], |
26 | "eslint.workingDirectories": [ { "mode": "auto" } ], | ||
27 | // "eslint.packageManager": "npm", | 23 | // "eslint.packageManager": "npm", |
28 | "eslint.validate": ["javascript","javascriptreact","typescript","typescriptreact"], | 24 | "eslint.validate": [ |
29 | "editor.defaultFormatter": "dbaeumer.vscode-eslint", | 25 | "javascript", |
30 | "[javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, | 26 | "javascriptreact", |
31 | "[javascriptreact]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, | 27 | "typescript", |
32 | "[typescript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, | 28 | "typescriptreact" |
33 | "[typescriptreact]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, | 29 | ], |
34 | "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, | 30 | "editor.defaultFormatter": "esbenp.prettier-vscode", |
35 | "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, | ||
36 | |||
37 | 31 | ||
38 | // "workbench.colorTheme": "Visual Studio Dark", | 32 | // "workbench.colorTheme": "Visual Studio Dark", |
39 | // "workbench.iconTheme": "material-icon-theme", | 33 | // "workbench.iconTheme": "material-icon-theme", |
@@ -42,15 +36,12 @@ | |||
42 | // "terminal.integrated.copyOnSelection": true, | 36 | // "terminal.integrated.copyOnSelection": true, |
43 | "terminal.integrated.defaultProfile.osx": "zsh", | 37 | "terminal.integrated.defaultProfile.osx": "zsh", |
44 | "terminal.integrated.cursorBlinking": true, | 38 | "terminal.integrated.cursorBlinking": true, |
45 | "terminal.integrated.cursorStyle": "block", | ||
46 | "terminal.integrated.shellIntegration.enabled":true, | ||
47 | 39 | ||
48 | "git.mergeEditor": false, | ||
49 | "git.enableSmartCommit": true, | 40 | "git.enableSmartCommit": true, |
50 | "diffEditor.ignoreTrimWhitespace": false, | 41 | "diffEditor.ignoreTrimWhitespace": false, |
51 | 42 | ||
52 | // "formatFiles.runOrganizeImports": true, | 43 | // "formatFiles.runOrganizeImports": true, |
53 | 44 | ||
54 | "javascript.preferences.importModuleSpecifier": "relative", | 45 | "javascript.preferences.importModuleSpecifier": "relative", |
55 | "typescript.preferences.importModuleSpecifier": "relative", | 46 | "typescript.preferences.importModuleSpecifier": "relative" |
56 | } | 47 | } |