File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Almost all of these rules require the TypeScript parser for ESLint and are indic
17
17
18
18
See [ typescript-eslint's Getting Started] ( https://typescript-eslint.io/getting-started ) for a full ESLint setup guide.
19
19
20
- Then use the ` recommended ` configuration in your ` eslint.config.mjs ` :
20
+ Then use the ` recommended ` configuration in your ` eslint.config.mjs ` and enable typed linting :
21
21
22
22
``` js
23
23
// @ts-check
@@ -26,6 +26,7 @@ import rxjsX from 'eslint-plugin-rxjs-x';
26
26
27
27
export default tseslint .config ({
28
28
extends: [
29
+ ... tseslint .configs .recommended ,
29
30
rxjsX .configs .recommended ,
30
31
],
31
32
languageOptions: {
@@ -36,6 +37,10 @@ export default tseslint.config({
36
37
});
37
38
```
38
39
40
+ The above example uses ` typescript-eslint ` 's built-in config to set up the TypeScript parser for us.
41
+ Enabling ` projectService ` then turns on typed linting.
42
+ See [ Linting with Type Information] ( https://typescript-eslint.io/getting-started/typed-linting/ ) for details.
43
+
39
44
## Configs
40
45
41
46
<!-- begin auto-generated configs list -->
You can’t perform that action at this time.
0 commit comments