Skip to content

Commit

Permalink
Add new CommonJS babel config files (#497)
Browse files Browse the repository at this point in the history
babel now allows .cjs config files to allow ESM->CommonJS compatibility.
  • Loading branch information
alopix authored Dec 5, 2021
1 parent d9f4e88 commit 856d476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rules/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ const items = [
// Babel configs
"babel.config.json",
"babel.config.js",
"babel.config.cjs",
".babelrc",
".babelrc.json",
".babelrc.js",
".babelrc.cjs",
// TS configs
"tsconfig.json",
];
Expand Down

0 comments on commit 856d476

Please sign in to comment.