Skip to content

Commit 2ffa591

Browse files
authored
docs: show importing configs in shared configs page (typescript-eslint#9562)
docs:show importing configs in shared configs page
1 parent 0b4ebef commit 2ffa591

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/users/Shared_Configurations.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ import TabItem from '@theme/TabItem';
1717
See [Getting Started > Quickstart](../getting-started/Quickstart.mdx) first to set up your ESLint configuration file.
1818
[Packages > typescript-eslint](../packages/TypeScript_ESLint.mdx) includes more documentation on the `tseslint` helper.
1919

20+
```js title="eslint.config.js"
21+
// @ts-check
22+
23+
import eslint from '@eslint/js';
24+
import tseslint from 'typescript-eslint';
25+
26+
export default tseslint.config(
27+
eslint.configs.recommended,
28+
...tseslint.configs.recommended,
29+
);
30+
```
31+
2032
### Projects Without Type Checking
2133

2234
If your project does not enable [typed linting](../getting-started/Typed_Linting.mdx), we suggest enabling the [`recommended`](#recommended) and [`stylistic`](#stylistic) configurations to start:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy