Skip to content

Commit a508678

Browse files
committed
docs: eslint-plugin-putout: extends
1 parent 95c59f7 commit a508678

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/eslint-plugin-putout/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ import {recommended} from 'eslint-plugin-putout';
5050
export default recommended;
5151
```
5252

53+
Or with [`defineConfig`](https://eslint.org/blog/2025/03/flat-config-extends-define-config-global-ignores/):
54+
55+
```js
56+
import {defineConfig} from 'eslint/config';
57+
import putout from 'eslint-plugin-putout';
58+
59+
export default defineConfig({
60+
plugins: {
61+
putout,
62+
},
63+
extends: [
64+
"putout/recommended",
65+
]
66+
});
67+
```
68+
5369
Then configure the rules you want to use under the rules section.
5470

5571
```json

0 commit comments

Comments
 (0)