Skip to content

Commit a008387

Browse files
committed
feat!: logical-assignment-operators
1 parent b8c1564 commit a008387

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/plugin-usage/eslint.ts

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ const usage: PluginUsage = {
4141
'for-direction': ['error'],
4242
'grouped-accessor-pairs': ['error', 'getBeforeSet'],
4343
'guard-for-in': ['error'],
44+
'logical-assignment-operators': [
45+
'error',
46+
'always',
47+
{ enforceForIfStatements: true },
48+
],
4449
'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }],
4550
'no-async-promise-executor': ['error'],
4651
'no-caller': ['error'],

src/test/_expected-exported-value.ts

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ export const expectedEslintRules: Record<
6363
'for-direction': ['error'],
6464
'grouped-accessor-pairs': ['error', 'getBeforeSet'],
6565
'guard-for-in': ['error'],
66+
'logical-assignment-operators': [
67+
'error',
68+
'always',
69+
{ enforceForIfStatements: true },
70+
],
6671
'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }],
6772
'no-async-promise-executor': ['error'],
6873
'no-caller': ['error'],

src/test/_rules_to_consider.ts

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export const rulesToConsider: Record<string, string[]> = {
44
'func-names',
55
'func-style',
66
'id-match',
7-
'logical-assignment-operators',
87
'max-classes-per-file',
98
'max-depth',
109
'max-lines',

0 commit comments

Comments
 (0)