Skip to content

Commit

Permalink
feat: ignore vars that start with _ for eslint no-unused-vars ignore (
Browse files Browse the repository at this point in the history
#1268)

* ignore unused vars that begin with underscore

* changeset
  • Loading branch information
c-ehrlich authored Mar 9, 2023
1 parent 8856561 commit db394ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-bugs-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": minor
---

ignore unused vars that begin with underscore
1 change: 1 addition & 0 deletions cli/template/base/_eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const config = {
fixStyle: "inline-type-imports",
},
],
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
},
};

Expand Down

0 comments on commit db394ed

Please sign in to comment.