@tsconfig/bases 1.0.0
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/LICENSE +21 -0
- package/README.md +17 -0
- package/bun.tsconfig.json +33 -0
- package/create-react-app.tsconfig.json +22 -0
- package/cypress.tsconfig.json +8 -0
- package/deno.tsconfig.json +13 -0
- package/docusaurus.tsconfig.json +21 -0
- package/ember.tsconfig.json +91 -0
- package/next.tsconfig.json +26 -0
- package/node-lts.tsconfig.json +20 -0
- package/node-ts.tsconfig.json +13 -0
- package/node10.tsconfig.json +14 -0
- package/node12.tsconfig.json +15 -0
- package/node14.tsconfig.json +15 -0
- package/node16.tsconfig.json +15 -0
- package/node17.tsconfig.json +15 -0
- package/node18.tsconfig.json +16 -0
- package/node19.tsconfig.json +16 -0
- package/node20.tsconfig.json +15 -0
- package/node21.tsconfig.json +15 -0
- package/node22.tsconfig.json +15 -0
- package/node23.tsconfig.json +15 -0
- package/node24.tsconfig.json +21 -0
- package/nuxt.tsconfig.json +38 -0
- package/package.json +48 -0
- package/qjsengine.tsconfig.json +16 -0
- package/react-native.tsconfig.json +34 -0
- package/recommended.tsconfig.json +11 -0
- package/remix.tsconfig.json +24 -0
- package/strictest.tsconfig.json +23 -0
- package/svelte.tsconfig.json +24 -0
- package/taro.tsconfig.json +17 -0
- package/vite-react.tsconfig.json +29 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
### A base TSConfig for working with Bases.
|
|
2
|
+
|
|
3
|
+
Add the package to your `"devDependencies"`:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install --save-dev @tsconfig/bases
|
|
7
|
+
yarn add --dev @tsconfig/bases
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Add to your `tsconfig.json`:
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
"extends": "@tsconfig/bases/<base>"
|
|
14
|
+
# eg "extends": "@tsconfig/bases/node-lts"
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
You can find the [code here](https://github.com/tsconfig/bases/blob/master/bases/).
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
// This is based on https://bun.sh/docs/typescript#suggested-compileroptions
|
|
3
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
4
|
+
"docs": "https://bun.sh/docs/typescript",
|
|
5
|
+
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
// Environment setup & latest features
|
|
8
|
+
"lib": ["ESNext"],
|
|
9
|
+
"target": "ESNext",
|
|
10
|
+
"module": "Preserve",
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"jsx": "react-jsx",
|
|
13
|
+
"allowJs": true,
|
|
14
|
+
|
|
15
|
+
// Bundler mode
|
|
16
|
+
"moduleResolution": "bundler",
|
|
17
|
+
"allowImportingTsExtensions": true,
|
|
18
|
+
"verbatimModuleSyntax": true,
|
|
19
|
+
"noEmit": true,
|
|
20
|
+
|
|
21
|
+
// Best practices
|
|
22
|
+
"strict": true,
|
|
23
|
+
"skipLibCheck": true,
|
|
24
|
+
"noFallthroughCasesInSwitch": true,
|
|
25
|
+
"noUncheckedIndexedAccess": true,
|
|
26
|
+
"noImplicitOverride": true,
|
|
27
|
+
|
|
28
|
+
// Some stricter flags (disabled by default)
|
|
29
|
+
"noUnusedLocals": false,
|
|
30
|
+
"noUnusedParameters": false,
|
|
31
|
+
"noPropertyAccessFromIndexSignature": false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "2.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
7
|
+
"module": "esnext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"target": "es2015",
|
|
10
|
+
|
|
11
|
+
"allowJs": true,
|
|
12
|
+
"allowSyntheticDefaultImports": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true,
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
"strict": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
// This is based on https://deno.land/manual/getting_started/typescript#custom-typescript-compiler-options
|
|
3
|
+
// then the defaults are removed.
|
|
4
|
+
|
|
5
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
6
|
+
|
|
7
|
+
"compilerOptions": {
|
|
8
|
+
"jsx": "react",
|
|
9
|
+
"lib": [],
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"strict": true
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"docs": "https://v2.docusaurus.io/docs/typescript-support",
|
|
4
|
+
"_version": "2.0.0",
|
|
5
|
+
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"jsx": "react",
|
|
10
|
+
"lib": ["dom"],
|
|
11
|
+
"module": "esnext",
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"types": ["node", "@docusaurus/module-type-aliases", "@docusaurus/theme-classic"],
|
|
15
|
+
"baseUrl": ".",
|
|
16
|
+
"paths": {
|
|
17
|
+
"@site/*": ["./*"]
|
|
18
|
+
},
|
|
19
|
+
"skipLibCheck": true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"docs": "https://guides.emberjs.com/release/typescript/",
|
|
4
|
+
"_version": "3.0.0",
|
|
5
|
+
"_deprecated": true,
|
|
6
|
+
|
|
7
|
+
// This is the base config used by Ember apps and addons. When actually used
|
|
8
|
+
// via Ember CLI (e.g. ember-cli-typescript's blueprint), it additionally has
|
|
9
|
+
// `compilerOptions.baseUrl`, `compilerOptions.paths`, and `include` set.
|
|
10
|
+
"compilerOptions": {
|
|
11
|
+
"target": "es2023",
|
|
12
|
+
"module": "esnext",
|
|
13
|
+
"moduleResolution": "bundler",
|
|
14
|
+
|
|
15
|
+
// We don't want to include types dependencies in our compiled output, so tell TypeScript
|
|
16
|
+
// to enforce using `import type` instead of `import` for Types.
|
|
17
|
+
"verbatimModuleSyntax": true,
|
|
18
|
+
|
|
19
|
+
// Trying to check Ember apps and addons with `allowJs: true` is a recipe
|
|
20
|
+
// for many unresolveable type errors, because with *considerable* extra
|
|
21
|
+
// configuration it ends up including many files which are *not* valid and
|
|
22
|
+
// cannot be: they *appear* to be resolve-able to TS, but are in fact not in
|
|
23
|
+
// valid Node-resolveable locations and may not have TS-ready types. This
|
|
24
|
+
// will likely improve over time
|
|
25
|
+
"allowJs": false,
|
|
26
|
+
|
|
27
|
+
// Practically, it is *nearly* impossible to have every type-checked
|
|
28
|
+
// package in your dependency graph to have compatible types.
|
|
29
|
+
// Good stewards of the ecosystem may opt to set this to false and try to
|
|
30
|
+
// fix packages with failures, but for most people, the error information
|
|
31
|
+
// is inactionable noise.
|
|
32
|
+
"skipLibCheck": true,
|
|
33
|
+
|
|
34
|
+
// --- TS for SemVer Types compatibility
|
|
35
|
+
// Strictness settings -- you should *not* change these: Ember code is not
|
|
36
|
+
// guaranteed to type check with these set to looser values.
|
|
37
|
+
"strict": true,
|
|
38
|
+
"noUncheckedIndexedAccess": true,
|
|
39
|
+
|
|
40
|
+
// Interop: this is viral and will require anyone downstream of your package
|
|
41
|
+
// to *also* set them to true. However, this represents the way that
|
|
42
|
+
// bundlers actually work, and is future-compatible with the closest module
|
|
43
|
+
// modes: "nodenext" in TS 4.7+ and "mixed" in 5.0+ mode. Since Ember apps
|
|
44
|
+
// and addons never emit with `tsc`, this is safe: it makes type-checking do
|
|
45
|
+
// the right thing, but does not result in changes to what gets emitted. We
|
|
46
|
+
// intentionally leave `esModuleInterop` unset, so that it gets whatever TS
|
|
47
|
+
// provides as the default for the currently-specified `module` mode.
|
|
48
|
+
"allowSyntheticDefaultImports": true,
|
|
49
|
+
|
|
50
|
+
// --- Lint-style rules
|
|
51
|
+
|
|
52
|
+
// TypeScript also supplies some lint-style checks; nearly all of them are
|
|
53
|
+
// better handled by ESLint with the `@typescript-eslint`. This one is more
|
|
54
|
+
// like a safety check, though, so we leave it on.
|
|
55
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
56
|
+
|
|
57
|
+
// --- Compilation/integration settings
|
|
58
|
+
// Setting `noEmitOnError` here allows tools trying to respect the tsconfig
|
|
59
|
+
// to still emit code without breaking on errors.
|
|
60
|
+
// Errors are still reported in the CLI when running `tsc` or `glint`,
|
|
61
|
+
// but the errors won't prevent code from being emitted.
|
|
62
|
+
// This helps hasten development by allowing devs to prototype before coming
|
|
63
|
+
// to a decision on what they want their types to be.
|
|
64
|
+
"noEmitOnError": false,
|
|
65
|
+
|
|
66
|
+
// We use Babel for emitting runtime code, because it's very important that
|
|
67
|
+
// we always and only use the same transpiler for non-stable features, in
|
|
68
|
+
// particular decorators. If you were to change this to `true`, it could
|
|
69
|
+
// lead to accidentally generating code with `tsc` instead of Babel, and
|
|
70
|
+
// could thereby result in broken code at runtime.
|
|
71
|
+
"noEmit": true,
|
|
72
|
+
|
|
73
|
+
// Ember makes heavy use of decorators; TS does not support them at all
|
|
74
|
+
// without this flag.
|
|
75
|
+
"experimentalDecorators": true,
|
|
76
|
+
|
|
77
|
+
// We don't use TS for compilation, so we can disable these.
|
|
78
|
+
// Library authors should set declaration and declarationMap to true, however
|
|
79
|
+
"declaration": false,
|
|
80
|
+
"declarationMap": false,
|
|
81
|
+
"inlineSourceMap": false,
|
|
82
|
+
"inlineSources": false,
|
|
83
|
+
|
|
84
|
+
// Don't implicitly pull in declarations from `@types` packages unless we
|
|
85
|
+
// actually import from them AND the package in question doesn't bring its
|
|
86
|
+
// own types.
|
|
87
|
+
//
|
|
88
|
+
// You may wish to override this e.g. with `"types": ["ember-source/types"]`
|
|
89
|
+
"types": []
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "2.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"module": "esnext",
|
|
13
|
+
"moduleResolution": "bundler",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"jsx": "preserve",
|
|
17
|
+
"incremental": true,
|
|
18
|
+
"plugins": [
|
|
19
|
+
{
|
|
20
|
+
"name": "next"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
25
|
+
"exclude": ["node_modules"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// This file was autogenerated by a script
|
|
2
|
+
// Equivalent to a config of: node22
|
|
3
|
+
{
|
|
4
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
5
|
+
"_version": "22.0.0",
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"lib": [
|
|
8
|
+
"es2024",
|
|
9
|
+
"ESNext.Array",
|
|
10
|
+
"ESNext.Collection",
|
|
11
|
+
"ESNext.Iterator"
|
|
12
|
+
],
|
|
13
|
+
"module": "nodenext",
|
|
14
|
+
"target": "es2022",
|
|
15
|
+
"strict": true,
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"moduleResolution": "node16"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"docs": [
|
|
4
|
+
"https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/#path-rewriting-for-relative-paths",
|
|
5
|
+
"https://devblogs.microsoft.com/typescript/announcing-typescript-5-8-beta/#the---erasablesyntaxonly-option"
|
|
6
|
+
],
|
|
7
|
+
"_version": "23.6.0",
|
|
8
|
+
"compilerOptions": {
|
|
9
|
+
"rewriteRelativeImportExtensions": true,
|
|
10
|
+
"erasableSyntaxOnly": true,
|
|
11
|
+
"verbatimModuleSyntax": true
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"lib": ["es2018"],
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"target": "es2018",
|
|
8
|
+
|
|
9
|
+
"strict": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"moduleResolution": "node"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "12.1.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["es2019", "es2020.promise", "es2020.bigint", "es2020.string"],
|
|
7
|
+
"module": "node16",
|
|
8
|
+
"target": "es2019",
|
|
9
|
+
|
|
10
|
+
"strict": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"moduleResolution": "node16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "14.1.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["es2020"],
|
|
7
|
+
"module": "node16",
|
|
8
|
+
"target": "es2020",
|
|
9
|
+
|
|
10
|
+
"strict": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"moduleResolution": "node16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "16.1.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["es2021"],
|
|
7
|
+
"module": "node16",
|
|
8
|
+
"target": "es2021",
|
|
9
|
+
|
|
10
|
+
"strict": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"moduleResolution": "node16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "17.1.0",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"lib": ["es2022"],
|
|
6
|
+
"module": "node16",
|
|
7
|
+
"target": "es2022",
|
|
8
|
+
|
|
9
|
+
"strict": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"useDefineForClassFields": true,
|
|
13
|
+
"moduleResolution": "node16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"_version": "18.2.0",
|
|
5
|
+
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"lib": ["es2023"],
|
|
8
|
+
"module": "node16",
|
|
9
|
+
"target": "es2022",
|
|
10
|
+
|
|
11
|
+
"strict": true,
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"skipLibCheck": true,
|
|
14
|
+
"moduleResolution": "node16"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"_version": "19.1.0",
|
|
5
|
+
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"lib": ["es2023"],
|
|
8
|
+
"module": "node16",
|
|
9
|
+
"target": "es2022",
|
|
10
|
+
|
|
11
|
+
"strict": true,
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"skipLibCheck": true,
|
|
14
|
+
"moduleResolution": "node16"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "20.1.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["es2023"],
|
|
7
|
+
"module": "nodenext",
|
|
8
|
+
"target": "es2022",
|
|
9
|
+
|
|
10
|
+
"strict": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"moduleResolution": "node16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "21.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["es2023"],
|
|
7
|
+
"module": "nodenext",
|
|
8
|
+
"target": "es2022",
|
|
9
|
+
|
|
10
|
+
"strict": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"moduleResolution": "node16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "22.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["es2024", "ESNext.Array", "ESNext.Collection", "ESNext.Iterator"],
|
|
7
|
+
"module": "nodenext",
|
|
8
|
+
"target": "es2022",
|
|
9
|
+
|
|
10
|
+
"strict": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"moduleResolution": "node16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "23.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["es2024", "ESNext.Array", "ESNext.Collection", "ESNext.Iterator", "ESNext.Promise"],
|
|
7
|
+
"module": "nodenext",
|
|
8
|
+
"target": "es2024",
|
|
9
|
+
|
|
10
|
+
"strict": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"moduleResolution": "node16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "24.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": [
|
|
7
|
+
"es2024",
|
|
8
|
+
"ESNext.Array",
|
|
9
|
+
"ESNext.Collection",
|
|
10
|
+
"ESNext.Iterator",
|
|
11
|
+
"ESNext.Promise"
|
|
12
|
+
],
|
|
13
|
+
"module": "nodenext",
|
|
14
|
+
"target": "es2024",
|
|
15
|
+
|
|
16
|
+
"strict": true,
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"moduleResolution": "node16"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "2.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"target": "esnext",
|
|
7
|
+
"module": "esnext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"lib": [
|
|
10
|
+
"esnext",
|
|
11
|
+
"esnext.asynciterable",
|
|
12
|
+
"dom"
|
|
13
|
+
],
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"sourceMap": true,
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noEmit": true,
|
|
19
|
+
"baseUrl": ".",
|
|
20
|
+
"paths": {
|
|
21
|
+
"~/*": [
|
|
22
|
+
"./*"
|
|
23
|
+
],
|
|
24
|
+
"@/*": [
|
|
25
|
+
"./*"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"types": [
|
|
29
|
+
"@types/node",
|
|
30
|
+
"@nuxt/types"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"exclude": [
|
|
34
|
+
"node_modules",
|
|
35
|
+
".nuxt",
|
|
36
|
+
"dist"
|
|
37
|
+
]
|
|
38
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tsconfig/bases",
|
|
3
|
+
"repository": {
|
|
4
|
+
"type": "git",
|
|
5
|
+
"url": "https://github.com/tsconfig/bases.git",
|
|
6
|
+
"directory": "bases"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"description": "Combined tsconfig bases.",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"tsconfig",
|
|
12
|
+
"bases",
|
|
13
|
+
"combined"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
"./taro": "./taro.tsconfig.json",
|
|
17
|
+
"./node16": "./node16.tsconfig.json",
|
|
18
|
+
"./node19": "./node19.tsconfig.json",
|
|
19
|
+
"./node22": "./node22.tsconfig.json",
|
|
20
|
+
"./node23": "./node23.tsconfig.json",
|
|
21
|
+
"./cypress": "./cypress.tsconfig.json",
|
|
22
|
+
"./node12": "./node12.tsconfig.json",
|
|
23
|
+
"./deno": "./deno.tsconfig.json",
|
|
24
|
+
"./ember": "./ember.tsconfig.json",
|
|
25
|
+
"./create-react-app": "./create-react-app.tsconfig.json",
|
|
26
|
+
"./next": "./next.tsconfig.json",
|
|
27
|
+
"./remix": "./remix.tsconfig.json",
|
|
28
|
+
"./nuxt": "./nuxt.tsconfig.json",
|
|
29
|
+
"./svelte": "./svelte.tsconfig.json",
|
|
30
|
+
"./docusaurus": "./docusaurus.tsconfig.json",
|
|
31
|
+
"./node20": "./node20.tsconfig.json",
|
|
32
|
+
"./vite-react": "./vite-react.tsconfig.json",
|
|
33
|
+
"./node14": "./node14.tsconfig.json",
|
|
34
|
+
"./qjsengine": "./qjsengine.tsconfig.json",
|
|
35
|
+
"./node24": "./node24.tsconfig.json",
|
|
36
|
+
"./node17": "./node17.tsconfig.json",
|
|
37
|
+
"./react-native": "./react-native.tsconfig.json",
|
|
38
|
+
"./recommended": "./recommended.tsconfig.json",
|
|
39
|
+
"./node18": "./node18.tsconfig.json",
|
|
40
|
+
"./node-ts": "./node-ts.tsconfig.json",
|
|
41
|
+
"./bun": "./bun.tsconfig.json",
|
|
42
|
+
"./node21": "./node21.tsconfig.json",
|
|
43
|
+
"./node-lts": "./node-lts.tsconfig.json",
|
|
44
|
+
"./node10": "./node10.tsconfig.json",
|
|
45
|
+
"./strictest": "./strictest.tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
"version": "1.0.0"
|
|
48
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
// https://doc.qt.io/qt-5/qjsengine.html
|
|
3
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
// Technically QTJSEngine supportes ES2016, however there are issues with
|
|
7
|
+
// arrow functions where in certain contexts "this" does not exist.
|
|
8
|
+
// Targeting ES5 instead fixes these issues by binding this to a variable
|
|
9
|
+
// and closing over that instead.
|
|
10
|
+
"target": "ES5",
|
|
11
|
+
"lib": ["ES2016"],
|
|
12
|
+
"module": "none",
|
|
13
|
+
"esModuleInterop": false,
|
|
14
|
+
"strict": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "3.0.2",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "esnext",
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"types": ["react-native", "jest"],
|
|
8
|
+
"lib": [
|
|
9
|
+
"es2019",
|
|
10
|
+
"es2020.bigint",
|
|
11
|
+
"es2020.date",
|
|
12
|
+
"es2020.number",
|
|
13
|
+
"es2020.promise",
|
|
14
|
+
"es2020.string",
|
|
15
|
+
"es2020.symbol.wellknown",
|
|
16
|
+
"es2021.promise",
|
|
17
|
+
"es2021.string",
|
|
18
|
+
"es2021.weakref",
|
|
19
|
+
"es2022.array",
|
|
20
|
+
"es2022.object",
|
|
21
|
+
"es2022.string"
|
|
22
|
+
],
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
"jsx": "react-native",
|
|
25
|
+
"noEmit": true,
|
|
26
|
+
"isolatedModules": true,
|
|
27
|
+
"strict": true,
|
|
28
|
+
"moduleResolution": "node",
|
|
29
|
+
"resolveJsonModule": true,
|
|
30
|
+
"allowSyntheticDefaultImports": true,
|
|
31
|
+
"esModuleInterop": true,
|
|
32
|
+
"skipLibCheck": true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "2.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["dom", "dom.iterable", "es2019"],
|
|
7
|
+
"isolatedModules": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"jsx": "react-jsx",
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"target": "es2019",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"baseUrl": ".",
|
|
17
|
+
"paths": {
|
|
18
|
+
"~/*": ["./app/*"]
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
// Remix takes care of building everything in `remix build`.
|
|
22
|
+
"noEmit": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"strict": true,
|
|
4
|
+
"allowUnusedLabels": false,
|
|
5
|
+
"allowUnreachableCode": false,
|
|
6
|
+
"exactOptionalPropertyTypes": true,
|
|
7
|
+
"noFallthroughCasesInSwitch": true,
|
|
8
|
+
"noImplicitOverride": true,
|
|
9
|
+
"noImplicitReturns": true,
|
|
10
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
11
|
+
"noUncheckedIndexedAccess": true,
|
|
12
|
+
"noUnusedLocals": true,
|
|
13
|
+
"noUnusedParameters": true,
|
|
14
|
+
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
|
|
17
|
+
"checkJs": true,
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
"skipLibCheck": true
|
|
20
|
+
},
|
|
21
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
22
|
+
"_version": "2.0.0"
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "5.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"target": "es2017",
|
|
9
|
+
/**
|
|
10
|
+
Svelte Preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
|
11
|
+
to enforce using `import type` instead of `import` for Types.
|
|
12
|
+
*/
|
|
13
|
+
"verbatimModuleSyntax": true,
|
|
14
|
+
/**
|
|
15
|
+
To have warnings/errors of the Svelte compiler at the correct position,
|
|
16
|
+
enable source maps by default.
|
|
17
|
+
*/
|
|
18
|
+
"sourceMap": true,
|
|
19
|
+
|
|
20
|
+
"strict": true,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"skipLibCheck": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compileOnSave": false,
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "es2017",
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"experimentalDecorators": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"jsx": "react-jsx"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"_version": "7.0.0",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
7
|
+
"target": "ES2022",
|
|
8
|
+
"useDefineForClassFields": true,
|
|
9
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
10
|
+
"module": "ESNext",
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
|
|
13
|
+
/* Bundler mode */
|
|
14
|
+
"moduleResolution": "bundler",
|
|
15
|
+
"allowImportingTsExtensions": true,
|
|
16
|
+
"verbatimModuleSyntax": true,
|
|
17
|
+
"moduleDetection": "force",
|
|
18
|
+
"noEmit": true,
|
|
19
|
+
"jsx": "react-jsx",
|
|
20
|
+
|
|
21
|
+
/* Linting */
|
|
22
|
+
"strict": true,
|
|
23
|
+
"noUnusedLocals": true,
|
|
24
|
+
"noUnusedParameters": true,
|
|
25
|
+
"erasableSyntaxOnly": true,
|
|
26
|
+
"noFallthroughCasesInSwitch": true,
|
|
27
|
+
"noUncheckedSideEffectImports": true
|
|
28
|
+
}
|
|
29
|
+
}
|