-
Notifications
You must be signed in to change notification settings - Fork 198
Revamped configs into 'core', 'latest', and (legacy) 'recommended' #809
Conversation
Those three config files now exist as `.json` under `/configs`; they're copied to `dist/build/configs`. `recommended.json` becomes `tslint.json` as well.
@JoshuaKGoldberg The same way tslint expose a And I, personally, would loved a |
Yes!! Great idea @VincentLanglet, will do. Edit: looking through, it seems like
Also strongly in support of this! But - I think it would be better, long-term, to move those rules to tslint-react, as it's been confusing to many users where different contributed rules come from & why. Will file issues there. |
I didn't have rules in mind. I was just thinking it was the same naming than
If you're going to do:
You may rename the
It's not a bad idea to move those rules 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.
There are couple fixes that are required for code and couple of questions.
According to README.md
- it stable
configuration will be changes once before major release. Therefore, it makes sense to make stable.json
as static file and automatically generate latest.json
.
With current approach - it will be really easy to forget to add rule to latest.json
and it will slip into stable.json
potentially breaking promise of update it only on major versions.
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.
Found second rule that was added after 6.0.0
and shouldn't be in stable.json
Thanks for the feedback you two! I agree with what looks like everything that was suggested. 😄 Changed the names of the configurations to be:
Thoughts? Rule configs are, for now, still in Filed palantir/tslint-react#202 for moving a11y rules into tslint-react. If that doesn't see traction any time soon (it looks like that repository hasn't had much maintenance since June 2018...), we can add the equivalent here. Let's discuss that later on? |
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! After latest changes PR looks great and can be merged as is.
Only one minor comment that I'm not sure should be addressed.
Whoohoo, thanks for the reviews @IllusionMH & @VincentLanglet! This'll be available in the next release. |
…icrosoft#809) * Revamped configs into 'core', 'latest', and (legacy) 'recommended' Those three config files now exist as `.json` under `/configs`; they're copied to `dist/build/configs`. `recommended.json` becomes `tslint.json` as well. * Normalized trailing commas; added back .gitignore fields * Moved void-zero to latest.json * Moved to exporting root-level configs * Switched to auto-generating latest.json * Aligned naming with TSLint's recommended -> latest * Update ExtendedMetadata.ts :qa! rebasing :wq :qa!
PR checklist
Overview of change:
Those three config files now exist as
.json
under/configs
; they're copied todist/build/configs
.recommended.json
becomestslint.json
as well.Is there anything you'd like reviewers to focus on?
Does this look like a reasonable way to manage configurations for foreseeable future?