funkwhale/front/.eslintrc.js

46 wiersze
1.1 KiB
JavaScript
Czysty Zwykły widok Historia

2021-04-25 16:23:27 +00:00
module.exports = {
env: {
browser: true,
es6: true
},
extends: [
'plugin:vue/recommended',
2022-04-16 11:34:39 +00:00
'@vue/typescript/recommended',
'@vue/standard'
2021-04-25 16:23:27 +00:00
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
2022-02-21 19:08:44 +00:00
ecmaVersion: 2020,
2022-04-16 11:34:39 +00:00
sourceType: 'module'
2021-04-25 16:23:27 +00:00
},
plugins: [
'vue'
],
rules: {
2022-04-16 11:34:39 +00: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-17 22:56:40 +00:00
// TODO (wvffle): Enable typescript rules later
'@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 16:23:27 +00:00
}
}