We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f497e4 commit 981d3e7Copy full SHA for 981d3e7
lib/configs/esm.js
@@ -5,6 +5,7 @@ module.exports = {
5
],
6
7
"rules": {
8
+ // Reason: Error on use of any non-module API
9
"unicorn/prefer-module": "error",
10
// Reason: File paths and extensions must fully resolve for the current version of ESM
11
"import/extensions": [
@@ -18,6 +19,15 @@ module.exports = {
18
19
},
20
21
"overrides": [
22
+ {
23
+ "files": [
24
+ "**/*.{cjs}",
25
+ ],
26
+ "rules": {
27
+ // Reason: Using `.cjs` is an explicit opt-out of the package's default module behavior
28
+ "unicorn/prefer-module": "off",
29
+ },
30
31
{
32
"files": [
33
"**/*.{ts,tsx}",
0 commit comments