mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 23:32:02 +08:00
fix: [SIG-528]: precommit typescript check for md files (#4596)
This commit is contained in:
parent
f9eddc9b18
commit
c38247abe4
@ -9,7 +9,7 @@ done
|
|||||||
# create temporary tsconfig which includes only passed files
|
# create temporary tsconfig which includes only passed files
|
||||||
str="{
|
str="{
|
||||||
\"extends\": \"./tsconfig.json\",
|
\"extends\": \"./tsconfig.json\",
|
||||||
\"include\": [\"src/types/global.d.ts\",\"src/typings/window.ts\", \"src/typings/chartjs-adapter-date-fns.d.ts\", \"src/typings/environment.ts\" ,$files]
|
\"include\": [\"src/types/global.d.ts\",\"src/typings/window.ts\", \"src/typings/chartjs-adapter-date-fns.d.ts\", \"src/typings/environment.ts\" ,\"src/container/OnboardingContainer/typings.d.ts\",$files]
|
||||||
}"
|
}"
|
||||||
echo $str > tsconfig.tmp
|
echo $str > tsconfig.tmp
|
||||||
|
|
||||||
|
@ -11,11 +11,7 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"lib": [
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"esnext"
|
|
||||||
],
|
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
@ -24,9 +20,7 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"baseUrl": "./src",
|
"baseUrl": "./src",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@constants/*": [
|
"@constants/*": ["/container/OnboardingContainer/constants/*"]
|
||||||
"/container/OnboardingContainer/constants/*"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"plugins": [
|
"plugins": [
|
||||||
@ -34,15 +28,9 @@
|
|||||||
"name": "typescript-plugin-css-modules"
|
"name": "typescript-plugin-css-modules"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"types": [
|
"types": ["node", "jest"]
|
||||||
"node",
|
|
||||||
"jest"
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": ["node_modules"],
|
||||||
"node_modules",
|
|
||||||
"./src/container/OnboardingContainer/constants/*.ts"
|
|
||||||
],
|
|
||||||
"include": [
|
"include": [
|
||||||
"./src",
|
"./src",
|
||||||
"./src/**/*.ts",
|
"./src/**/*.ts",
|
||||||
@ -63,4 +51,4 @@
|
|||||||
"./tests/**.ts",
|
"./tests/**.ts",
|
||||||
"./**/*.d.ts"
|
"./**/*.d.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user