|
1 | 1 | { |
2 | 2 | // ================== Editor General Config ===================== |
3 | 3 |
|
| 4 | + // Defines Prettier as Default Formatter |
| 5 | + "editor.defaultFormatter": "esbenp.prettier-vscode", |
| 6 | + |
| 7 | + // Add a vertical line on the 80 characters limit |
| 8 | + "editor.rulers": [80], |
| 9 | + |
4 | 10 | // Define Tab Size = 2 Spaces (Half of the Default Size) |
5 | 11 | "editor.tabSize": 2, |
6 | 12 |
|
7 | 13 | // Disable Tab To Space Conversion |
8 | 14 | "editor.insertSpaces": false, |
9 | 15 |
|
| 16 | + // Disable Identation Detection, |
| 17 | + // Because All The Indentations MUST BE |
| 18 | + // Tabs With 2 Spaces (ノ °益°)ノ 彡 ┻━┻ |
| 19 | + // Setted to true because some |
| 20 | + // OS projects use 4 spaces ou 2 tabs, etc |
| 21 | + "editor.detectIndentation": true, |
| 22 | + |
10 | 23 | // Config Default End Of Line Formatting |
11 | 24 | "files.eol": "\n", |
12 | 25 |
|
|
18 | 31 | "source.fixAll.eslint": true |
19 | 32 | }, |
20 | 33 |
|
| 34 | + // Icons |
| 35 | + "workbench.iconTheme": "material-icon-theme", |
| 36 | + |
21 | 37 | // Color of Comments |
22 | 38 | "editor.tokenColorCustomizations": { |
23 | 39 | "comments": "#00a0eb" |
24 | 40 | }, |
25 | 41 |
|
26 | 42 | // Make VSCode understand this files as files of this languages |
27 | 43 | "files.associations": { |
| 44 | + ".sequelizerc": "javascript", |
28 | 45 | ".prettierignore": "ignore", |
29 | 46 | ".lintstagedrc": "json", |
30 | 47 | ".env.*": "env" |
31 | 48 | }, |
32 | | - "material-icon-theme.languages.associations": { |
33 | | - "env": "tune" |
34 | | - }, |
35 | 49 |
|
36 | 50 | // ======================= Formatters =========================== |
37 | 51 |
|
| 52 | + // Disable prettier on files that conclict with eslint |
38 | 53 | "[javascript]": { |
39 | | - "editor.defaultFormatter": "dbaeumer.vscode-eslint" |
| 54 | + "editor.defaultFormatter": null |
40 | 55 | }, |
41 | 56 | "[typescript]": { |
42 | | - "editor.defaultFormatter": "dbaeumer.vscode-eslint" |
| 57 | + "editor.defaultFormatter": null |
43 | 58 | }, |
44 | 59 | "[javascriptreact]": { |
45 | | - "editor.defaultFormatter": "dbaeumer.vscode-eslint" |
| 60 | + "editor.defaultFormatter": null |
46 | 61 | }, |
47 | 62 | "[typescriptreact]": { |
48 | | - "editor.defaultFormatter": "dbaeumer.vscode-eslint" |
| 63 | + "editor.defaultFormatter": null |
49 | 64 | }, |
50 | 65 |
|
51 | 66 | // ================ Languages General Config ==================== |
52 | 67 |
|
53 | | - // TypeScript |
54 | | - "typescript.updateImportsOnFileMove.enabled": "always", |
55 | | - "typescript.tsserver.log": "verbose", |
56 | | - "typescript.suggest.autoImports": true, |
57 | | - // JavaScript |
58 | | - "javascript.updateImportsOnFileMove.enabled": "always", |
59 | | - "javascript.suggest.autoImports": true, |
60 | | - |
61 | | - // =========== Plugins & Extensions General Config =============== |
62 | | - |
63 | | - // GitLens |
64 | | - "gitlens.codeLens.recentChange.enabled": false, |
65 | | - "gitlens.codeLens.authors.enabled": true, |
66 | | - "gitlens.codeLens.enabled": false, |
67 | | - |
68 | 68 | // Eslint |
69 | 69 | "eslint.packageManager": "yarn", |
70 | 70 | "eslint.validate": [ |
|
81 | 81 | "redux": "redux-actions", |
82 | 82 | "modules": "generator", |
83 | 83 | "entities": "class", |
84 | | - "migrations": "database" |
| 84 | + "migrations": "database", |
| 85 | + "@helpers": "utils" |
85 | 86 | }, |
86 | 87 | "material-icon-theme.files.associations": { |
87 | 88 | "*.controller.ts": "nest-controller", |
|
96 | 97 | "*.interceptor.ts": "nest-guard", |
97 | 98 | "*.resolver.ts": "graphql", |
98 | 99 | "*.input.ts": "graphql", |
99 | | - "*.return.ts": "graphql", |
100 | | - "docker-compose.hmg.yml": "docker", |
101 | | - ".env.hmg": "tune", |
102 | | - ".env.docker": "tune" |
| 100 | + "*.return.ts": "graphql" |
| 101 | + }, |
| 102 | + "material-icon-theme.languages.associations": { |
| 103 | + "env": "tune" |
103 | 104 | }, |
104 | 105 |
|
105 | 106 | // TODO Tree |
106 | 107 | "todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)", |
107 | 108 | "todo-tree.general.tags": ["BUG", "HACK", "FIXME", "TODO", "[ ]"], |
108 | | - "todo-tree.tree.showScanModeButton": false |
| 109 | + "todo-tree.tree.showScanModeButton": false, |
| 110 | + "cSpell.words": ["nestjs", "techmmunity"] |
109 | 111 | } |
0 commit comments