|
1 | 1 | { |
| 2 | + "extends": "@reduxjs/tsconfig/base", |
2 | 3 | "compilerOptions": { |
3 | | - "target": "ESnext", |
4 | | - "module": "ESnext", |
5 | | - "lib": ["DOM", "ESNext"], |
6 | | - "importHelpers": true, |
7 | | - // output .d.ts declaration files for consumers |
8 | | - "declaration": true, |
9 | | - // match output dir to input dir. e.g. dist/index instead of dist/src/index |
10 | 4 | "rootDir": "./src", |
11 | | - // stricter type-checking for stronger correctness. Recommended by TS |
12 | | - "strict": true, |
13 | | - // linter checks for common issues |
14 | | - "noImplicitReturns": true, |
15 | | - "noFallthroughCasesInSwitch": true, |
16 | | - // noUnused* overlap with @typescript-eslint/no-unused-vars, can disable if duplicative |
17 | | - "noUnusedLocals": false, |
18 | | - "noUnusedParameters": false, |
19 | | - // use Node's module resolution algorithm, instead of the legacy TS one |
20 | | - "moduleResolution": "Node", |
21 | | - // transpile JSX to React.createElement |
22 | | - "jsx": "react", |
23 | | - // interop between ESM and CJS modules. Recommended by TS |
24 | | - "esModuleInterop": true, |
25 | | - // significant perf increase by skipping checking .d.ts files, particularly those in node_modules. Recommended by TS |
26 | | - "skipLibCheck": true, |
27 | | - // error out if import and file system have a casing mismatch. Recommended by TS |
28 | | - "forceConsistentCasingInFileNames": true, |
29 | | - // ensure that each file can be safely transpiled by babel (etc.) without relying on other imports |
30 | | - "isolatedModules": true, |
31 | | - "downlevelIteration": false, |
32 | | - "allowSyntheticDefaultImports": true, |
33 | | - "emitDeclarationOnly": true, |
34 | | - "types": ["vitest/globals", "vitest/importMeta"], |
| 5 | + "jsx": "react-jsx", |
35 | 6 | "paths": { |
36 | 7 | "@reduxjs/toolkit": ["./src/index.ts"], // @remap-prod-remove-line |
37 | 8 | "@reduxjs/toolkit/react": ["./src/react/index.ts"], // @remap-prod-remove-line |
|
0 commit comments