Skip to content

Commit

Permalink
Add allowSyntheticDefaultImports = true
Browse files Browse the repository at this point in the history
Because of validateNPMPackageName.
Otherwise,

```
14 import validateNPMPackageName from "validate-npm-package-name";
          ~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@types/validate-npm-package-name/index.d.ts:29:1
    29 export = validate;
       ~~~~~~~~~~~~~~~~~~
    This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.

Found 1 error in index.ts:14
```
  • Loading branch information
ManasJayanth committed Jul 12, 2024
1 parent b0e1bda commit 76157fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"lib": ["ESNext"],
"moduleResolution": "Node",
"noEmit": true,
"allowSyntheticDefaultImports": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
Expand Down

0 comments on commit 76157fe

Please sign in to comment.