Whalebird-desktop-client-ma.../.eslintrc.js

37 lines
759 B
JavaScript
Raw Normal View History

2018-03-07 14:28:48 +01:00
module.exports = {
root: true,
parser: 'vue-eslint-parser',
2018-03-07 14:28:48 +01:00
parserOptions: {
parser: '@typescript-eslint/parser',
2018-03-07 14:28:48 +01:00
sourceType: 'module'
},
env: {
browser: true,
node: true
},
extends: 'standard',
2018-03-07 14:28:48 +01:00
globals: {
__static: true
},
plugins: [
2019-04-02 16:49:55 +02:00
'@typescript-eslint'
2018-03-07 14:28:48 +01: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
'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'
2018-03-07 14:28:48 +01:00
}
}