Files
cloudflare-prometheus-exporter/tsconfig.json
2025-12-09 23:13:55 -05:00

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"
}
]
}
}