51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: false,
|
|
env: {
|
|
node: true,
|
|
es6: true,
|
|
mocha: true,
|
|
},
|
|
extends: [
|
|
'standard',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'@vue/standard'
|
|
],
|
|
rules: {
|
|
'no-console': 'error',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
'no-unused-vars': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'@typescript-eslint/camelcase': 'off',
|
|
'no-console': 'off'
|
|
},
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser'
|
|
},
|
|
plugins: [
|
|
'@typescript-eslint/eslint-plugin',
|
|
],
|
|
settings: {
|
|
'import/parsers': {
|
|
'@typescript-eslint/parser': [
|
|
'.ts',
|
|
],
|
|
},
|
|
'import/resolver': {
|
|
typescript: {},
|
|
},
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.test.ts'],
|
|
rules: {
|
|
'no-unused-expressions': 'off',
|
|
},
|
|
},
|
|
],
|
|
}
|