Skip to content

Commit c245636

Browse files
authored
fix: missing file extension with ESM configuration (#443)
1 parent fe32950 commit c245636

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.eslintrc_esm.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
const baseEslintrc = require('./.eslintrc')
1+
// CommonJS allows omitting `.js` but not `.cjs`
2+
// eslint-disable-next-line import/extensions
3+
const baseEslintrc = require('./.eslintrc.cjs')
24

35
// ESLint configuration for packages using pure ES modules.
46
// This should be merged to the main `.eslintrc.js` once all our repositories

0 commit comments

Comments
 (0)