funkwhale/front/.eslintrc.js

56 wiersze
1.3 KiB
JavaScript

module.exports = {
env: {
browser: true,
es6: true
},
extends: [
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended',
'@vue/standard'
],
globals: {
SharedArrayBuffer: 'readonly',
Atomics: 'readonly'
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 2020
},
plugins: [
'vue'
],
rules: {
// NOTE: Nicer for the eye
'operator-linebreak': ['error', 'before'],
// NOTE: Handled by typescript
'@typescript-eslint/no-unused-vars': 'off',
'no-use-before-define': 'off',
'no-unused-vars': 'off',
'no-redeclare': 'off',
'no-undef': 'off',
// TODO (wvffle): Remove after VUI and #1618
'vue/multi-word-component-names': 'off',
'import/extensions': 'off',
// TODO (wvffle): Remove after embeded player migration
'@typescript-eslint/no-this-alias': 'off',
// TODO (wvffle): Remove after API Client
'@typescript-eslint/no-explicit-any': 'off'
},
overrides: [
{
files: ['public/embed.html'],
rules: {
// NOTE: It is broken for some reason. It's safe to disable in a .html file as this rule only
// brings <!-- eslint-disable --> comments support for the <template> tag in SFCs
'vue/comment-directive': 'off'
}
}
]
}