Skip to content

Commit

Permalink
fix(eslint): allow yoda for range checks
Browse files Browse the repository at this point in the history
  • Loading branch information
DrJume committed Apr 25, 2024
1 parent 827d2f4 commit f739d77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ export function eslintConfig(
'test/consistent-test-it': ['error', { fn: 'test', withinDescribe: 'test' }],

'antfu/top-level-function': 'error',

'yoda': ['error', 'never', { exceptRange: true }],
},
})
.append({
Expand Down

0 comments on commit f739d77

Please sign in to comment.