@codedrifters/configulator 0.0.308 → 0.0.309
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +25 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +25 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -35334,6 +35334,15 @@ var ReactViteSiteProject = class extends TypeScriptProject {
|
|
|
35334
35334
|
this.tsconfig?.file.addOverride("compilerOptions.noEmit", true);
|
|
35335
35335
|
this.tsconfig?.file.addOverride("compilerOptions.skipLibCheck", true);
|
|
35336
35336
|
this.tsconfig?.file.addOverride("compilerOptions.strict", true);
|
|
35337
|
+
this.tsconfig?.file.addOverride(
|
|
35338
|
+
"compilerOptions.noUncheckedIndexedAccess",
|
|
35339
|
+
true
|
|
35340
|
+
);
|
|
35341
|
+
this.tsconfig?.file.addOverride("compilerOptions.noImplicitOverride", true);
|
|
35342
|
+
this.tsconfig?.file.addOverride(
|
|
35343
|
+
"compilerOptions.exactOptionalPropertyTypes",
|
|
35344
|
+
true
|
|
35345
|
+
);
|
|
35337
35346
|
this.tsconfig?.file.addOverride("compilerOptions.resolveJsonModule", true);
|
|
35338
35347
|
this.tsconfig?.file.addOverride("compilerOptions.declaration", false);
|
|
35339
35348
|
this.tsconfig?.file.addOverride("compilerOptions.paths", {
|
|
@@ -35369,6 +35378,19 @@ export default defineConfig({
|
|
|
35369
35378
|
plugins: [tailwindcss(), react()],
|
|
35370
35379
|
resolve: { alias: { '@': path.resolve(__dirname, 'src') } },
|
|
35371
35380
|
});
|
|
35381
|
+
`
|
|
35382
|
+
});
|
|
35383
|
+
new import_projen25.SampleFile(this, "src/vite-env.d.ts", {
|
|
35384
|
+
contents: `/// <reference types="vite/client" />
|
|
35385
|
+
|
|
35386
|
+
interface ImportMetaEnv {
|
|
35387
|
+
// Declare your VITE_* env vars here, e.g.
|
|
35388
|
+
// readonly VITE_API_BASE_URL: string;
|
|
35389
|
+
}
|
|
35390
|
+
|
|
35391
|
+
interface ImportMeta {
|
|
35392
|
+
readonly env: ImportMetaEnv;
|
|
35393
|
+
}
|
|
35372
35394
|
`
|
|
35373
35395
|
});
|
|
35374
35396
|
if (options.testRunner !== TestRunner.JEST) {
|
|
@@ -35424,11 +35446,13 @@ export default mergeConfig(
|
|
|
35424
35446
|
"@types/react",
|
|
35425
35447
|
"@types/react-dom",
|
|
35426
35448
|
"eslint-plugin-react",
|
|
35427
|
-
"eslint-plugin-react-hooks"
|
|
35449
|
+
"eslint-plugin-react-hooks",
|
|
35450
|
+
"eslint-plugin-jsx-a11y"
|
|
35428
35451
|
);
|
|
35429
35452
|
this.eslint?.addExtends("plugin:react/recommended");
|
|
35430
35453
|
this.eslint?.addExtends("plugin:react/jsx-runtime");
|
|
35431
35454
|
this.eslint?.addExtends("plugin:react-hooks/recommended");
|
|
35455
|
+
this.eslint?.addExtends("plugin:jsx-a11y/recommended");
|
|
35432
35456
|
this.eslint?.addOverride({
|
|
35433
35457
|
files: ["**/*.{tsx,jsx}"],
|
|
35434
35458
|
// Projen's ESLint override type does not include `settings`, but
|