-
Notifications
You must be signed in to change notification settings - Fork 687
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
[chore] Update eslint dep #2000
Conversation
|
rules: { | ||
'no-undef': 'off', | ||
'no-useless-escape': '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.
Why do we have to define these two rules everywhere?
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.
Because we disregard them throughout the application. The alternative would be to add these rules to magento-eslint
.
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 added these to magento-eslint and published but I'm reconsidering that... I don't think we should be disabling no-undef
. We should be updating some config with those values somewhere.
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.
Created PWA-207.
packages/upward-js/lib/resolvers/__tests__/TemplateResolver.test.js
Outdated
Show resolved
Hide resolved
005ec01
to
2a77128
Compare
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.
Approved, because updating all our code to satisfy decent lint rules is important, but not so important right now that we want all that code churn.
Description
This is a follow up to the
magento-eslint
security issue. I updated our usage tov1.5.0
and in doing so had to handle a bunch of new warnings/errors. I also had to update some peer dependencies and install the config as a dependency to buildpack and peregrine where it was not before.Question: Should this be a patch? People using it with custom components may start getting warnings for things.
Related Issue
Closes PWA-193.
Acceptance
Verification Stakeholders
@jimbo @zetlen
Specification
Verification Steps
yarn && yarn lint
, no errors.Screenshots / Screen Captures (if appropriate)
Checklist