diff --git a/src/plugin-usage/eslint.ts b/src/plugin-usage/eslint.ts index e005e435..3c5d1dd5 100644 --- a/src/plugin-usage/eslint.ts +++ b/src/plugin-usage/eslint.ts @@ -41,6 +41,11 @@ const usage: PluginUsage = { 'for-direction': ['error'], 'grouped-accessor-pairs': ['error', 'getBeforeSet'], 'guard-for-in': ['error'], + 'logical-assignment-operators': [ + 'error', + 'always', + { enforceForIfStatements: true }, + ], 'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }], 'no-async-promise-executor': ['error'], 'no-caller': ['error'], diff --git a/src/test/_expected-exported-value.ts b/src/test/_expected-exported-value.ts index bbeadd8e..9c75d0e8 100644 --- a/src/test/_expected-exported-value.ts +++ b/src/test/_expected-exported-value.ts @@ -63,6 +63,11 @@ export const expectedEslintRules: Record< 'for-direction': ['error'], 'grouped-accessor-pairs': ['error', 'getBeforeSet'], 'guard-for-in': ['error'], + 'logical-assignment-operators': [ + 'error', + 'always', + { enforceForIfStatements: true }, + ], 'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }], 'no-async-promise-executor': ['error'], 'no-caller': ['error'], diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index 3b86e6a6..152065c1 100644 --- a/src/test/_rules_to_consider.ts +++ b/src/test/_rules_to_consider.ts @@ -4,7 +4,6 @@ export const rulesToConsider: Record = { 'func-names', 'func-style', 'id-match', - 'logical-assignment-operators', 'max-classes-per-file', 'max-depth', 'max-lines',