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 internal rule that validates meta property (fixes #6383) #6608

Merged
merged 1 commit into from Jul 13, 2016

Conversation

vitorbal
Copy link
Member

@vitorbal vitorbal commented Jul 6, 2016

Add a custom rule to verify that all core rules have the correct meta property format.
As discussed in #6383 this is just an internal custom rule for now and not a plugin.

I modified the Makefile's lint task so it find our "internal rules" directory. Feedback welcome on a better folder name.

@eslintbot
Copy link

LGTM

@@ -12,3 +12,5 @@ versions.json
.eslintcache
.cache
/packages/**/node_modules
.vscode/setting.json
.sublimelinterrc
Copy link
Member Author

Choose a reason for hiding this comment

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

Are there any other editor lint settings that we should add?

Copy link
Member

Choose a reason for hiding this comment

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

We just add them as we go, so I wouldn't worry about it right now.

@platinumazure
Copy link
Member

Feedback welcome on a better folder name.

I'm okay with the folder name, but what do you think about prefixing the rule with "eslint-" instead of "internal-"?

@nzakas
Copy link
Member

nzakas commented Jul 8, 2016

@platinumazure I think internal is a lot clearer.

/**
* Gets the property of the Object node passed in that has the name specified.
*
* @param {String} property Name of the property to return.
Copy link
Member

Choose a reason for hiding this comment

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

{string} (lowercase)

@nzakas
Copy link
Member

nzakas commented Jul 8, 2016

@vitorbal this looks great! Just a few small things to address.

@vitorbal
Copy link
Member Author

vitorbal commented Jul 9, 2016

Thanks everyone for the great feedback! I will get to this later this weekend or sometime next week!

@eslintbot
Copy link

LGTM

@eslintbot
Copy link

LGTM

@nzakas
Copy link
Member

nzakas commented Jul 13, 2016

Lgtm. Awesome work.

@nzakas nzakas merged commit 5985eb2 into eslint:master Jul 13, 2016
@vitorbal
Copy link
Member Author

Thanks everyone! 😄

@vitorbal vitorbal deleted the internal-rules branch July 14, 2016 07:42
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants