mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
Enable allowJs
for strictest.json
(#10762)
* feat: enable `allowJs` for `strictest.json` * chore: changeset * edit: enables Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
parent
8b59d5d078
commit
43ead8fbd5
2 changed files with 8 additions and 3 deletions
7
.changeset/thirty-poems-chew.md
Normal file
7
.changeset/thirty-poems-chew.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
"astro": minor
|
||||
---
|
||||
|
||||
Enables type checking for JavaScript files when using the `strictest` TS config. This ensures consistency with Astro's other TS configs, and fixes type checking for integrations like Astro DB when using an `astro.config.mjs`.
|
||||
|
||||
If you are currently using the `strictest` preset and would like to still disable `.js` files, set `allowJS: false` in your `tsconfig.json`.
|
|
@ -19,8 +19,6 @@
|
|||
// Report an error for unreachable code instead of just a warning.
|
||||
"allowUnreachableCode": false,
|
||||
// Report an error for unused labels instead of just a warning.
|
||||
"allowUnusedLabels": false,
|
||||
// Disallow JavaScript files from being imported
|
||||
"allowJs": false
|
||||
"allowUnusedLabels": false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue