# Warn when no print CSS is provided (`@greenpoint/no-missing-print-css`)

⚠️ This rule _warns_ in the ✅ `recommended` config.

<!-- end auto-generated rule header -->

## Rule Details

This rule aims to remind the use of CSS print to allow a more economic printing of the web page, indirectly reducing it's impact.

## Examples

Examples of **non-compliant** code for this rule:

```js

<head>
...
<link rel="stylesheet" type="text/css" href="styles.css">

...
</head>
```

Examples of **compliant** code for this rule:

```js

<head>
...
<link rel="stylesheet" type="text/css" href="screen.css" media="screen">
<link rel="stylesheet" href="impression.css" type="text/css" media="print">
...
</head>

```
## Note

This rule throws a warning for each file that do not have a print CSS provided. It can not consider the whole project, so you might want to disable thi rule once you have at least one print CSS provided for your project. 

## Further Reading

- [cnumr/best-practices/Provide a print CSS](https://github.com/cnumr/best-practices/blob/fc5a1f865bafb196e4775cce8835393751d40ed8/chapters/BP_027_en.md)
