Cleanup eslintrc

This commit is contained in:
wvffle 2022-08-31 18:50:43 +00:00 committed by Georg Krause
parent b17941fc44
commit 8a27f350bb
2 changed files with 13 additions and 14 deletions

View File

@ -10,14 +10,14 @@ module.exports = {
], ],
globals: { globals: {
Atomics: 'readonly', SharedArrayBuffer: 'readonly',
SharedArrayBuffer: 'readonly' Atomics: 'readonly'
}, },
parser: 'vue-eslint-parser', parser: 'vue-eslint-parser',
parserOptions: { parserOptions: {
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
ecmaVersion: 2020, sourceType: 'module',
sourceType: 'module' ecmaVersion: 2020
}, },
plugins: [ plugins: [
'vue' 'vue'
@ -27,21 +27,20 @@ module.exports = {
'operator-linebreak': ['error', 'before'], 'operator-linebreak': ['error', 'before'],
// NOTE: Handled by typescript // NOTE: Handled by typescript
'no-undef': 'off', '@typescript-eslint/no-unused-vars': 'off',
'no-redeclare': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off', 'no-use-before-define': 'off',
'no-unused-vars': 'off',
'no-redeclare': 'off',
'no-undef': 'off',
// TODO (wvffle): VUI and #1618 // TODO (wvffle): Remove after VUI and #1618
'vue/multi-word-component-names': 'off',
'import/extensions': 'off', 'import/extensions': 'off',
// TODO (wvffle): Enable these rules later // TODO (wvffle): Remove after embeded player migration
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-this-alias': 'off', '@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// TODO (wvffle): Migrate to pinia // TODO (wvffle): Remove after API Client
'@typescript-eslint/no-explicit-any': 'off' '@typescript-eslint/no-explicit-any': 'off'
} }
} }

View File

@ -14,7 +14,7 @@ interface Props {
const emit = defineEmits<Events>() const emit = defineEmits<Events>()
const props = withDefaults(defineProps<Props>(), { const props = withDefaults(defineProps<Props>(), {
action: () => {}, action: () => undefined,
disabled: false, disabled: false,
confirmColor: 'danger' confirmColor: 'danger'
}) })