Skip to content

Commit

Permalink
feat!: logical-assignment-operators
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Dec 14, 2024
1 parent b8c1564 commit a008387
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/plugin-usage/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
5 changes: 5 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export const rulesToConsider: Record<string, string[]> = {
'func-names',
'func-style',
'id-match',
'logical-assignment-operators',
'max-classes-per-file',
'max-depth',
'max-lines',
Expand Down

0 comments on commit a008387

Please sign in to comment.