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 } } }, { files: ["**/*.vue"], languageOptions: { parserOptions: { parser: tseslint.parser } } },
// My own rules. // My own rules.
//
// https://eslint.org/docs/latest/rules/
// https://typescript-eslint.io/rules/
// https://eslint.vuejs.org/rules/
{ {
rules: { rules: {
// https://eslint.org/docs/latest/rules/
eqeqeq: "error",
// https://typescript-eslint.io/rules/
"@typescript-eslint/explicit-function-return-type": "error", "@typescript-eslint/explicit-function-return-type": "error",
// https://eslint.vuejs.org/rules/
"vue/block-lang": ["error", { script: { lang: "ts" } }], "vue/block-lang": ["error", { script: { lang: "ts" } }],
"vue/block-order": ["error", { order: ["script", "template", "style"] }], "vue/block-order": ["error", { order: ["script", "template", "style"] }],
"vue/component-api-style": ["error", ["script-setup"]], "vue/component-api-style": ["error", ["script-setup"]],
"vue/eqeqeq": "error",
"vue/v-for-delimiter-style": ["error", "of"], "vue/v-for-delimiter-style": ["error", "of"],
}, },
}, },

View file

@ -194,7 +194,7 @@ function onMoveButtonClick(): void {
</CNoteButton> </CNoteButton>
<CNoteButton <CNoteButton
:visible="hover" :visible="hover"
:disabled="ui.anchorId == segment.id" :disabled="ui.anchorId === segment.id"
@click.stop="onMoveButtonClick" @click.stop="onMoveButtonClick"
> >
<RiArrowRightDoubleLine size="16px" /> <RiArrowRightDoubleLine size="16px" />