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

chore: add eslint-plugin-eslint-plugin #59

Merged

Conversation

macklinu
Copy link
Collaborator

@macklinu macklinu commented Feb 7, 2018

This PR adds eslint-plugin-eslint-plugin and its recommended configuration to this project's ESLint configuration. It has some useful rules for ESLint plugin codebases.

When adding the recommended configuration, there were three reports of this codebase violating the require-meta-fixable rule, which I have addressed in this PR.

In the future, I would like to include and fix the require-meta-docs-url rule as well, but I wanted to see if you were open to this addition to the codebase first.

It may be easier to append ?w=1 to the URL in your browser when reviewing this PR (like this), which will show the diff with whitespace ignored.

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it 👍

@thymikee thymikee requested a review from SimenB February 8, 2018 11:54
expectNotToEqualCase(node, null) || expectNotToBeCase(node, null);
module.exports = {
meta: {
fixable: 'code',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wee, awesome! This is a change I wanted to make, nice that this yells at us

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably make all of the rules be an object with a create function, even if they don't have any other properties

@SimenB
Copy link
Member

SimenB commented Feb 8, 2018

Feel free to send PR for require-meta-docs-url as well 🙂

@SimenB SimenB merged commit 5e5ceba into jest-community:master Feb 8, 2018
@macklinu macklinu deleted the add-eslint-plugin-eslint-plugin branch February 8, 2018 14:22
@macklinu
Copy link
Collaborator Author

macklinu commented Feb 8, 2018

Thanks, I'll open a PR for require-meta-docs-url later today 🙂

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.

3 participants