funkwhale/front/.eslintrc.js

47 lines
1.0 KiB
JavaScript

module.exports = {
env: {
browser: true,
es6: true
},
extends: [
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended',
'@vue/standard'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module'
},
plugins: [
'vue'
],
rules: {
// NOTE: Nicer for the eye
'operator-linebreak': ['error', 'before'],
// NOTE: Handled by typescript
'no-undef': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
// TODO (wvffle): Enable these rules later
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// TODO (wvffle): Migrate to pinia
'@typescript-eslint/no-explicit-any': 'off',
// TODO (wvffle): Migrate to <script setup>
'vue/require-explicit-emits': 'off'
}
}