aboutsummaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-11-26 17:13:07 -0500
committerPauline <git@ethanlibs.co>2023-11-26 17:13:07 -0500
commite9d485fe3b5db8c426ac03b30ed8917df0baa62d (patch)
tree69a684d53abce6b636620cc0000a6e84846246d7 /.vscode
parent85c31ee8d278ac6fa1f0ba143b78d65e5f665f32 (diff)
downloadNexus-e9d485fe3b5db8c426ac03b30ed8917df0baa62d.tar.gz
Nexus-e9d485fe3b5db8c426ac03b30ed8917df0baa62d.tar.bz2
Nexus-e9d485fe3b5db8c426ac03b30ed8917df0baa62d.zip
feat(lint): switch to eslint config and formatting (use vscode for autoformat)
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/extensions.json3
-rw-r--r--.vscode/settings.json70
2 files changed, 71 insertions, 2 deletions
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 7ecfae2..880b6ac 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -5,6 +5,7 @@
"oscarbeaumont.rspc-vscode",
"EditorConfig.EditorConfig",
"prisma.prisma",
- "bradlc.vscode-tailwindcss"
+ "bradlc.vscode-tailwindcss",
+ "dbaeumer.vscode-eslint"
]
}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 4b3f49b..15853eb 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -18,7 +18,75 @@
"/packages/ctjs/types/*": true,
"**/dist": true
},
- "css.customData": [".vscode/tailwind.json"],
+ // Enable the flat config support
+ "eslint.experimental.useFlatConfig": true,
+ // Disable the default formatter
+ "prettier.enable": false,
+ "editor.formatOnSave": false,
+ // Auto fix
+ "editor.codeActionsOnSave": {
+ "source.fixAll.eslint": true,
+ "source.organizeImports": false
+ },
+ // Silent the stylistic rules in you IDE, but still auto fix them
+ "eslint.rules.customizations": [
+ {
+ "rule": "@stylistic/*",
+ "severity": "off"
+ },
+ {
+ "rule": "style*",
+ "severity": "off"
+ },
+ {
+ "rule": "*-indent",
+ "severity": "off"
+ },
+ {
+ "rule": "*-spacing",
+ "severity": "off"
+ },
+ {
+ "rule": "*-spaces",
+ "severity": "off"
+ },
+ {
+ "rule": "*-order",
+ "severity": "off"
+ },
+ {
+ "rule": "*-dangle",
+ "severity": "off"
+ },
+ {
+ "rule": "*-newline",
+ "severity": "off"
+ },
+ {
+ "rule": "*quotes",
+ "severity": "off"
+ },
+ {
+ "rule": "*semi",
+ "severity": "off"
+ }
+ ],
+ "eslint.validate": [
+ "javascript",
+ "javascriptreact",
+ "typescript",
+ "typescriptreact",
+ "vue",
+ "html",
+ "markdown",
+ "json",
+ "jsonc",
+ "yaml",
+ "astro"
+ ],
+ "css.customData": [
+ ".vscode/tailwind.json"
+ ],
"eslint.lintTask.enable": true,
"eslint.workingDirectories": [],
"explorer.fileNesting.enabled": true,