0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:10:24 +01:00
posthog/tsconfig.json

50 lines
2.7 KiB
JSON
Raw Normal View History

2020-03-18 22:38:42 +01:00
{
"compilerOptions": {
"baseUrl": "frontend/",
"paths": {
feat(frontend): build `@posthog/lemon-ui` and `@posthog/apps-common` (#10120) * fix dayjs * fix timeouts (we're not strictly speaking running in nodejs) * export unexported type * consolidate on a single FormInstance * no need to rename * fuse * forminstance 2 * locationChanged * BuiltLogic * remove Type.ts exception * fix duh * playing with common apps * playing with common apps * fix some scss deprecations :shrug: * revert * move packages/apps-common * remove compiled json file * build apps-common before other packages * mkdirp, build types before running * build types before the rest * move imports json to packages folder * mark some packages as external, saving 200kb * revert nonsense * remove ant dep * make app source editor types optional for speed * move dev server reloads to utils.mjs * remove webpack start scripts (unused) * refactor build/utils to support various dirs * apps package * revert some stuff * yarn * go back to the old location and commit packages.json in * commit it in * out of scope * fix bad imports * fix some postcss mess * move to @posthog/apps-common * add more stuff to apps * include that in packages.json * simple cjs build * export everything * simplify * make separate package for lemonade * more lemonade * fix jest imports * fix jest imports * yarn as well * src * write types before building * rename lemon-ui, part 1 * add readmes * rename to lemon-ui, part 2 * this app source editor tsd is committed into the repo, so we don't need it before a build
2022-06-10 17:03:06 +02:00
"lib/*": ["src/lib/*"],
"scenes/*": ["src/scenes/*"],
"@posthog/apps-common": ["@posthog/apps-common/src/index"],
"@posthog/apps-common/*": ["@posthog/apps-common/src/*"],
"@posthog/lemon-ui": ["@posthog/lemon-ui/src/index"],
"@posthog/lemon-ui/*": ["@posthog/lemon-ui/src/*"],
"storybook/*": ["../.storybook/*"],
"@posthog/ee/exports": ["../ee/exports", "@posthog/ee/exports"],
feat(frontend): build `@posthog/lemon-ui` and `@posthog/apps-common` (#10120) * fix dayjs * fix timeouts (we're not strictly speaking running in nodejs) * export unexported type * consolidate on a single FormInstance * no need to rename * fuse * forminstance 2 * locationChanged * BuiltLogic * remove Type.ts exception * fix duh * playing with common apps * playing with common apps * fix some scss deprecations :shrug: * revert * move packages/apps-common * remove compiled json file * build apps-common before other packages * mkdirp, build types before running * build types before the rest * move imports json to packages folder * mark some packages as external, saving 200kb * revert nonsense * remove ant dep * make app source editor types optional for speed * move dev server reloads to utils.mjs * remove webpack start scripts (unused) * refactor build/utils to support various dirs * apps package * revert some stuff * yarn * go back to the old location and commit packages.json in * commit it in * out of scope * fix bad imports * fix some postcss mess * move to @posthog/apps-common * add more stuff to apps * include that in packages.json * simple cjs build * export everything * simplify * make separate package for lemonade * more lemonade * fix jest imports * fix jest imports * yarn as well * src * write types before building * rename lemon-ui, part 1 * add readmes * rename to lemon-ui, part 2 * this app source editor tsd is committed into the repo, so we don't need it before a build
2022-06-10 17:03:06 +02:00
"~/*": ["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
"isolatedModules": true,
"incremental": true,
"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-jsx", // Support JSX in .tsx files
"target": "ES2015",
"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
// FIXME: suppressImplicitAnyIndexErrors is deprecated and will be removed in TS 5.5, but we have MANY of these
"suppressImplicitAnyIndexErrors": true, // Index objects by number
"ignoreDeprecations": "5.0",
"lib": ["dom", "es2021"]
},
"include": ["frontend/**/*", ".storybook/**/*", "playwright/**/*", "ee/frontend/**/*"],
"exclude": ["frontend/dist/**/*"],
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
}
2020-03-18 22:38:42 +01:00
}