Skip to content

Commit

Permalink
feat: add for-direction
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Jan 22, 2025
1 parent ac2a1a0 commit 17936c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-apricots-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fenge/eslint-config": patch
---

feat: add `for-direction`
1 change: 1 addition & 0 deletions packages/eslint-config/src/config/js/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export function getJsBase() {

// 3. ban some syntaxes to reduce mistakes
"default-param-last": "error",
"for-direction": "error",
"func-name-matching": "error",
"func-names": "error", // always require a name for function declaration
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
Expand Down

0 comments on commit 17936c7

Please sign in to comment.