Skip to content

Commit

Permalink
feat(lint-staged): Extend JS modules list
Browse files Browse the repository at this point in the history
  • Loading branch information
langri-sha committed Apr 29, 2024
1 parent ff1193d commit 6c74c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lint-staged/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const eslintCli = new ESLint({
* @type {import('lint-staged').Config}
*/
module.exports = {
'*.{js,jsx,ts,tsx}': async (files) => {
'*.{js,cjs,mjs,jsx,ts,mts,tsx}': async (files) => {
/** @type {[string, boolean][]} */
const ignored = await Promise.all(
files.map(async (file) => [file, await eslintCli.isPathIgnored(file)]),
Expand Down

0 comments on commit 6c74c16

Please sign in to comment.