Use eslint config from anftu

This commit is contained in:
2023-10-27 22:53:53 +02:00
parent 9b34449188
commit fa8063d420
6 changed files with 58 additions and 27 deletions

29
.vscode/settings.json vendored
View File

@@ -16,12 +16,33 @@
"ui"
],
// Prettier & ESLint
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": true
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "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" }
],
// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
@@ -34,5 +55,7 @@
"jsonc",
"yaml"
],
// Grammarly
"grammarly.files.include": ["**/*.txt", "**/*.md"]
}