Skip to content

Commit 72fc89d

Browse files
authored
Docs: add explanation to prefer-output-null rule doc (#124)
1 parent ac2259c commit 72fc89d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/rules/prefer-output-null.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
(fixable) The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) automatically fixes problems reported by this rule.
44

5+
Instead of repeating the test case `code`, using `output: null` is more concise and makes it easier to distinguish whether a test case provides an autofix.
6+
57
## Rule Details
68

79
The rule reports an error if it encounters a test case where the output is the same as the code.

0 commit comments

Comments
 (0)