mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-25 00:10:59 +01:00
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
sourceType: 'module',
|
|
ecmaVersion: 12
|
|
},
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
es2021: true
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', '@vue/typescript/recommended', 'prettier'],
|
|
globals: {
|
|
__static: true
|
|
},
|
|
plugins: ['@typescript-eslint', 'vue'],
|
|
rules: {
|
|
// allow paren-less arrow functions
|
|
'arrow-parens': 0,
|
|
// allow async-await
|
|
'generator-star-spacing': 0,
|
|
// allow debugger during development
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
'no-unused-vars': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
argsIgnorePattern: '^_'
|
|
}
|
|
],
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
camelcase: 'off',
|
|
'@typescript-eslint/camelcase': 'off',
|
|
'space-before-function-paren': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/attributes-order': 'off',
|
|
'vue/attribute-hyphenation': 'off',
|
|
'vue/no-v-html': 'off'
|
|
}
|
|
}
|