Skip to content

Commit 61097fe

Browse files
authored
Docs: Update int rule level to string (#13483)
1 parent c8f9c82 commit 61097fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/developer-guide/working-with-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,5 +733,5 @@ The thing that makes ESLint different from other linters is the ability to defin
733733
Runtime rules are written in the same format as all other rules. Create your rule as you would any other and then follow these steps:
734734

735735
1. Place all of your runtime rules in the same directory (e.g., `eslint_rules`).
736-
2. Create a [configuration file](../user-guide/configuring.md) and specify your rule ID error level under the `rules` key. Your rule will not run unless it has a value of `1` or `2` in the configuration file.
736+
2. Create a [configuration file](../user-guide/configuring.md) and specify your rule ID error level under the `rules` key. Your rule will not run unless it has a value of `"warn"` or `"error"` in the configuration file.
737737
3. Run the [command line interface](../user-guide/command-line-interface.md) using the `--rulesdir` option to specify the location of your runtime rules.

0 commit comments

Comments
 (0)