2019-07-18 04:11:55 +08:00
|
|
|
module.exports = {
|
|
|
|
plugins: [
|
|
|
|
'@typescript-eslint',
|
|
|
|
],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
extends: [
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
2019-07-18 04:43:03 +08:00
|
|
|
'@antfu/eslint-config',
|
2019-07-18 04:11:55 +08:00
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
// TS
|
2019-07-19 14:41:36 +08:00
|
|
|
'no-useless-constructor': 'off',
|
|
|
|
'@typescript-eslint/semi': ['error', 'never'],
|
2019-07-18 04:11:55 +08:00
|
|
|
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
|
|
|
|
'@typescript-eslint/indent': ['error', 2],
|
|
|
|
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'none' } }],
|
|
|
|
'@typescript-eslint/type-annotation-spacing': ['error', {}],
|
|
|
|
'@typescript-eslint/camelcase': 'off',
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
|
|
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
2019-07-19 14:41:36 +08:00
|
|
|
'@typescript-eslint/no-parameter-properties': 'off',
|
|
|
|
'@typescript-eslint/no-empty-interface': 'off',
|
2019-08-23 00:19:43 +08:00
|
|
|
'@typescript-eslint/ban-ts-ignore': 'off',
|
2020-06-04 12:49:19 +08:00
|
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
|
|
'@typescript-eslint/ban-types': 'off',
|
2019-07-18 04:11:55 +08:00
|
|
|
}
|
|
|
|
}
|