fix: ESLint + Vue no-useless-assingment

This commit is contained in:
Tibo De Peuter 2025-03-06 14:36:50 +01:00
parent 96d6507073
commit 710adcaa34
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 4 additions and 0 deletions

View file

@ -43,6 +43,7 @@ export default [
'no-unreachable-loop': 'warn',
'no-use-before-define': 'error',
'no-useless-assignment': 'error',
'no-unused-vars': 'error',
'arrow-body-style': ['warn', 'as-needed'],
'block-scoped-var': 'warn',

View file

@ -14,6 +14,9 @@ const vueConfig = defineConfigWithVueTs(
{
name: "app/files-to-lint",
files: ["**/*.{ts,mts,tsx,vue}"],
rules: {
'no-useless-assignment': 'off' // Depend on `no-unused-vars` to catch this
}
},
{