AutoCommit/.eslintrc.js

18 lines
462 B
JavaScript
Raw Normal View History

2020-12-10 20:02:10 +08:00
module.exports = {
extends: ['airbnb-typescript/base'],
parserOptions: {
project: './tsconfig.json',
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
2020-12-10 23:46:10 +08:00
'no-console': 'off',
2020-12-10 20:02:10 +08:00
'no-restricted-syntax': 'off',
'no-continue': 'off',
// 禁止使用 var
'no-var': 'error',
// 优先使用 interface 而不是 type
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
},
}