Skip to content

Commit

Permalink
fix(eslint): restrict require-atomic-updates to limit number of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-f committed Jul 12, 2024
1 parent b35a5cf commit 518b0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ module.exports = {
// this rule can prevent race condition bugs like parallel `a += await foo()`
//
// as it has a lots of false positive, it is only enabled as a warning for now
'require-atomic-updates': 'warn',
'require-atomic-updates': ['warn', { allowProperties: true }],

strict: 'error',
},
Expand Down

0 comments on commit 518b0f7

Please sign in to comment.