Skip to content

feat: configure rule@typescript-eslint/no-unused-vars to ignore vars starting with _#15

Merged
pi0 merged 1 commit into
unjs:mainfrom
JLarky:chore/update-ignore-rules-#14
May 3, 2024
Merged

feat: configure rule@typescript-eslint/no-unused-vars to ignore vars starting with _#15
pi0 merged 1 commit into
unjs:mainfrom
JLarky:chore/update-ignore-rules-#14

Conversation

@JLarky

@JLarky JLarky commented May 1, 2024

Copy link
Copy Markdown
Contributor

🔗 Linked issue

#14

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Resolves #14

This makes eslint rules more inline with how typescript reports unused variable errors, since it ignores ones that start with _

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@pi0 pi0 changed the title chore: configure rule @typescript-eslint/no-unused-vars feat: configure rule@typescript-eslint/no-unused-vars to ignore vars starting with _ May 2, 2024
@pi0 pi0 merged commit 6b4d0ce into unjs:main May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude _* vars from @typescript-eslint/no-unused-vars

2 participants