funquail/front/.eslintrc.js

48 lines
1.2 KiB
JavaScript
Raw Normal View History

2021-04-25 18:23:27 +02:00
module.exports = {
env: {
browser: true,
es6: true
},
extends: [
2022-05-01 13:45:07 +02:00
'plugin:vue/vue3-recommended',
2022-04-16 13:34:39 +02:00
'@vue/typescript/recommended',
'@vue/standard'
2021-04-25 18:23:27 +02:00
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
2022-05-01 13:45:07 +02:00
parser: 'vue-eslint-parser',
2021-04-25 18:23:27 +02:00
parserOptions: {
2022-05-01 13:45:07 +02:00
parser: '@typescript-eslint/parser',
2022-02-21 20:08:44 +01:00
ecmaVersion: 2020,
2022-04-16 13:34:39 +02:00
sourceType: 'module'
2021-04-25 18:23:27 +02:00
},
plugins: [
'vue'
],
rules: {
2022-04-16 13:34:39 +02:00
'vue/no-v-html': 'off', // TODO: tackle this properly
'vue/no-use-v-if-with-v-for': 'off',
2022-04-30 13:25:59 +00:00
// NOTE: Handled by typescript
'no-undef': 'off',
2022-04-30 13:25:59 +00:00
'no-unused-vars': 'off',
// TODO (wvffle): Migrate to VUI
// We're using `// @ts-ignore` in jQuery extensions
// and gettext for vue 2
'@typescript-eslint/ban-ts-comment': 'off',
2022-04-18 00:56:40 +02:00
// TODO (wvffle): Enable typescript rules later
2022-05-01 15:28:19 +02:00
'vue/require-explicit-emits': 'off',
'@typescript-eslint/no-this-alias': 'off',
2022-04-30 13:25:59 +00:00
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// TODO (wvffle): Migration to pinia
// Vuex 3 store does not have types defined, hence we use `any`
'@typescript-eslint/no-explicit-any': 'off'
2021-04-25 18:23:27 +02:00
}
}