Skip to content
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

Meta type #185

Merged
merged 1 commit into from
Jul 8, 2020
Merged

Meta type #185

merged 1 commit into from
Jul 8, 2020

Conversation

brettz9
Copy link
Contributor

@brettz9 brettz9 commented Apr 11, 2020

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • New rule
  • Changes an existing rule
  • Add autofixing to a rule
  • Other, please explain: Adds metadata

What changes did you make? (Give an overview)

  • Enhancement: Add meta.type to all rules

Can use eslint --fix-type with meta.type (see https://eslint.org/docs/user-guide/command-line-interface#fix-type )

(I'm also working on an eslint badge formatter which allows categorizing rule violations by meta.type (i.e., problem, layout, or suggestion), so having this fixed would allow it to be properly categorized.)

@brettz9
Copy link
Contributor Author

brettz9 commented May 16, 2020

Any chance y'all can take a look? Thanks...

@xjamundx
Copy link
Contributor

xjamundx commented May 16, 2020 via email

@brettz9
Copy link
Contributor Author

brettz9 commented May 16, 2020

What, no firm promises from the promise plugin? ;-) JK of course... Thanks!

@xjamundx
Copy link
Contributor

I'm basically fine with this change, but not really in love with the formatting change (specifically adding trailing commas). If you want to introduce another PR where you bring in prettier that would be fine, but otherwise I'd prefer if you could remove that change and then I'll be fine with merging.

@brettz9
Copy link
Contributor Author

brettz9 commented May 19, 2020

I guess you mean I could add a separate PR to update Prettier (which starts requiring trailing commas) along with the corresponding linting changes? (Just wanted to be sure you were aware an earlier version of Prettier was already in force.)

@brettz9
Copy link
Contributor Author

brettz9 commented May 19, 2020

I've amended to stop depending on my other PRs #183 and #184, where #184 added the linting.

This was referenced May 19, 2020
Merged
@xjamundx xjamundx merged commit 120117f into eslint-community:master Jul 8, 2020
@brettz9 brettz9 deleted the meta-type branch July 8, 2020 18:42
@ota-meshi ota-meshi linked an issue Sep 29, 2022 that may be closed by this pull request
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.

Support the new rule meta.type property
2 participants