Skip to content

Commit 48a0230

Browse files
authored
Release 10.1.0 (#81)
## What's changed * feat: enable strict mode by default for TypeScript ([#80](#80))
2 parents 7758685 + 0397f09 commit 48a0230

File tree

5 files changed

+51
-5
lines changed

5 files changed

+51
-5
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"compilerOptions": {
3+
"module": "ES2022",
4+
"target": "ES2021",
5+
"importHelpers": true,
6+
"sourceMap": true,
7+
"declaration": true,
8+
"declarationMap": true,
9+
"moduleResolution": "bundler",
10+
"jsx": "react",
11+
"allowJs": true,
12+
"experimentalDecorators": true,
13+
"noImplicitAny": false,
14+
"skipLibCheck": true,
15+
"esModuleInterop": false,
16+
"resolveJsonModule": true,
17+
"allowSyntheticDefaultImports": true,
18+
"preserveWatchOutput": true
19+
},
20+
// Old "moduleResolution": "Node" option required for Cypress
21+
// https://github.com/cypress-io/cypress/issues/26308#issuecomment-1663592648
22+
//
23+
// TODO: Remove when issue is resolved https://github.com/cypress-io/cypress/issues/27448
24+
"ts-node": {
25+
"compilerOptions": {
26+
"module": "ESNext",
27+
"moduleResolution": "Node"
28+
}
29+
}
30+
}

config/tsconfig.template.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
"jsx": "react",
1111
"allowJs": true,
1212
"experimentalDecorators": true,
13-
"noImplicitAny": false,
13+
"noImplicitAny": true,
1414
"skipLibCheck": true,
1515
"esModuleInterop": false,
1616
"resolveJsonModule": true,
1717
"allowSyntheticDefaultImports": true,
18-
"preserveWatchOutput": true
18+
"preserveWatchOutput": true,
19+
"strict": true,
20+
"noUncheckedIndexedAccess": true,
21+
"noImplicitReturns": true,
1922
},
2023
// Old "moduleResolution": "Node" option required for Cypress
2124
// https://github.com/cypress-io/cypress/issues/26308#issuecomment-1663592648

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visyn_scripts",
33
"description": "",
4-
"version": "10.0.0",
4+
"version": "10.1.0",
55
"author": {
66
"name": "datavisyn GmbH",
77
"email": "[email protected]",

tests_fixtures/standalone_template/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
"all": "yarn run lint:fix && yarn run test && yarn run build && yarn run dist",
3030
"build": "yarn run clean && yarn run compile && yarn run copy",
3131
"clean": "visyn_scripts clean build dist lib",
32-
"compile:watch": "visyn_scripts compile --watch",
33-
"compile": "visyn_scripts compile",
32+
"compile:watch": "visyn_scripts compile --watch -p tsconfig.lenient.json",
33+
"compile": "visyn_scripts compile -p tsconfig.lenient.json",
34+
"compile:strict:watch": "visyn_scripts compile --watch",
35+
"compile:strict": "visyn_scripts compile",
3436
"copy": "visyn_scripts copy",
3537
"cy:open": "cypress open",
3638
"cy:run": "cypress run --e2e",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "visyn_scripts/config/tsconfig.lenient.template.json",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
},
6+
"include": [
7+
"src/**/*.ts",
8+
"src/**/*.tsx",
9+
"tsd.d.ts"
10+
]
11+
}

0 commit comments

Comments
 (0)