Skip to content

Commit 6a0d00f

Browse files
authored
Use @tsconfig/strictest for pages (#23)
* Use @tsconfig/strictest for pages * Update entry
1 parent 979f3ed commit 6a0d00f

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- Added type-checking for test, by [@compulim](https://github.com/compulim), in PR [#22](https://github.com/compulim/use-ref-from/pull/22)
13-
- Updates `tsconfig.json` to extend from [`@tsconfig/strictest`](https://npmjs.com/package/@tsconfig/strictest), by [@compulim](https://github.com/compulim), in PR [#21](https://github.com/compulim/use-ref-from/pull/21)
13+
- Updates `tsconfig.json` to extend from [`@tsconfig/strictest`](https://npmjs.com/package/@tsconfig/strictest), by [@compulim](https://github.com/compulim), in PR [#21](https://github.com/compulim/use-ref-from/pull/21) and PR [#23](https://github.com/compulim/use-ref-from/pull/23)
1414
- Development dependencies
1515
- [`@types/[email protected]`](https://npmjs.com/package/@types/react)
1616
- [`@types/[email protected]`](https://npmjs.com/package/@types/react-dom)

Diff for: packages/pages/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"author": "William Wong (https://github.com/compulim)",
1919
"license": "MIT",
2020
"devDependencies": {
21+
"@tsconfig/strictest": "^2.0.2",
2122
"@types/react": "^18.2.21",
2223
"@types/react-dom": "^18.2.7",
2324
"esbuild": "^0.19.2",

Diff for: packages/pages/src/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"noEmit": true,
88
"strict": true,
99
"target": "ESNext"
10-
}
10+
},
11+
"extends": "@tsconfig/strictest/tsconfig.json"
1112
}

Diff for: packages/use-ref-from/babel.jest.config.json

-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
{
2-
"plugins": [
3-
[
4-
"@babel/plugin-transform-runtime",
5-
{
6-
"corejs": 3,
7-
"version": "7.21.0"
8-
}
9-
]
10-
],
112
"presets": [
123
"@babel/preset-typescript",
134
[

Diff for: packages/use-ref-from/src/tsconfig.precommit.production.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"noEmit": true,
88
"strict": true
99
},
10-
"exclude": ["**/*.spec.ts", "**/*.test.ts", "__test__/**/*"],
10+
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx", "__tests__/**/*"],
1111
"extends": "@tsconfig/strictest/tsconfig.json"
1212
}

Diff for: packages/use-ref-from/src/tsconfig.precommit.test.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"strict": true
99
},
1010
"extends": "@tsconfig/recommended/tsconfig.json",
11-
"include": ["**/*.spec.ts", "**/*.test.ts", "__test__/**/*"]
11+
"include": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx", "__tests__/**/*"]
1212
}

0 commit comments

Comments
 (0)