funkwhale/front/.eslintrc.js

51 wiersze
1.3 KiB
JavaScript
Czysty Zwykły widok Historia

2021-04-25 16:23:27 +00:00
module.exports = {
env: {
browser: true,
es6: true
},
extends: [
2022-05-01 11:45:07 +00:00
'plugin:vue/vue3-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'
},
2022-05-01 11:45:07 +00:00
parser: 'vue-eslint-parser',
2021-04-25 16:23:27 +00:00
parserOptions: {
2022-05-01 11:45:07 +00:00
parser: '@typescript-eslint/parser',
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
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',
// TODO (wvffle): Enable these rules later
'vue/multi-word-component-names': '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',
2022-05-01 15:17:12 +00:00
// TODO (wvffle): Migrate to pinia
2022-04-30 13:25:59 +00:00
// Vuex 3 store does not have types defined, hence we use `any`
2022-05-01 14:35:58 +00:00
'@typescript-eslint/no-explicit-any': 'off',
// TODO (wvffle): Migrate to <script setup>
'vue/require-explicit-emits': 'off'
2021-04-25 16:23:27 +00:00
}
}