Skip to content

Commit 5f7df3d

Browse files
committed
feat: off no-shadow
1 parent 5a4c0d9 commit 5f7df3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/spec/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ice/spec",
3-
"version": "2.0.0-beta.1",
3+
"version": "2.0.0-beta.2",
44
"description": "Easy to use eslint/stylelint/prettier/commitlint in ice project.",
55
"type": "module",
66
"main": "./es2017/index.js",

packages/spec/src/eslint/rules/typescript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const typescriptRecommendConfig = tslint.config(...tslint.configs.recomme
8383
'@typescript-eslint/consistent-type-assertions': [
8484
'error',
8585
{
86-
arrayLiteralTypeAssertions: 'allow-as-parameter',
86+
arrayLiteralTypeAssertions: 'allow',
8787
assertionStyle: 'as',
8888
objectLiteralTypeAssertions: 'allow',
8989
},
@@ -452,7 +452,7 @@ export const typescriptRecommendConfig = tslint.config(...tslint.configs.recomme
452452
* @link https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md
453453
*/
454454
'no-shadow': 'off',
455-
'@typescript-eslint/no-shadow': 'error',
455+
'@typescript-eslint/no-shadow': 'warn',
456456

457457
/**
458458
* 【推荐】不建议将 this 赋值给其他变量,解构赋值除外

0 commit comments

Comments
 (0)