Skip to content

Commit e7ee595

Browse files
committed
fix(cra-template): restore original EJS formatting in tsconfig template
1 parent f80b80f commit e7ee595

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed
Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1-
<% if (!typescript) { ignoreFile() } %>{ <% if (addOnEnabled.eslint) {
2-
%>"include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "prettier.config.js",
3-
"vite.config.js"], <% } else { %>"include": ["**/*.ts", "**/*.tsx"],<% } %>
4-
"compilerOptions": { "target": "ES2022", "jsx": "react-jsx", "module": "ESNext",
5-
"lib": ["ES2022", "DOM", "DOM.Iterable"], "types": ["vite/client"], /* Bundler
6-
mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true,
7-
"verbatimModuleSyntax": <%= addOnEnabled['start'] ? 'false' : 'true' %>,
8-
"noEmit": true, /* Linting */ "skipLibCheck": true, "strict": true,
9-
"noUnusedLocals": true, "noUnusedParameters": true,
10-
"noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true,
11-
"baseUrl": ".", "paths": { "@/*": ["./src/*"] } } }
1+
<% if (!typescript) { ignoreFile() } %>{
2+
<% if (addOnEnabled.eslint) { %>"include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "prettier.config.js", "vite.config.js"],
3+
<% } else { %>"include": ["**/*.ts", "**/*.tsx"],<% } %>
4+
"compilerOptions": {
5+
"target": "ES2022",
6+
"jsx": "react-jsx",
7+
"module": "ESNext",
8+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
9+
"types": ["vite/client"],
10+
11+
/* Bundler mode */
12+
"moduleResolution": "bundler",
13+
"allowImportingTsExtensions": true,
14+
"verbatimModuleSyntax": <%= addOnEnabled['start'] ? 'false' : 'true' %>,
15+
"noEmit": true,
16+
17+
/* Linting */
18+
"skipLibCheck": true,
19+
"strict": true,
20+
"noUnusedLocals": true,
21+
"noUnusedParameters": true,
22+
"noFallthroughCasesInSwitch": true,
23+
"noUncheckedSideEffectImports": true,
24+
"baseUrl": ".",
25+
"paths": {
26+
"@/*": ["./src/*"]
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)