Skip to content

Commit

Permalink
Modify tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nothuman2718 committed Mar 2, 2024
1 parent f9615e5 commit d10b290
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 10 deletions.
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"
]
}

0 comments on commit d10b290

Please sign in to comment.