-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(application-config): shared
tsconfig.json
(#2628)
* feat: add shareable tsconfig as a package * chore: add changeset * chore: move tsconfig to application-config package chore: yarn.lock changes * chore: include tsconfig in the npm package * refactor(config): adjust tsconfig naming and default options Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
- Loading branch information
Showing
3 changed files
with
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'@commercetools-frontend/application-config': minor | ||
--- | ||
|
||
Expose a base `tsconfig-mc-app.json` file to be used in a Custom Application TypeScript project. | ||
|
||
In your `tsconfig.json` file, extend the base config from the `@commercetools-frontend/application-config` package: | ||
|
||
```json | ||
{ | ||
"extends": "@commercetools-frontend/application-config/tsconfig-mc-app.json" | ||
} | ||
``` |
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 |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
"ssr", | ||
"scripts", | ||
"schema.json", | ||
"tsconfig-mc-app.json", | ||
"package.json", | ||
"LICENSE", | ||
"README.md" | ||
|
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,31 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "Custom Application", | ||
|
||
"compilerOptions": { | ||
"allowJs": false, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"importHelpers": true, | ||
"isolatedModules": true, | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "@emotion/react", | ||
"lib": ["ESNext", "DOM"], | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"preserveSymlinks": true, | ||
"removeComments": true, | ||
"resolveJsonModule": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"strictNullChecks": true, | ||
"stripInternal": true, | ||
"target": "ES2022" | ||
} | ||
} |
0b3ea75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for merchant-center-application-kit ready!
✅ Preview
https://merchant-center-application-pp3s1645q-commercetools.vercel.app
Built with commit 0b3ea75.
This pull request is being automatically deployed with vercel-action