Gets Biome and ESLint working for non-formatting linting.

This commit is contained in:
Refringe 2023-11-10 13:25:58 -05:00
parent fe614670b7
commit 5f7bfdeb1a
No known key found for this signature in database
GPG Key ID: 64E03E5F892C6F9E
2 changed files with 6 additions and 16 deletions

View File

@ -18,9 +18,6 @@
"@typescript-eslint/no-var-requires": "error", "@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/explicit-module-boundary-types": ["error", { "allowArgumentsExplicitlyTypedAsAny": true }], "@typescript-eslint/explicit-module-boundary-types": ["error", { "allowArgumentsExplicitlyTypedAsAny": true }],
"@typescript-eslint/naming-convention": ["error", { "@typescript-eslint/naming-convention": ["error", {
"selector": "import",
"format": ["camelCase", "PascalCase", "UPPER_CASE"]
}, {
"selector": "default", "selector": "default",
"format": ["camelCase"], "format": ["camelCase"],
"leadingUnderscore": "allow" "leadingUnderscore": "allow"
@ -59,7 +56,7 @@
], ],
"rules": { "rules": {
"no-var-requires": "off", "no-var-requires": "off",
"@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-var-requires": "off"
} }
}] }]
} }

View File

@ -7,9 +7,8 @@
"extensions": { "extensions": {
"recommendations": [ "recommendations": [
"EditorConfig.EditorConfig", "EditorConfig.EditorConfig",
"Jota0222.multi-formatter",
"dbaeumer.vscode-eslint",
"dprint.dprint", "dprint.dprint",
"dbaeumer.vscode-eslint",
"biomejs.biome" "biomejs.biome"
] ]
}, },
@ -17,15 +16,9 @@
"window.title": "SPT-AKI Server", "window.title": "SPT-AKI Server",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.defaultFormatter": "dprint.dprint", "editor.defaultFormatter": "dprint.dprint",
"multiFormatter.formatterList": [ "editor.codeActionsOnSave": [
"dprint.dprint", "source.fixAll.eslint",
"biomejs.biome" "source.organizeImports.biome"
], ]
"[typescript]": {
"editor.codeActionsOnSave": {
"quickfix.biome": false,
"source.organizeImports.biome": true
}
}
} }
} }