fix(eslint): restrict require-atomic-updates to limit number of warnings

This commit is contained in:
Julien Fontanet
2024-07-12 12:07:40 +02:00
parent b35a5cffa6
commit 518b0f77bd

View File

@@ -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',
},