Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify tsconfig. #4075

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc
Expand Up @@ -37,7 +37,7 @@
"ecmaFeatures": {
"jsx": false
},
"project": "./tsconfig.json"
"project": "./types/tsconfig.json"
}
}
],
Expand Down
30 changes: 27 additions & 3 deletions examples/tsconfig.json
@@ -1,4 +1,28 @@
{
"extends": "../tsconfig",
"include": ["."]
}
"compilerOptions": {
"target": "esnext",
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"module": "ES2015",
/* Specify what module code is generated. */
"allowJs": true,
/* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
"outDir": "dist",
/* Specify an output folder for all emitted files. */
"esModuleInterop": true,
/* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
"forceConsistentCasingInFileNames": true,
/* Ensure that casing is correct in imports. */
"strict": true,
/* Enable all strict type-checking options. */
"noImplicitAny": true,
/* Enable error reporting for expressions and declarations with an implied 'any' type. */
"skipLibCheck": true
/* Skip type checking all .d.ts files. */
},
"include": [
"."
],
"files": [
"../types/index.d.ts"
]
}
4 changes: 2 additions & 2 deletions test/tsconfig.json
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "esnext",
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"module": "node16",
"module": "Node16",
/* Specify what module code is generated. */
"allowJs": true,
/* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
Expand All @@ -23,6 +23,6 @@
"."
],
"files": [
"./types/index.d.ts"
"../types/index.d.ts"
]
}
4 changes: 0 additions & 4 deletions types/tests/tsconfig.json

This file was deleted.

25 changes: 25 additions & 0 deletions types/tsconfig.json
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "esnext",
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"module": "Node16",
/* Specify what module code is generated. */
"allowJs": true,
/* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
"outDir": "dist",
/* Specify an output folder for all emitted files. */
"esModuleInterop": true,
/* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
"forceConsistentCasingInFileNames": true,
/* Ensure that casing is correct in imports. */
"strict": true,
/* Enable all strict type-checking options. */
"noImplicitAny": true,
/* Enable error reporting for expressions and declarations with an implied 'any' type. */
"skipLibCheck": true,
/* Skip type checking all .d.ts files. */
},
"include": [
"../types/**/*.ts"
]
}