Add a few eslint rules to enforce a stricter style

This commit is contained in:
Matthias 2024-06-07 19:18:25 +02:00
parent e0b7caf4f0
commit cb70e1681c

View File

@ -31,6 +31,22 @@ export default [
// 'no-shadow': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
// Custom vue rules
'vue/block-lang': [
'error',
{
script: {
lang: 'ts',
},
},
],
'vue/component-api-style': ['error'],
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{ registeredComponentsOnly: true },
],
},
},
];