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

Skip to content

Commit df15575

Browse files
authored
Fix name of plugin in getting started instructions
`plugin:@typescript-eslint/recommended` should now be `@typescript-eslint/eslint-recommended`.
1 parent 1c1b572 commit df15575

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/getting-started/linting/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
],
2626
extends: [
2727
'eslint:recommended',
28-
'plugin:@typescript-eslint/recommended',
28+
'plugin:@typescript-eslint/eslint-recommended',
2929
],
3030
};
3131
```
@@ -41,7 +41,7 @@ Explaining the important bits:
4141
- This allows you to use the rules within your codebase.
4242
- `extends: [ ... ]` tells ESLint that your config extends the given configurations.
4343
- `eslint:recommended` is ESLint's inbuilt "recommended" config - it turns on a small, sensible set of rules which lint for well-known best-practices.
44-
- `plugin:@typescript-eslint/recommended` is our "recommended" config - it's just like `eslint:recommended`, except it only turns on rules from our TypeScript-specific plugin.
44+
- `plugin:@typescript-eslint/eslint-recommended` is our "recommended" config - it's just like `eslint:recommended`, except it only turns on rules from our TypeScript-specific plugin.
4545

4646
Further reading:
4747

@@ -109,7 +109,7 @@ To use one of these complete config packages, you would replace the `extends` wi
109109
],
110110
extends: [
111111
- 'eslint:recommended',
112-
- 'plugin:@typescript-eslint/recommended',
112+
- 'plugin:@typescript-eslint/eslint-recommended',
113113
+ 'airbnb-typescript',
114114
],
115115
};
@@ -132,7 +132,7 @@ Using this config is as simple as adding it to the end of your `extends`:
132132
],
133133
extends: [
134134
'eslint:recommended',
135-
'plugin:@typescript-eslint/recommended',
135+
'plugin:@typescript-eslint/eslint-recommended',
136136
+ 'prettier',
137137
],
138138
};
@@ -160,7 +160,7 @@ Every plugin that is out there includes documentation on the various rules they
160160
],
161161
extends: [
162162
'eslint:recommended',
163-
'plugin:@typescript-eslint/recommended',
163+
'plugin:@typescript-eslint/eslint-recommended',
164164
+ 'plugin:jest/recommended',
165165
],
166166
};

0 commit comments

Comments
 (0)