-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
17 lines (17 loc) · 960 Bytes
/
Copy path.eslintrc.js
File metadata and controls
17 lines (17 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = {
extends: ['eslint-config-encode/typescript', 'prettier'],
rules: {
'@typescript-eslint/no-require-imports': 'off', // 关闭require校验
'@typescript-eslint/ban-ts-comment': 'off', // 关闭ts-ignore校验
'no-console': 'off', // 关闭console校验
'@typescript-eslint/restrict-plus-operands': 'off', // 关闭+操作符校验
'import/namespace': 'off', // 关闭namespace校验
'@typescript-eslint/consistent-type-assertions': 'off', // 关闭类型常量断言校验
'@typescript-eslint/array-type': 'off', // 关闭数组类型定义
'array-callback-return': 'off', // 关闭数组回调函数返回值校验
'no-alert': 'off', // 关闭alert
'@typescript-eslint/no-invalid-void-type': 'off', // 关闭void校验
'@typescript-eslint/consistent-type-definitions': 'off', // 关闭type不能定义对象校验
'no-param-reassign': 'off', // 关闭参数赋值属性赋值校验
},
};