From 36e7e5843b6b8b8744488b4db536d14d2e85e798 Mon Sep 17 00:00:00 2001 From: Moshe Brevda Date: Fri, 16 Oct 2020 15:43:12 +0300 Subject: [PATCH] fix: add support for .cjs configs (#909) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Andrey Okonetchnikov Co-authored-by: Iiro Jäppinen --- lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/index.js b/lib/index.js index f83b45329..0c1fb27da 100644 --- a/lib/index.js +++ b/lib/index.js @@ -31,7 +31,9 @@ function loadConfig(configPath) { '.lintstagedrc.yaml', '.lintstagedrc.yml', '.lintstagedrc.js', + '.lintstagedrc.cjs', 'lint-staged.config.js', + 'lint-staged.config.cjs', ], })