Skip to content

Commit

Permalink
doc: Improve id-denylist documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie303 committed Aug 21, 2022
1 parent 0e03c33 commit 85f39af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/rules/id-denylist.md
Expand Up @@ -38,6 +38,8 @@ For example, to restrict the use of common generic identifiers:
}
```

**Note:** First element of the array specifies the severity of the rule and it should be one of the following: 0 = "off", 1 = "warn", 2 = "error". Rest are the disallowed identifiers you want to add.

Examples of **incorrect** code for this rule with sample `"data", "callback"` restricted identifiers:

::: incorrect
Expand Down

0 comments on commit 85f39af

Please sign in to comment.