chore: es5 module

This commit is contained in:
OBKoro1 2020-12-25 14:39:00 +08:00
parent b928ab2bc3
commit 13fc08475f

View File

@ -1,6 +1,7 @@
module.exports = { module.exports = {
extends: ['airbnb-typescript/base'], extends: ['airbnb-typescript/base'],
parserOptions: { parserOptions: {
createDefaultProgram: true,
project: './tsconfig.json', project: './tsconfig.json',
}, },
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
@ -14,4 +15,4 @@ module.exports = {
// 优先使用 interface 而不是 type // 优先使用 interface 而不是 type
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'], '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
}, },
} };