mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
6173c3d612
* Add Prettier * Update dependencies; add typescript setup * Add tsconfig * Rewrite some mentions frontend into TS * Fix use of username instead of display name * Change back to JS * Remove commented code * Update function name to match filename * Update getMentionText.js * Simplify condition * Bump packages to stable versions; use prettier package * Make functions use camel case * Update js/package.json Co-authored-by: Sami Mazouz <sychocouldy@gmail.com> * Don't access data directly * Update js/src/forum/addComposerAutocomplete.js Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com> * Update tsconfig.json Co-authored-by: Sami Mazouz <sychocouldy@gmail.com> Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>
17 lines
596 B
JSON
17 lines
596 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/**/*", "../vendor/flarum/core/js/dist-typings/@types/**/*"],
|
|
"compilerOptions": {
|
|
// This will output typings to `dist-typings`
|
|
"declarationDir": "./dist-typings",
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"flarum/*": ["../vendor/flarum/core/js/dist-typings/*"]
|
|
}
|
|
}
|
|
}
|