[Eslint] Fix typing

This commit is contained in:
2025-12-13 14:28:22 +01:00
parent c453e7aa90
commit e9399cf7bb

View File

@@ -9,7 +9,7 @@ const style = {
'plugins': {
'@stylistic': stylistic,
'@stylistic/js': stylistic,
'@stylistic/ts': stylistic,
'@stylistic/ts': stylistic
},
'files': [
'**/*.ts',
@@ -45,7 +45,7 @@ const style = {
],
'@stylistic/array-bracket-spacing': [
'error',
'always',
'always'
],
'@stylistic/array-element-newline': [
'error',
@@ -153,7 +153,7 @@ const style = {
'@stylistic/max-statements-per-line': [
'error',
{
'max': 1,
'max': 1
}
],
'@stylistic/multiline-ternary': [
@@ -213,7 +213,7 @@ const style = {
{
'blocks': 'never',
'classes': 'always',
'switches': 'never',
'switches': 'never'
}
],
@@ -597,7 +597,7 @@ const style = {
'blankLine': 'always',
'prev': 'class',
'next': '*'
},
}
],
'@stylistic/quote-props': [
'error',
@@ -661,8 +661,8 @@ const style = {
'@stylistic/type-annotation-spacing': [
'error',
{
'before': false,
'after': true,
'before': true,
'after': true
}
],
'@stylistic/type-generic-spacing': 'error',
@@ -672,7 +672,7 @@ const style = {
'inside'
],
'@stylistic/wrap-regex': 'error',
'@stylistic/ts/type-annotation-spacing': 'error',
'@stylistic/ts/type-annotation-spacing': 'error'
}
};
@@ -691,15 +691,15 @@ export default tseslint.config(
'ecmaVersion': 'latest',
'globals': globals.browser,
'parserOptions': {
'parser': tseslint.parser,
},
'parser': tseslint.parser
}
},
'plugins': {
'vue': vue,
'@stylistic': stylistic,
'@stylistic/js': stylistic,
'@stylistic/ts': stylistic,
'@typescript-eslint': typescript,
'@typescript-eslint': typescript
},
'extends': [
eslint.configs.recommended,
@@ -743,9 +743,9 @@ export default tseslint.config(
'error',
{
'singleline': 3,
'multiline': 1,
'multiline': 1
}
],
},
},
]
}
}
);