-
Notifications
You must be signed in to change notification settings - Fork 0
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(html-sanitize): replace html-sanitize with dom-purify because of bug #81
Conversation
package bug: apostrophecms/sanitize-html#547 postcss should not be used in a browser
@@ -93,7 +94,6 @@ | |||
"@types/react-router": "5.1.18", | |||
"@types/react-router-dom": "5.3.3", | |||
"@types/react-table": "7.7.10", | |||
"@types/sanitize-html": "2.6.2", | |||
"@typescript-eslint/eslint-plugin": "^5.41.0", | |||
"@typescript-eslint/parser": "5.11.0", | |||
"@viaa/avo2-components": "3.1.1", |
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.
Duplicate dependency?
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.
You added that.
One is a peer dependency, but you added it to dev dependencies as well to make sure it is always installed in the developer machine.
although i ran into the issue a few times where i update the peer dependency and nothing changes, because i also need to change it in the dev dependency section
import { compact, get } from 'lodash-es'; | ||
import moment from 'moment'; | ||
import React, { FunctionComponent } from 'react'; |
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.
Doesn't this throw linting warnings about import groups?
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.
no for me it doesn't
might have something to do with the monorepo and split version of the .eslint config file
I'll look at it some other time.
package bug:
apostrophecms/sanitize-html#547
postcss should not be used in a browser