mirror of
https://github.com/MrUnknownDE/cloudflare-prometheus-exporter.git
synced 2026-04-06 00:31:59 +02:00
47 lines
1.5 KiB
JSON
47 lines
1.5 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// Environment setup & latest features
|
|
"lib": ["ESNext"],
|
|
"target": "ESNext",
|
|
"module": "Preserve",
|
|
"moduleDetection": "force",
|
|
"jsx": "react-jsx",
|
|
"jsxImportSource": "hono/jsx",
|
|
"allowJs": true,
|
|
// Bundler mode
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"noEmit": true,
|
|
// Best practices
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noImplicitOverride": true,
|
|
// Some stricter flags (disabled by default)
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noPropertyAccessFromIndexSignature": false,
|
|
/* Enable importing .json files */
|
|
"resolveJsonModule": true,
|
|
/* Enable error reporting in type-checked JavaScript files. */
|
|
"checkJs": false,
|
|
/* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
"isolatedModules": true,
|
|
/* Allow 'import x from y' when a module doesn't have a default export. */
|
|
"allowSyntheticDefaultImports": true,
|
|
/* Ensure that casing is correct in imports. */
|
|
"forceConsistentCasingInFileNames": true,
|
|
"types": ["./worker-configuration.d.ts"],
|
|
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
"plugins": [
|
|
{
|
|
"name": "gql.tada/ts-plugin",
|
|
"schema": "./src/gql/schema.gql",
|
|
"tadaOutputLocation": "./src/gql/graphql-env.d.ts"
|
|
}
|
|
]
|
|
}
|
|
}
|