mirror of
https://github.com/OBKoro1/autoCommit.git
synced 2024-11-15 06:59:26 +08:00
19 lines
495 B
JavaScript
19 lines
495 B
JavaScript
module.exports = {
|
|
extends: ['airbnb-typescript/base'],
|
|
parserOptions: {
|
|
createDefaultProgram: true,
|
|
project: './tsconfig.json',
|
|
},
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
rules: {
|
|
'no-console': 'off',
|
|
'no-restricted-syntax': 'off',
|
|
'no-continue': 'off',
|
|
// 禁止使用 var
|
|
'no-var': 'error',
|
|
// 优先使用 interface 而不是 type
|
|
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
|
|
},
|
|
};
|