refactor: improve tsconfig (#4386)

This commit is contained in:
三咲智子
2021-11-24 13:49:49 +08:00
committed by GitHub
parent e9d4bc21dc
commit b853b7a9ff
4 changed files with 31 additions and 80 deletions

9
build/tsconfig.json Normal file
View File

@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"target": "ESNext",
"lib": ["ESNext"]
},
"include": ["**/*.ts"]
}

View File

@@ -1,83 +1,14 @@
{
"compilerOptions": {
// "incremental": true,
// "composite": true,
// "tsBuildInfoFile": "./",
// "disableSourceOfProjectReferenceRedirect": true,
// "disableSolutionSearching": true,
// "disableReferencedProjectLoad": true,
"target": "ESNext",
// "lib": [],
// "jsx": "preserve",
// "experimentalDecorators": true,
// "emitDecoratorMetadata": true,
// "jsxFactory": "",
// "jsxFragmentFactory": "",
// "jsxImportSource": "",
// "reactNamespace": "",
// "noLib": true,
// "useDefineForClassFields": true,
"module": "ESNext",
// "rootDir": "./",
"moduleResolution": "node",
// "baseUrl": "./",
// "paths": {},
// "rootDirs": [],
// "typeRoots": [],
// "types": [],
// "allowUmdGlobalAccess": true,
"moduleResolution": "Node",
"resolveJsonModule": true,
// "noResolve": true,
// "allowJs": true,
// "checkJs": true,
// "maxNodeModuleJsDepth": 1,
// "declaration": true,
// "declarationMap": true,
// "emitDeclarationOnly": true,
// "sourceMap": true,
// "outFile": "./",
// "outDir": "./",
// "removeComments": true,
// "noEmit": true,
// "importHelpers": true,
// "importsNotUsedAsValues": "remove",
// "downlevelIteration": true,
// "sourceRoot": "",
// "mapRoot": "",
// "inlineSourceMap": true,
// "inlineSources": true,
// "emitBOM": true,
// "newLine": "crlf",
// "stripInternal": true,
// "noEmitHelpers": true,
// "noEmitOnError": true,
// "preserveConstEnums": true,
// "declarationDir": "./",
// "isolatedModules": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
// "preserveSymlinks": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitAny": false,
// "strictNullChecks": true,
// "strictFunctionTypes": true,
// "strictBindCallApply": true,
// "strictPropertyInitialization": true,
// "noImplicitThis": true,
// "useUnknownInCatchVariables": true,
// "alwaysStrict": true,
// "noUnusedLocals": true,
// "noUnusedParameters": true,
// "exactOptionalPropertyTypes": true,
// "noImplicitReturns": true,
// "noFallthroughCasesInSwitch": true,
// "noUncheckedIndexedAccess": true,
// "noImplicitOverride": true,
// "noPropertyAccessFromIndexSignature": true,
// "allowUnusedLabels": true,
// "allowUnreachableCode": true,
// "skipDefaultLibCheck": true,
"skipLibCheck": true
},
"include": ["**/*", ".vitepress/**/*"],

13
play/tsconfig.json Normal file
View File

@@ -0,0 +1,13 @@
{
"compilerOptions": {
"strict": true,
"allowJs": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"types": ["../typings/global"],
"resolveJsonModule": true,
"moduleResolution": "Node",
"baseUrl": "."
},
"include": ["**/*"]
}

View File

@@ -1,22 +1,20 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"strict": true,
"module": "ES6",
"target": "ES6",
"noImplicitAny": false,
"removeComments": true,
"moduleResolution": "node",
"declaration": true,
"moduleResolution": "Node",
"esModuleInterop": true,
"jsx": "preserve",
"noLib": false,
"target": "es6",
"sourceMap": true,
"lib": ["ESNext", "DOM"],
"lib": ["ES2018", "DOM"],
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"strict": true,
"skipLibCheck": true
},
"exclude": ["node_modules", "**/__tests__", "dist/**"]
"include": ["packages"],
"exclude": ["node_modules", "**/__test?__", "**/dist"]
}