17 lines
437 B
JavaScript
17 lines
437 B
JavaScript
|
module.exports = {
|
||
|
extends: ['airbnb-typescript/base'],
|
||
|
parserOptions: {
|
||
|
project: './tsconfig.json',
|
||
|
},
|
||
|
parser: '@typescript-eslint/parser',
|
||
|
plugins: ['@typescript-eslint'],
|
||
|
rules: {
|
||
|
'no-restricted-syntax': 'off',
|
||
|
'no-continue': 'off',
|
||
|
// 禁止使用 var
|
||
|
'no-var': 'error',
|
||
|
// 优先使用 interface 而不是 type
|
||
|
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
|
||
|
},
|
||
|
}
|