Skip to content

Commit

Permalink
fix: ESM-specific configuration bugs (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Feb 3, 2022
1 parent 316971e commit d37f52d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc_esm.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const baseEslintrc = require('./.eslintrc.cjs')
module.exports = {
...baseEslintrc,
parserOptions: {
...baseEslintrc.parserOptions,
sourceType: 'module',
},
rules: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "commonjs",
"exports": {
".": "./.eslintrc.cjs",
"./esm": "./.eslintrc_esm.cjs",
"./.eslintrc_esm.cjs": "./.eslintrc_esm.cjs",
"./.prettierrc.json": "./.prettierrc.json"
},
"main": "./.eslintrc.cjs",
Expand Down

0 comments on commit d37f52d

Please sign in to comment.