Skip to content

Commit 049e26e

Browse files
[code-infra] Polish VS Code DX (#358)
1 parent 65364ca commit 049e26e

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

.editorconfig

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
# top-most EditorConfig file
44
root = true
55

6-
[*.md]
7-
trim_trailing_whitespace = false
8-
9-
[*.js]
10-
trim_trailing_whitespace = true
11-
126
# Unix-style newlines with a newline ending every file
137
[*]
8+
trim_trailing_whitespace = true
149
indent_style = space
1510
indent_size = 2
1611
end_of_line = lf

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
.idea
55
# IntelliJ IDEA module file
66
*.iml
7-
.vscode/*
8-
!.vscode/launch.json
9-
!.vscode/extensions.json
107
*.log
118
*.tsbuildinfo
129
.eslintcache

.vscode/extensions.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"recommendations": [
3+
// Formating
4+
"esbenp.prettier-vscode", // Prettier
5+
"editorconfig.editorconfig", // EditorConfig
6+
7+
// Highlighting
8+
"bradlc.vscode-tailwindcss", // Tailwind CSS
9+
"unifiedjs.vscode-mdx", // MDX
10+
"shardulm94.trailing-spaces", // Trailing spaces
11+
"styled-components.vscode-styled-components", // styled()
12+
13+
// Lint
14+
"dbaeumer.vscode-eslint", // ESLint
15+
"yoavbls.pretty-ts-errors", // TypeScript
16+
"stylelint.vscode-stylelint", // Stylelint
17+
"davidanson.vscode-markdownlint", // markdownlint
18+
"chrischinchilla.vale-vscode" // Vale
19+
]
20+
}

.vscode/settings.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"files.trimTrailingWhitespace": true,
4+
5+
// Root workspace only
6+
"typescript.surveys.enabled": false,
7+
"grammarly.selectors": [
8+
{
9+
"language": "markdown",
10+
"scheme": "file"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)