diff --git a/.editorconfig b/.editorconfig index 1937215c9fa..94027c57cac 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,14 +3,9 @@ # top-most EditorConfig file root = true -[*.md] -trim_trailing_whitespace = false - -[*.js] -trim_trailing_whitespace = true - # Unix-style newlines with a newline ending every file [*] +trim_trailing_whitespace = true indent_style = space indent_size = 2 end_of_line = lf diff --git a/.gitignore b/.gitignore index 863636aef4b..cc5a8b49975 100644 --- a/.gitignore +++ b/.gitignore @@ -4,9 +4,6 @@ .idea # IntelliJ IDEA module file *.iml -.vscode/* -!.vscode/launch.json -!.vscode/extensions.json *.log *.tsbuildinfo /.eslintcache diff --git a/.vscode/extensions.json b/.vscode/extensions.json index fdac48578db..cef1ad02574 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,10 +1,18 @@ { "recommendations": [ - "davidanson.vscode-markdownlint", - "dbaeumer.vscode-eslint", - "editorconfig.editorconfig", - "esbenp.prettier-vscode", - "unifiedjs.vscode-mdx", - "yoavbls.pretty-ts-errors" + // Formating + "esbenp.prettier-vscode", // Prettier + "editorconfig.editorconfig", // EditorConfig + + // Highlighting + "bradlc.vscode-tailwindcss", // Tailwind CSS + "unifiedjs.vscode-mdx", // MDX + "styled-components.vscode-styled-components", // styled() + + // Lint + "dbaeumer.vscode-eslint", // ESLint + "yoavbls.pretty-ts-errors", // TypeScript + "stylelint.vscode-stylelint", // Stylelint + "davidanson.vscode-markdownlint" // markdownlint ] } diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 6c86c0feb40..00000000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Test Current File", - "program": "test/cli.js", - "args": ["${relativeFile}", "--inspecting"], - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "disableOptimisticBPs": true - } - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000000..ef5ef9d9d7a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "files.trimTrailingWhitespace": true, + + // Root workspace only + "grammarly.selectors": [ + { + "language": "markdown", + "scheme": "file" + } + ] +}