Skip to content

Commit

Permalink
set @typescript-eslint/no-unsafe-return to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhxx committed Apr 9, 2022
1 parent ffe5ce5 commit 21ddbab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base-ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
"@typescript-eslint/no-implied-eval": 2, // 禁止eval
"@typescript-eslint/no-extra-semi": 2, // 禁止多余冒号
"@typescript-eslint/no-empty-function": 2, // 禁止空函数
"@typescript-eslint/no-unsafe-return": 1, // 不允许返回any类型
"@typescript-eslint/no-unsafe-return": 0, // 不允许返回any类型
"@typescript-eslint/no-unnecessary-type-assertion": 1, // 类型断言没有改变类型时警告
"@typescript-eslint/no-this-alias": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-proste",
"description": "preset eslint config",
"version": "2.6.1",
"version": "2.7.0",
"repository": "https://github.com/xyhxx/proste-eslint-config.git",
"author": "xyh <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 21ddbab

Please sign in to comment.