Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

tsconfig.json.ejs

31 lines1.1 KB

1{
2 <% if (addOnEnabled.eslint) { %>"include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "prettier.config.js", "<%= bundler %>.config.js"],
3 <% } else { %>"include": ["**/*.ts", "**/*.tsx"],<% } %>
4 "compilerOptions": {
5 "target": "ES2022",
6 "jsx": "react-jsx",
7 "module": "ESNext",
8 "paths": {
9 "#/*": ["./src/*"],
10 "@/*": ["./src/*"]<% if (addOnEnabled.events || addOnEnabled.resume) { %>,
11 "content-collections": ["./.content-collections/generated"]<% } %>
12 },
13 "lib": ["ES2022", "DOM", "DOM.Iterable"],
14 "types": ["<%= bundler === 'vite' ? 'vite/client' : '@rsbuild/core/types' %>"],
15​
16 /* Bundler mode */
17 "moduleResolution": "bundler",
18 "allowImportingTsExtensions": true,<% if (addOnEnabled.paraglide) { %>
19 "allowJs": true,<% } %>
20 "verbatimModuleSyntax": <%= addOnEnabled['start'] ? 'false' : 'true' %>,
21 "noEmit": true,
22​
23 /* Linting */
24 "skipLibCheck": true,
25 "strict": true,
26 "noUnusedLocals": true,
27 "noUnusedParameters": true,
28 "noFallthroughCasesInSwitch": true,
29 "noUncheckedSideEffectImports": true
30 }