Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Sep 16, 2019
1 parent 1ddfc4c commit 006e6b0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -400,6 +400,20 @@ const success = await lintStaged({
})
```

You can also pass config directly with `config` option:


```js
const success = await lintStaged({
config: {
'*.js': 'eslint --fix'
},
shell: false,
quiet: false,
debug: false
})
```

### Using with JetBrains IDEs _(WebStorm, PyCharm, IntelliJ IDEA, RubyMine, etc.)_

_**Update**_: The latest version of JetBrains IDEs now support running hooks as you would expect.
Expand Down

0 comments on commit 006e6b0

Please sign in to comment.