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: use eslint-plugin-rulesdir instead of --rulesdir for self-linting #9164
Conversation
LGTM |
@not-an-aardvark, thanks for your PR! By analyzing the history of the files in this pull request, we identified @mysticatea, @aladdin-add and @btmills to be potential reviewers. |
d77cd88
to
41ab1aa
Compare
LGTM |
"eslint-plugin/prefer-placeholders": "error", | ||
"eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"], | ||
"eslint-plugin/test-case-property-ordering": "error", | ||
"eslint-plugin/test-case-shorthand-strings": "error" |
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.
"eslint-plugin/no-identical-tests" has been added in recommended
.
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.
Good catch, but I think we should remove it in a separate PR -- this PR is only supposed to change the format of the config file without modifying how it works.
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.
it has been removed in the master. so I think better not to add it again.
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.
Oh, oops. I hadn't realized that it was removed on master
.
@@ -1,3 +1,3 @@ | |||
rules: | |||
internal-no-invalid-meta: "error" | |||
internal-consistent-docs-description: "error" | |||
rulesdir/no-invalid-meta: "error" |
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.
what about change this to .eslintrc.js
-- for consistency.
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.
¯\_(ツ)_/¯ I'm fine with this, but I was assuming people would prefer to keep files as .yml
wherever possible, and only use .js
config files when necessary.
LGTM |
27bd80d
to
f403913
Compare
LGTM |
f403913
to
98a3685
Compare
LGTM |
LGTM |
What is the purpose of this pull request? (put an "X" next to item)
[x] Other, please explain:
What changes did you make? (Give an overview)
This updates our internal linting build to use
eslint-plugin-rulesdir
rather than the--rulesdir
CLI flag.We've been talking about deprecating
rulesdir
for awhile, so I think it would be good for us to dogfood some of the alternatives for using project-specific linting rules.#9163 is another way of solving the same problem. This PR is mutually exclusive with #9163.
Is there anything you'd like reviewers to focus on?
We should choose between this approach and the approach in #9163. Which do you prefer?