Skip to content

Commit

Permalink
Merge pull request #95 from JinliangYan/fix-function-overloads
Browse files Browse the repository at this point in the history
fix(eslint): 函数重载飘红
  • Loading branch information
codercup committed Jun 1, 2024
1 parent c8e6ab8 commit 5f4bc6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ module.exports = {
'no-unused-vars': 'off',
'no-param-reassign': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// 避免 `eslint` 对于 `typescript` 函数重载的误报
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',
},
// eslint-import-resolver-typescript 插件,@see https://www.npmjs.com/package/eslint-import-resolver-typescript
settings: {
Expand Down

0 comments on commit 5f4bc6e

Please sign in to comment.