Skip to content

Commit b68695a

Browse files
authored
Update README.md (#375)
1 parent 1fd365e commit b68695a

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

README.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,43 @@ Yarn:
3636
yarn add -D @eslint-recommended/eslint-config-typescript
3737
```
3838

39+
pnpm:
40+
41+
```sh
42+
pnpm add -D @eslint-recommended/eslint-config-typescript
43+
```
44+
3945
## Usage
4046

4147
Add `@eslint-recommended/typescript` to the `extends` section of your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated).
4248

43-
```js
49+
JavaScript:
50+
51+
```javascript
4452
module.exports = {
4553
extends: [
4654
'@eslint-recommended/typescript'
4755
// add other rulesets here if needed
48-
],
49-
rules: {
50-
// override/add rules settings here if needed
51-
}
56+
]
57+
}
58+
```
59+
60+
YAML:
61+
62+
```yaml
63+
extends:
64+
- @eslint-recommended/typescript
65+
# add other rulesets here if needed
66+
```
67+
68+
JSON:
69+
70+
```jsonc
71+
{
72+
"extends": [
73+
"@eslint-recommended/typescript"
74+
// add other rulesets here if needed
75+
]
5276
}
5377
```
5478

0 commit comments

Comments
 (0)