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 <okonet@users.noreply.github.com>
Co-authored-by: Iiro Jäppinen <iiro@jappinen.fi>
  • Loading branch information
3 people committed 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
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.