-
Notifications
You must be signed in to change notification settings - Fork 34
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
Replace eslint-config-cssnano with xo #105
Conversation
src/__tests__/test.js
Outdated
'<circle cx="50" cy="50" r="40" fill="yellow" />' + | ||
'<!-- test comment --></svg>'; | ||
const doctype = | ||
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'; |
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.
Maybe increase the printwidth (via prettierrc) so that the diff doesnt have so much linewraps?
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.
Possibly better might be to move these fixtures out into svg files and read them in from the test instead?
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.
Sounds good.
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.
@rejas Done, note that whitespace is controlled by xo --fix
for now rather than prettier --write
. I'd like at some point to get this all automated if possible. 👍
I'd like to deprecate https://github.com/ben-eb/eslint-config-cssnano if possible as I can't spare the time to maintain it. 🙂