Skip to content

Commit f80b80f

Browse files
committed
fix: remove trailing comma in tsconfig template
1 parent 0d5a6b6 commit f80b80f

File tree

1 file changed

+11
-29
lines changed

1 file changed

+11
-29
lines changed
Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
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-
}
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/*"] } } }

0 commit comments

Comments
 (0)