2018-03-07 14:28:48 +01:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2019-04-03 15:15:46 +02:00
|
|
|
parser: 'vue-eslint-parser',
|
2018-03-07 14:28:48 +01:00
|
|
|
parserOptions: {
|
2019-04-03 15:15:46 +02:00
|
|
|
parser: '@typescript-eslint/parser',
|
2018-03-07 14:28:48 +01:00
|
|
|
sourceType: 'module'
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
node: true
|
|
|
|
},
|
2019-04-20 06:39:26 +02:00
|
|
|
extends: ['standard', 'prettier'],
|
2018-03-07 14:28:48 +01:00
|
|
|
globals: {
|
|
|
|
__static: true
|
|
|
|
},
|
2019-04-20 06:39:26 +02:00
|
|
|
plugins: ['@typescript-eslint', 'prettier'],
|
2019-04-03 15:15:46 +02:00
|
|
|
rules: {
|
2018-03-07 14:28:48 +01:00
|
|
|
// allow paren-less arrow functions
|
|
|
|
'arrow-parens': 0,
|
|
|
|
// allow async-await
|
|
|
|
'generator-star-spacing': 0,
|
|
|
|
// allow debugger during development
|
2019-04-03 15:15:46 +02:00
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
|
|
'no-unused-vars': 'off',
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
'error',
|
|
|
|
{
|
2019-04-20 06:39:26 +02:00
|
|
|
argsIgnorePattern: '^_'
|
2019-04-03 15:15:46 +02:00
|
|
|
}
|
2019-04-06 15:08:29 +02:00
|
|
|
],
|
2019-04-20 06:39:26 +02:00
|
|
|
camelcase: 'off',
|
2019-04-20 08:43:11 +02:00
|
|
|
'@typescript-eslint/camelcase': 'off',
|
|
|
|
'space-before-function-paren': 'off'
|
2018-03-07 14:28:48 +01:00
|
|
|
}
|
|
|
|
}
|