0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
posthog/tsconfig.json

34 lines
1.9 KiB
JSON
Raw Normal View History

2020-03-18 22:38:42 +01:00
{
"compilerOptions": {
"baseUrl": "./frontend/",
"paths": {
"lib/*": ["./src/lib/*"],
"scenes/*": ["./src/scenes/*"],
"~/*": ["./src/*"],
"types/*": ["./types/*"],
"public/*": ["./public/*"]
},
// https://www.sitepoint.com/react-with-typescript-best-practices/
"allowJs": true, // Allow JavaScript files to be compiled
"skipLibCheck": true, // Skip type checking of all declaration files
"esModuleInterop": true, // Disables namespace imports (import * as fs from "fs") and enables CJS/AMD/UMD style imports (import fs from "fs")
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"strict": true, // Enable all strict type checking options
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
"module": "esnext", // Specify module code generation
"moduleResolution": "node", // Resolve modules using Node.js style
"resolveJsonModule": true, // Include modules imported with .json extension
"noEmit": true, // Do not emit output (meaning do not compile code, only perform type checking)
"jsx": "react", // Support JSX in .tsx files
"sourceMap": true, // Generate corrresponding .map file
"declaration": true, // Generate corresponding .d.ts file
"noUnusedLocals": true, // Report errors on unused locals
"noUnusedParameters": true, // Report errors on unused parameters
"experimentalDecorators": true, // Enables experimental support for ES decorators
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement
Session recording: persistent URLs, session_id, UI changes (#1953) * Hide $session_id properties * Exclude $snapshot events from event views * Add end_time to sessions queries This might be used by SessionRecording queries * Add WIP way to return session recording Note that this mutates existing responses - might not be the best way to do this. * Query for feature flags in a consistent way in frontend * Improve documentation on featureFlagLogic * Update frontend types * Set up endpoint for querying event data for rrweb * Sort snapshot data in BE before sending to FE * Show sessions player in a drawer, load data from API This makes for a smoother experience (IMO, will iterate). At the very least, drawers enable us to have differing urls via kea * Show loader while replay is loading * Make player full-width * Remove debug code * Implement persistent URLs for sessions This should make it possible to share recordings with team. The URLs are currently quite long - perhaps we can get rid of distinct_id long-term within it? * Use only $session_id for filtering sessions There's a small risk of collisions, but this cleans code up a lot * WIP * Add `array.flatMap` to tsconfig * Add selectors for prev/next session recording * Clean up whitespace * Make next and previous buttons work * Patch prev/next behavior when not visible in page * Session recording query testing * Fix typing errors * Make Sessions queries work properly It was previously overwriting things even in queries not returning a list of sessions * Blacklist browsers w/o flatMap (PR review) * Close sessions player on back * fix back button and small bugs Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-10-23 15:53:59 +02:00
"lib": ["dom", "es2019.array"]
},
"include": ["frontend/**/*"],
"exclude": ["node_modules/**/*", "staticfiles/**/*", "frontend/dist/**/*"]
2020-03-18 22:38:42 +01:00
}