-
Notifications
You must be signed in to change notification settings - Fork 49.2k
Refactor ESLint configuration to enable better IDE integration #13914
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Details of bundled changes.Comparing: e3a7b96...416e45c scheduler
Generated by 🚫 dangerJS |
}, | ||
rules: { | ||
'no-var': ERROR, | ||
strict: OFF, |
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.
Had to turn this rule off because strict: ERROR
with sourceType: 'module'
causes errors such as
/react/packages/create-subscription/index.js
10:1 error 'use strict' is unnecessary inside of modules strict
@@ -10,6 +10,7 @@ | |||
'use strict'; | |||
|
|||
(function(global, factory) { | |||
// eslint-disable-next-line no-unused-expressions |
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.
Instead of adding these to each UMD bundle, I could add another overrides
section disabling this rule. Something like
// .eslintrc.js
{
overrides: [
// ...
{
files: ['packages/*/npm/umd/*.js'],
rules: {
'no-unused-expressions': OFF,
}
}
]
}
Thanks! |
…ook#13914) * Refactor ESLint configuration to enable better IDE integration * Minor tweaks
…ook#13914) * Refactor ESLint configuration to enable better IDE integration * Minor tweaks
Per #11794 (comment), this change ensures a single ESLint config is used for source code, Node.js scripts, and
npm
files via theoverrides
option, which should allow IDEs to provide lint feedback inline without having to useyarn linc
.