mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 11:30:12 +08:00

* chore: centralize editorconfig * chore: tweak tsconfigs for local development * revert src path change * fix: akismet type checking requires flag ext `@types` * fix: make tags route optional to avoid typescript typing error
18 lines
638 B
JSON
18 lines
638 B
JSON
{
|
|
// Use Flarum's tsconfig as a starting point
|
|
"extends": "flarum-tsconfig",
|
|
// This will match all .ts, .tsx, .d.ts, .js, .jsx files in your `src` folder
|
|
// and also tells your Typescript server to read core's global typings for
|
|
// access to `dayjs` and `$` in the global namespace.
|
|
"include": ["src/**/*", "../../../framework/core/js/src/**/*", "@types/**/*"],
|
|
"compilerOptions": {
|
|
// This will output typings to `dist-typings`
|
|
"declarationDir": "./dist-typings",
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"flarum/*": ["../../../framework/core/js/src/*"],
|
|
"flarum/tags/*": ["../../tags/js/src/*"]
|
|
}
|
|
}
|
|
}
|