Skip to content

Commit 8b11060

Browse files
chore: migrate from CJS to ESM (#456)
* fix inquirer import * Revert fixtures default-ing * recreate package-lock.json --------- Co-authored-by: Leah Wasser <[email protected]>
1 parent 6f8e311 commit 8b11060

40 files changed

Lines changed: 178 additions & 312 deletions

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
ignore: [
33
'**/__snapshots__/**',
44
'**/__tests__/**',
@@ -10,7 +10,7 @@ module.exports = {
1010
'@babel/preset-env',
1111
{
1212
targets: {node: '22.22.0'},
13-
modules: 'commonjs',
13+
modules: false,
1414
},
1515
],
1616
],
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ export default defineConfig([
1515
globals: globals.node,
1616
},
1717
rules: {
18-
'import/no-unresolved': ['error', {ignore: ['^eslint/', '^prettier$']}],
18+
'import/no-unresolved': [
19+
'error',
20+
{ignore: ['^eslint/', '^prettier$', '^yargs']},
21+
],
1922
'import/no-extraneous-dependencies': 'error',
2023
'import/default': 'off',
2124
'import/namespace': 'off',

0 commit comments

Comments
 (0)