Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c03b6ed

Browse files
borekbbradzacher
authored andcommitted
docs(eslint-plugin): Add eslint:recommended to a usage example (typescript-eslint#591)
1 parent 861844d commit c03b6ed

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/eslint-plugin/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,26 @@ Then configure the rules you want to use under the rules section.
4343
}
4444
```
4545

46-
You can also enable all the recommended rules at once. Add `plugin:@typescript-eslint/recommended` in extends:
46+
You can also enable all the recommended rules for our plugin. Add `plugin:@typescript-eslint/recommended` in extends:
4747

4848
```json
4949
{
5050
"extends": ["plugin:@typescript-eslint/recommended"]
5151
}
5252
```
5353

54+
You can also use [eslint:recommended](https://eslint.org/docs/rules/) with this plugin. Add both `eslint:recommended` and `plugin:@typescript-eslint/eslint-recommended`:
55+
56+
```json
57+
{
58+
"extends": [
59+
"eslint:recommended",
60+
"plugin:@typescript-eslint/eslint-recommended",
61+
"plugin:@typescript-eslint/recommended"
62+
]
63+
}
64+
```
65+
5466
If you want to use rules which require type information, you will need to specify a path to your tsconfig.json file in the "project" property of "parserOptions".
5567

5668
```json

0 commit comments

Comments
 (0)