Skip to content

Commit

Permalink
fix: add support for .cjs configs (#909)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Okonetchnikov <[email protected]>
Co-authored-by: Iiro Jäppinen <[email protected]>
  • Loading branch information
3 people authored Oct 16, 2020
1 parent 67a4d06 commit 36e7e58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ function loadConfig(configPath) {
'.lintstagedrc.yaml',
'.lintstagedrc.yml',
'.lintstagedrc.js',
'.lintstagedrc.cjs',
'lint-staged.config.js',
'lint-staged.config.cjs',
],
})

Expand Down

0 comments on commit 36e7e58

Please sign in to comment.