-
Notifications
You must be signed in to change notification settings - Fork 2
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
Disable lint warnings for dependencies #1889
Disable lint warnings for dependencies #1889
Conversation
@@ -103,7 +103,7 @@ export const Input = React.forwardRef(({ | |||
if (affixUpdatesNeeded) { | |||
updateStyles(newInputStyles); | |||
} | |||
}, [prefix, suffix]); | |||
}, [prefix, suffix, inputStyles]); |
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.
Be careful with these types of things...they can sometimes cause unexpected side effects. I would suggest you test these manually.
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.
@ju-Skinner - I did manually test these in the local dev environment for the doc site, and all the functionality and styles worked as expected. Anything in particular you suggest I look out for?
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.
Let's consider disabling these instead of trying to add the dependency. This could have an adverse side-effect that we may not catch until it's in prod.
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.
afe1e93
to
d2300e8
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.
Looks great and console is error-free
* chore: update Storybook source path for local and prod environment * Disable lint warnings for dependencies (#1889) * chore: update Storybook source path for local and prod environment * fix: resolve linting errors * fix: revert preview-head file change --------- Co-authored-by: Julian Skinner <[email protected]> * fix(label): convert icon to pine (#1896) * fix(Icon): adds back rest to icon component (#1898) * fix: adds back rest to icon * fix: add rest to element --------- Co-authored-by: Julian Skinner <[email protected]> Co-authored-by: Monica Wheeler <[email protected]>
* chore: update Storybook source path for local and prod environment * fix: resolve linting errors * fix: revert preview-head file change --------- Co-authored-by: Julian Skinner <[email protected]>
Description
yarn lint
was returning 14 warnings related to "React Hook useEffect or useCallback has a missing dependency", and "Unexpected console statement." This pull request disables linting for those warnings in order to prevent unintended side effects.Screenshots
No visual changes.
Testing in
sage-lib
a. http://localhost:4100/?path=/story/sage-drawer--default
b. http://localhost:4100/?path=/story/sage-input--default
c. http://localhost:4100/?path=/story/sage-panelcontrols--default
d. http://localhost:4100/?path=/story/sage-table--default-story
e. http://localhost:4100/?path=/story/sage-toast--default
f. http://localhost:4100/?path=/story/sage-switch--default
g. http://localhost:4100/?path=/story/sage-typeahead--default
h. http://localhost:4100/?path=/docs/sage-tooltip--default
Testing in
kajabi-products
Related
DSS-449
Warning specifics