-
Notifications
You must be signed in to change notification settings - Fork 20
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
Extend recommended plugin rules in all configs #156
Conversation
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.
LGTM aside from the one question I had
"no-unused-expressions": "off", | ||
"no-unused-vars": "off", | ||
"no-use-before-define": "off", | ||
"no-useless-constructor": "off", | ||
"no-var": "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.
These four seem new 🤔 These aren't even TypeScript rules. What's going on here?
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 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.
Got it, thanks. Makes sense.
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.
LGTM!
This PR extends the recommended rules of the corresponding plugin for the
mocha
,nodejs
, andtypescript
configs.The
nodejs
recommended rules added a single, deprecated core rule, which we now disable in our config.The
mocha
recommended rules addsmocha/no-exports
, which seems good.The
typescript
recommended rules adds a bunch of previously absent rules to the snapshot for that config, however almost all of them are already disabled in our base config. In f30711b, I removed some extraneous rules, which you'll notice didn't affect the snapshot.Following this PR, I will remove all rules that we specify that are identical to those we find in the plugins' recommended rule sets. Then, we can publish a new major version of this package and start using it.