New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(eslint-plugin-internal): add prefer-ast-types-enum
#1508
feat(eslint-plugin-internal): add prefer-ast-types-enum
#1508
Conversation
Thanks for the PR, @G-Rath! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
Codecov Report
@@ Coverage Diff @@
## master #1508 +/- ##
==========================================
- Coverage 95.6% 95.57% -0.04%
==========================================
Files 148 149 +1
Lines 6664 6684 +20
Branches 1909 1915 +6
==========================================
+ Hits 6371 6388 +17
- Misses 111 112 +1
- Partials 182 184 +2
|
it should work without publishing (in development we are using local packages for linting) you forgot to add it to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
one nit on the implementation, just for this repo.
armano is right; add it to the index and do a build, then you'll be able to config it and run it.
you're a legend, thanks for doing this!
packages/eslint-plugin-internal/src/rules/prefer-ast-types-constant.ts
Outdated
Show resolved
Hide resolved
😂 But on a serious note, I'm going to open a new PR based off this one for the fixes - the primary interesting one is
I personally don't have a major problem with it, but you might feel differently :) |
Also, I've renamed the rule to |
prefer-ast-types-constant
ruleprefer-ast-types-enum
rule
packages/eslint-plugin-internal/src/rules/prefer-ast-types-enum.ts
Outdated
Show resolved
Hide resolved
packages/eslint-plugin-internal/src/rules/prefer-ast-types-enum.ts
Outdated
Show resolved
Hide resolved
Co-Authored-By: Brad Zacher <brad.zacher@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this!
prefer-ast-types-enum
ruleprefer-ast-types-enum
closes #1503
I assume it has to be published before it can be used?