-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from 10up/feature/setup-repository-for-typesc…
…ript Introduce TypeScript to Repository
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"jsx": "preserve", | ||
"target": "esnext", | ||
"module": "esnext", | ||
"lib": [ | ||
"dom", | ||
"esnext" | ||
], | ||
"declaration": true, | ||
"declarationMap": true, | ||
"composite": true, | ||
"emitDeclarationOnly": true, | ||
"isolatedModules": true, | ||
/* Strict Type-Checking Options */ | ||
"strict": true, | ||
/* Additional Checks */ | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true, | ||
/* Module Resolution Options */ | ||
"moduleResolution": "node", | ||
/* This needs to be false so our types are possible to consume without setting this */ | ||
"esModuleInterop": false, | ||
"resolveJsonModule": true, | ||
"typeRoots": [ | ||
"./node_modules/@types" | ||
], | ||
"types": [] | ||
}, | ||
"exclude": [ | ||
"cypress/**", | ||
"example/**", | ||
"node_modules/**", | ||
"dist/**", | ||
"webpack.config.js", | ||
"cypress.config.js", | ||
] | ||
} |