Skip to content

Commit

Permalink
chore: [tsconfig] extend @tsconfig/strictest/tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Nov 9, 2024
1 parent 5ee6242 commit ca57108
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 36 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
"@flex-development/tsconfig-utils": "2.0.2",
"@flex-development/tutils": "6.0.0-alpha.25",
"@stylistic/eslint-plugin": "2.10.1",
"@tsconfig/strictest": "2.0.5",
"@types/chai": "5.0.0",
"@types/chai-string": "1.4.5",
"@types/eslint": "9.6.1",
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"customConditions": ["mlly"],
"declarationMap": false,
"noEmitOnError": true,
"outDir": "./dist",
"outDir": "dist",
"paths": {},
"rootDir": "./src",
"skipLibCheck": true,
"rootDir": "src",
"sourceMap": false,
"target": "es2023"
},
Expand All @@ -20,5 +19,5 @@
"./typings/node/process.d.ts",
"./typings/typescript/lib.es5.d.ts"
],
"include": ["./dist/**/*", "./src/**/**.mts"]
"include": ["dist/**/*", "src/**/**.mts"]
}
28 changes: 2 additions & 26 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,28 @@
"compilerOptions": {
"allowImportingTsExtensions": true,
"allowJs": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"alwaysStrict": true,
"checkJs": true,
"customConditions": ["mlly", "development"],
"declaration": true,
"declarationMap": true,
"emitDecoratorMetadata": false,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"experimentalDecorators": false,
"forceConsistentCasingInFileNames": true,
"isolatedDeclarations": false,
"isolatedModules": true,
"lib": ["es2023"],
"module": "esnext",
"moduleResolution": "bundler",
"newLine": "lf",
"noEmit": true,
"noErrorTruncation": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUncheckedIndexedAccess": true,
"noUncheckedSideEffectImports": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"paths": {
"#node_modules/*": ["./__fixtures__/node_modules/*"]
},
"preserveConstEnums": true,
"preserveSymlinks": false,
"pretty": true,
"resolveJsonModule": true,
"resolvePackageJsonExports": true,
"resolvePackageJsonImports": true,
"sourceMap": true,
"strict": true,
"target": "esnext",
"useDefineForClassFields": true,
"useUnknownInCatchVariables": true,
"verbatimModuleSyntax": true
},
"exclude": ["**/node_modules", "./coverage", "./dist"],
"exclude": ["coverage", "dist", "node_modules"],
"extends": "@tsconfig/strictest/tsconfig",
"include": ["**/**.json", "**/**.mjs", "**/**.mts", "**/**.ts"],
"mdx": {
"plugins": [
Expand Down
12 changes: 6 additions & 6 deletions tsconfig.typecheck.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"compilerOptions": {
"allowJs": false,
"checkJs": false,
"customConditions": ["types", "mlly"],
"skipLibCheck": true
"customConditions": ["types", "mlly"]
},
"exclude": [],
"extends": "./tsconfig.json",
"files": [
"./typings/@faker-js/faker/global.d.ts",
Expand All @@ -14,9 +14,9 @@
"./vitest-env.d.mts"
],
"include": [
"./__fixtures__/**/*",
"./__tests__/**/*",
"./src/**.mts",
"./typings/**/*"
"__fixtures__/**/*",
"__tests__/**/*",
"src/**.mts",
"typings/**/*"
]
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,7 @@ __metadata:
"@flex-development/tsconfig-utils": "npm:2.0.2"
"@flex-development/tutils": "npm:6.0.0-alpha.25"
"@stylistic/eslint-plugin": "npm:2.10.1"
"@tsconfig/strictest": "npm:2.0.5"
"@types/chai": "npm:5.0.0"
"@types/chai-string": "npm:1.4.5"
"@types/eslint": "npm:9.6.1"
Expand Down Expand Up @@ -2562,6 +2563,13 @@ __metadata:
languageName: node
linkType: hard

"@tsconfig/strictest@npm:2.0.5":
version: 2.0.5
resolution: "@tsconfig/strictest@npm:2.0.5"
checksum: 10/c1dfc581c6b46218034aa05a0ea2d0284ae8dc3508a38bee7014dd6868ed681e6b88d4d13a8e1b7f35221e84cd020ffab18f3991bc9e652ce441775e2fcbad57
languageName: node
linkType: hard

"@types/acorn@npm:^4.0.0":
version: 4.0.6
resolution: "@types/acorn@npm:4.0.6"
Expand Down

0 comments on commit ca57108

Please sign in to comment.