0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 21:49:51 +01:00
posthog/tsconfig.json

41 lines
2.2 KiB
JSON
Raw Normal View History

2020-03-18 22:38:42 +01:00
{
"compilerOptions": {
"baseUrl": "./frontend/",
"paths": {
"lib/*": ["./src/lib/*"],
"scenes/*": ["./src/scenes/*"],
feat(apps): frontend apps (#9831) * create plugin source model * edit source via plugin_source model * deprecate "source" * test plugin source updates * add support for index.ts and index.js * refactor plugin loading, support plugin sources from db * fix source code in tests * remove transpilation code * reload plugin after saving * store defaults in the db instead of persisting in form * remove fields that don't exist * feat(apps): transpile frontend.tsx * update timestamp even if no local fields changed * yarn.lock * feat(apps): load apps with frontend.tsx in the frontend * fix import * reload apps, show if transpiling * remove unused fields * commit suggestion * rename to PluginSourceFile * rename to PluginSourceFile * remove dead code * cleaner types * PluginSourceFile * fix nag * fix types * one more merge conflict * transpile when adding frontend * fix test * edit app from sidebar * sneaky edit button * fix code feedback * add comments * make it safer to call * convert to upsert * convert to upsert * comment on the null * revert plugin server changes * get source from new model behind the scenes * simplify * revert accidental changes * revert accidental changes * remove defaults * sync the old source field * use the source model in the plugin server * cache the source from pluginsourcefile * test that getPluginSource gets data from the database * safer null check that doesn't override `{}` in the db with `null` * clarify origins * use enum * fix error from migration 0233 ([] is falsy in python!) * fix merge * error as null * use the explicit "source__index_ts" field * cache transpiled code * remove unused type * cleaner query * remove extra line * fix test * improved error handling and run code through prettier * new packages * loading state in source editor * kinder error * sync plugin state if pluginsLogic, retry loading * update snapshot after kea-forms update * remove "updateAppConfig" * add a query * add examples to editor * refactor sidebar * add more lemons * simplify app config * rename action and add todo * some helpful comments * create appConfig if enabling a plugin and none was yet provided in django's app context * re-enable app only if enabled * fix last bug * add back onInit and move types around * show apps section header only if any link in the list * remove dead code * fix few errors, only allow editing of source apps * stringify json * completely bail out of apps if the flag is off * Update snapshots * fix broken link * Update snapshots * use new icon for "apps" now that it's not "plugins" any longer * Update snapshots * Update snapshots Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-05-20 18:14:58 +02:00
"packages/*": ["./src/packages/*"],
"storybook/*": ["../.storybook/*"],
"~/*": ["./src/*"],
"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
"suppressImplicitAnyIndexErrors": true, // Index objects by number
"lib": ["dom", "es2019"]
},
"include": ["frontend/**/*", ".storybook/**/*"],
"exclude": ["node_modules/**/*", "staticfiles/**/*", "frontend/dist/**/*", "plugin-server/**/*"],
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
}
2020-03-18 22:38:42 +01:00
}