diff --git a/index.js b/index.js index d46ab0e..ea61401 100644 --- a/index.js +++ b/index.js @@ -351,6 +351,13 @@ module.exports = { exceptAfterSingleLine: true, }, ], + 'logical-assignment-operators': [ + 'error', + 'always', + { + enforceForIfStatements: true, + }, + ], 'max-depth': 'warn', 'max-nested-callbacks': [ 'warn', diff --git a/package.json b/package.json index fcb5530..3c96da4 100644 --- a/package.json +++ b/package.json @@ -53,10 +53,10 @@ }, "devDependencies": { "ava": "^2.4.0", - "eslint": "^8.14.0", + "eslint": "^8.24.0", "is-plain-obj": "^3.0.0" }, "peerDependencies": { - "eslint": ">=8.14.0" + "eslint": ">=8.24.0" } }