Skip to content

Commit

Permalink
Release 10.1.0 (#81)
Browse files Browse the repository at this point in the history
## What's changed

* feat: enable strict mode by default for TypeScript
([#80](#80))
  • Loading branch information
puehringer authored Aug 5, 2024
2 parents 7758685 + 0397f09 commit 48a0230
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 5 deletions.
30 changes: 30 additions & 0 deletions config/tsconfig.lenient.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"compilerOptions": {
"module": "ES2022",
"target": "ES2021",
"importHelpers": true,
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"moduleResolution": "bundler",
"jsx": "react",
"allowJs": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"skipLibCheck": true,
"esModuleInterop": false,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"preserveWatchOutput": true
},
// Old "moduleResolution": "Node" option required for Cypress
// https://github.com/cypress-io/cypress/issues/26308#issuecomment-1663592648
//
// TODO: Remove when issue is resolved https://github.com/cypress-io/cypress/issues/27448
"ts-node": {
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node"
}
}
}
7 changes: 5 additions & 2 deletions config/tsconfig.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
"jsx": "react",
"allowJs": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"noImplicitAny": true,
"skipLibCheck": true,
"esModuleInterop": false,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitReturns": true,
},
// Old "moduleResolution": "Node" option required for Cypress
// https://github.com/cypress-io/cypress/issues/26308#issuecomment-1663592648
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visyn_scripts",
"description": "",
"version": "10.0.0",
"version": "10.1.0",
"author": {
"name": "datavisyn GmbH",
"email": "[email protected]",
Expand Down
6 changes: 4 additions & 2 deletions tests_fixtures/standalone_template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
"all": "yarn run lint:fix && yarn run test && yarn run build && yarn run dist",
"build": "yarn run clean && yarn run compile && yarn run copy",
"clean": "visyn_scripts clean build dist lib",
"compile:watch": "visyn_scripts compile --watch",
"compile": "visyn_scripts compile",
"compile:watch": "visyn_scripts compile --watch -p tsconfig.lenient.json",
"compile": "visyn_scripts compile -p tsconfig.lenient.json",
"compile:strict:watch": "visyn_scripts compile --watch",
"compile:strict": "visyn_scripts compile",
"copy": "visyn_scripts copy",
"cy:open": "cypress open",
"cy:run": "cypress run --e2e",
Expand Down
11 changes: 11 additions & 0 deletions tests_fixtures/standalone_template/tsconfig.lenient.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "visyn_scripts/config/tsconfig.lenient.template.json",
"compilerOptions": {
"outDir": "./dist",
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"tsd.d.ts"
]
}

0 comments on commit 48a0230

Please sign in to comment.