mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-27 09:14:44 +01:00
36 lines
816 B
JavaScript
36 lines
816 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
browser: true,
|
|
node: true
|
|
},
|
|
extends: ['standard', 'prettier'],
|
|
globals: {
|
|
__static: true
|
|
},
|
|
plugins: ['@typescript-eslint', 'prettier'],
|
|
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: '^_'
|
|
}
|
|
],
|
|
camelcase: 'off',
|
|
'@typescript-eslint/camelcase': 'off',
|
|
'space-before-function-paren': 'off'
|
|
}
|
|
}
|