Skip to content

Commit

Permalink
lint: dont check unused vars with underscore prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Apr 21, 2022
1 parent c0e0d99 commit 2305bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc
Expand Up @@ -35,6 +35,7 @@
"no-shadow": 0,
"@typescript-eslint/no-shadow": 2,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-unused-vars": [0, {"argsIgnorePattern": "^_"}],
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/no-empty-function": 0,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/state.ts
Expand Up @@ -54,7 +54,7 @@ export const useStateWithDeps = <S = any>(
// If the property has changed, update the state and mark rerender as
// needed.
if (currentState[k] !== payload[k]) {
currentState[k] = payload[k]!
currentState[k] = payload[k]

// If the property is accessed by the component, a rerender should be
// triggered.
Expand Down

0 comments on commit 2305bb7

Please sign in to comment.