Skip to content

add rule provide-print-css - #22

Merged
utarwyn merged 5 commits into
green-code-initiative:mainfrom
elisecodedestrucs:no-missing-print-css
Sep 10, 2023
Merged

utarwyn merged 5 commits into
green-code-initiative:mainfrom
elisecodedestrucs:no-missing-print-css

Conversation

@elisecodedestrucs

Copy link
Copy Markdown
Contributor

this rule aims to reming the developper to privide a print css to allow a more efficient and economical print

@utarwyn utarwyn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this rule too! 💯

Comment thread eslint-plugin/tests/lib/rules/no-missing-print-css.js
Comment thread eslint-plugin/docs/rules/no-missing-print-css.md Outdated
Comment thread eslint-plugin/README.md Outdated
@elisecodedestrucs
elisecodedestrucs force-pushed the no-missing-print-css branch 3 times, most recently from ed933c6 to c01564d Compare August 10, 2023 08:28

@utarwyn utarwyn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! 💯

But one more thing: @elisecodedestrucs does this rule also raise a warning in files that contain sub-components (e.g. just the menu, navbar, footer, etc.)? I don't think any warnings should be raised except in the JSX containing the header (with head/meta tags)

@utarwyn utarwyn changed the title add rule no-missing-print-css add rule provide-print-css Aug 16, 2023
@utarwyn
utarwyn merged commit 2886107 into green-code-initiative:main Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗃️ rule Impacts a rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants