Skip to content

Commit c7931eb

Browse files
committed
Added blurb in README about the create-rule script
1 parent ae41d31 commit c7931eb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ You can also enable all the recommended rules at once. Add `plugin:jsx-a11y/reco
111111
- [scope](docs/rules/scope.md): Enforce `scope` prop is only used on `<th>` elements.
112112
- [tabindex-no-positive](docs/rules/tabindex-no-positive.md): Enforce `tabIndex` value is not greater than zero.
113113

114+
## Creating a new rule
115+
116+
If you are developing new rules for this project, you can use the `create-rule`
117+
script to scaffold the new files.
118+
119+
```
120+
$ ./scripts/create-rule.js my-new-rule
121+
```
122+
114123
## License
115124

116125
eslint-plugin-jsx-a11y is licensed under the [MIT License](LICENSE.md).

0 commit comments

Comments
 (0)