Disallow ===

This commit is contained in:
Joscha 2025-02-11 20:06:50 +01:00
parent 7d6f610be0
commit 994c3bb654
2 changed files with 8 additions and 5 deletions

View file

@ -36,16 +36,19 @@ export default tseslint.config(
{ files: ["**/*.vue"], languageOptions: { parserOptions: { parser: tseslint.parser } } },
// My own rules.
//
// https://eslint.org/docs/latest/rules/
// https://typescript-eslint.io/rules/
// https://eslint.vuejs.org/rules/
{
rules: {
// https://eslint.org/docs/latest/rules/
eqeqeq: "error",
// https://typescript-eslint.io/rules/
"@typescript-eslint/explicit-function-return-type": "error",
// https://eslint.vuejs.org/rules/
"vue/block-lang": ["error", { script: { lang: "ts" } }],
"vue/block-order": ["error", { order: ["script", "template", "style"] }],
"vue/component-api-style": ["error", ["script-setup"]],
"vue/eqeqeq": "error",
"vue/v-for-delimiter-style": ["error", "of"],
},
},