We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c14a40f commit 011548bCopy full SHA for 011548b
1 file changed
docs/developer-guide/formatters.md
@@ -79,6 +79,20 @@ And the second argument (`returnValue`) is an object with one or more of the fol
79
}
80
```
81
82
+## Passing arguments
83
+
84
+You can use environmental variables in your formatter. For example, pass `SKIP_WARNINGS`:
85
86
+```console
87
+SKIP_WARNINGS=true stylelint "*.css" --custom-formatter ./my-formatter.js
88
+```
89
90
+Alternatively, you can create a separate formatting program and pipe the output from the built-in JSON formatter into it:
91
92
93
+stylelint -f json "*.css" | my-program-that-reads-JSON --option
94
95
96
## `stylelint.formatters`
97
98
stylelint's internal formatters are exposed publicly in `stylelint.formatters`.
0 commit comments