@samitouri / QOS-React-2 / commits / c416fb16ca

[make-read-only] Make tsconfig more consistent with other pkgs

Lauren Tan committed Jun 15, 2023 at 12:52 UTC c416fb16ca427fd022e33372acd1e1f756f02c70
2 files changed +17 -14
compiler/forget/packages/make-read-only-util/src/__tests__/makeReadOnly-test.ts renamed
+1 -1
@@ -5,7 +5,7 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -import buildMakeReadOnly from "./makeReadOnly";
8 +import buildMakeReadOnly from "../makeReadOnly";
9
10 describe("makeReadOnly", () => {
11 let logger: jest.Func;
compiler/forget/packages/make-read-only-util/tsconfig.json
+16 -13
@@ -1,17 +1,20 @@
1 {
2 + "extends": "@tsconfig/node16-strictest/tsconfig.json",
3 "compilerOptions": {
3 - "target": "ESNext",
4 - "allowJs": true,
5 - "strict": true,
6 - "forceConsistentCasingInFileNames": true,
7 - "esModuleInterop": true,
8 - "moduleResolution": "node",
9 - "resolveJsonModule": true,
10 - "isolatedModules": false,
11 - "jsx": "preserve",
12 - "incremental": true,
13 - "outDir": "dist"
4 + "declaration": true,
5 + "outDir": "dist",
6 + "jsx": "react-jsxdev",
7 +
8 + // weaken strictness from preset
9 + "importsNotUsedAsValues": "remove",
10 + "noUncheckedIndexedAccess": false,
11 + "noUnusedParameters": false,
12 + "useUnknownInCatchVariables": false,
13 + "target": "ES2015",
14 + // ideally turn off only during dev, or on a per-file basis
15 + "noUnusedLocals": false,
16 + "sourceMap": true
17 },
15 - "include": ["**/*.ts", "**/*.tsx"],
16 - "exclude": ["node_modules"]
18 + "exclude": ["node_modules"],
19 + "include": ["src/**/*.ts"]
20 }