-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(linter): ensure config manipulations are run only if config is supported #19035
fix(linter): ensure config manipulations are run only if config is supported #19035
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
2efcea3
to
4c99252
Compare
@@ -8,6 +8,7 @@ describe('update-16-8-0-add-ignored-files migration', () => { | |||
|
|||
beforeEach(() => { | |||
tree = createTreeWithEmptyWorkspace(); | |||
tree.write('.eslintrc.json', '{}'); |
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 is necessary for isEslintConfigSupported
to work. Normally, the root eslintrc would be there
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
We do ad hoc checks for existence of eslint config when we detect error
Expected Behavior
We should use central
isEslintConfigSupported
function, which will help us to potentially add support for more config types and we would need to change just one function.E.g. migrating from yaml and classic js is fairly trivial after support of json.
Related Issue(s)
Related to #19026 and #19020