Skip to content

Commit

Permalink
feat: ts添加no-shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxudong13804 committed Feb 19, 2024
1 parent ae5acd9 commit 7223399
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/configs/react-ts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ module.exports = {
'@typescript-eslint/prefer-as-const': 'off', // error -> off
'@typescript-eslint/prefer-namespace-keyword': 'off', // error -> off
'@typescript-eslint/triple-slash-reference': 'off', // error -> off
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
},
ignorePatterns: BaseOptions.ignorePatterns,
noInlineConfig: BaseOptions.noInlineConfig,
Expand Down
2 changes: 2 additions & 0 deletions lib/configs/ts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ module.exports = {
'@typescript-eslint/prefer-as-const': 'off', // error -> off
'@typescript-eslint/prefer-namespace-keyword': 'off', // error -> off
'@typescript-eslint/triple-slash-reference': 'off', // error -> off
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
},
ignorePatterns: BaseOptions.ignorePatterns,
noInlineConfig: BaseOptions.noInlineConfig,
Expand Down
2 changes: 2 additions & 0 deletions lib/configs/vue2-ts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ module.exports = {
'@typescript-eslint/prefer-as-const': 'off', // error -> off
'@typescript-eslint/prefer-namespace-keyword': 'off', // error -> off
'@typescript-eslint/triple-slash-reference': 'off', // error -> off
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
},
ignorePatterns: BaseOptions.ignorePatterns,
noInlineConfig: BaseOptions.noInlineConfig,
Expand Down
2 changes: 2 additions & 0 deletions lib/configs/vue3-ts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ module.exports = {
'@typescript-eslint/prefer-as-const': 'off', // error -> off
'@typescript-eslint/prefer-namespace-keyword': 'off', // error -> off
'@typescript-eslint/triple-slash-reference': 'off', // error -> off
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
},
ignorePatterns: BaseOptions.ignorePatterns,
noInlineConfig: BaseOptions.noInlineConfig,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@afuteam/eslint-plugin-fe",
"version": "2.0.5-beta.2",
"version": "2.0.5-beta.3",
"description": "AfuTeam ESLint Plugin",
"main": "./lib/index.js",
"exports": {
Expand Down

0 comments on commit 7223399

Please sign in to comment.