Skip to content

Commit 56d2939

Browse files
authored
docs: README: ESLint integration
1 parent 4b298fa commit 56d2939

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,16 +2804,14 @@ const [source, places] = await eslint({
28042804
If you want to apply 🐊**Putout** transformations using [`putout/putout`](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout#readme) **ESLint** rule, enable 🐊**Putout** with the same called flag lowercased:
28052805

28062806
```js
2807+
import {recommended} from 'eslint-plugin-putout';
2808+
28072809
const [source, places] = await eslint({
28082810
name: 'hello.js',
28092811
code: `const t = 'hi'\n`,
28102812
fix: true,
28112813
putout: true,
2812-
config: {
2813-
extends: [
2814-
'plugin:putout/recommended',
2815-
],
2816-
},
2814+
config: recommended,
28172815
});
28182816
```
28192817

0 commit comments

Comments
 (0)