|
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