-
Notifications
You must be signed in to change notification settings - Fork 101
feat(yarn-plugin-eslint): Yarn plugin with integrated ESLint command #3577
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
base: main
Are you sure you want to change the base?
Conversation
if (importedConfigFileModificationTime.get(filePath) !== mtime) { | ||
- delete require.cache[filePath]; | ||
+ if (require.cache) { | ||
+ delete require.cache[filePath]; | ||
+ } | ||
} |
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.
This needs to be upstreamed.
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.
Played around with this a bit and I'm not sure having everything built into the plugin is the right approach though we can start with this. I'll try to put together a draft package tomorrow to play with a slight alternative idea.
|
||
🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧 | ||
|
||
This is a Yarn plugin that integrates ESLint and opinionated (but overridable) |
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.
Reminder to add information about how it can be overridden and what the opinionated defaults are.
7948253
to
ac08e1d
Compare
ac08e1d
to
774951c
Compare
Description
Introduce a Yarn plugin with integrated ESLint and opinionated defaults
Test plan
cd incubator/yarn-plugin-eslint yarn bundle
.yarnrc.yml
:yarn rnx-lint