aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-gatsby/packages/tsconfig
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-28 01:47:57 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-28 01:47:57 +0800
commit8b2c4a38a461ff5ecc95972291bc711e2c5dec9a (patch)
tree29f552e3df949073e21bf5c76d7abc3044830ec6 /examples/with-gatsby/packages/tsconfig
parentfc8c5fdce62fb229202659408798a7b6c98f6e8b (diff)
downloadHydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.tar.gz
HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.zip
Diffstat (limited to 'examples/with-gatsby/packages/tsconfig')
-rw-r--r--examples/with-gatsby/packages/tsconfig/README.md3
-rw-r--r--examples/with-gatsby/packages/tsconfig/base.json20
-rw-r--r--examples/with-gatsby/packages/tsconfig/gatsby.json27
-rw-r--r--examples/with-gatsby/packages/tsconfig/nextjs.json22
-rw-r--r--examples/with-gatsby/packages/tsconfig/package.json11
-rw-r--r--examples/with-gatsby/packages/tsconfig/react-library.json11
6 files changed, 94 insertions, 0 deletions
diff --git a/examples/with-gatsby/packages/tsconfig/README.md b/examples/with-gatsby/packages/tsconfig/README.md
new file mode 100644
index 0000000..0da79cf
--- /dev/null
+++ b/examples/with-gatsby/packages/tsconfig/README.md
@@ -0,0 +1,3 @@
+# `tsconfig`
+
+These are base shared `tsconfig.json`s from which all other `tsconfig.json`'s inherit from.
diff --git a/examples/with-gatsby/packages/tsconfig/base.json b/examples/with-gatsby/packages/tsconfig/base.json
new file mode 100644
index 0000000..d72a9f3
--- /dev/null
+++ b/examples/with-gatsby/packages/tsconfig/base.json
@@ -0,0 +1,20 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "Default",
+ "compilerOptions": {
+ "composite": false,
+ "declaration": true,
+ "declarationMap": true,
+ "esModuleInterop": true,
+ "forceConsistentCasingInFileNames": true,
+ "inlineSources": false,
+ "isolatedModules": true,
+ "moduleResolution": "node",
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "preserveWatchOutput": true,
+ "skipLibCheck": true,
+ "strict": true
+ },
+ "exclude": ["node_modules"]
+}
diff --git a/examples/with-gatsby/packages/tsconfig/gatsby.json b/examples/with-gatsby/packages/tsconfig/gatsby.json
new file mode 100644
index 0000000..ea4e59f
--- /dev/null
+++ b/examples/with-gatsby/packages/tsconfig/gatsby.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "Gatsby",
+ "extends": "./base.json",
+ "compilerOptions": {
+ "target": "esnext",
+ "lib": ["dom", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noEmit": true,
+ "incremental": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "react"
+ },
+ "include": [
+ "./src/**/*",
+ "./gatsby-node.ts",
+ "./gatsby-config.ts",
+ "./plugins/**/*"
+ ],
+ "exclude": ["node_modules"]
+}
diff --git a/examples/with-gatsby/packages/tsconfig/nextjs.json b/examples/with-gatsby/packages/tsconfig/nextjs.json
new file mode 100644
index 0000000..3b7dfa9
--- /dev/null
+++ b/examples/with-gatsby/packages/tsconfig/nextjs.json
@@ -0,0 +1,22 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "Next.js",
+ "extends": "./base.json",
+ "compilerOptions": {
+ "target": "es5",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noEmit": true,
+ "incremental": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve"
+ },
+ "include": ["src", "next-env.d.ts"],
+ "exclude": ["node_modules"]
+}
diff --git a/examples/with-gatsby/packages/tsconfig/package.json b/examples/with-gatsby/packages/tsconfig/package.json
new file mode 100644
index 0000000..23e0c0f
--- /dev/null
+++ b/examples/with-gatsby/packages/tsconfig/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "tsconfig",
+ "version": "0.0.0",
+ "private": true,
+ "files": [
+ "base.json",
+ "nextjs.json",
+ "gatsby.json",
+ "react-library.json"
+ ]
+}
diff --git a/examples/with-gatsby/packages/tsconfig/react-library.json b/examples/with-gatsby/packages/tsconfig/react-library.json
new file mode 100644
index 0000000..af8711c
--- /dev/null
+++ b/examples/with-gatsby/packages/tsconfig/react-library.json
@@ -0,0 +1,11 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "React Library",
+ "extends": "./base.json",
+ "compilerOptions": {
+ "jsx": "react-jsx",
+ "lib": ["ES2015"],
+ "module": "ESNext",
+ "target": "es6"
+ }
+}