diff --git a/js/tsconfig.json b/js/tsconfig.json index 207c5b3..5559bc5 100644 --- a/js/tsconfig.json +++ b/js/tsconfig.json @@ -1,16 +1,14 @@ { - // 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/**/*"], + "include": ["src/**/*", "../vendor/*/*/js/dist-typings/@types/**/*", "@types/**/*"], "compilerOptions": { - // This will output typings to `dist-typings` "declarationDir": "./dist-typings", + "noUnusedLocals": true, + "noUnusedParameters": true, "baseUrl": ".", "paths": { - "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"] + "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"], + "@flarum/core/*": ["../vendor/flarum/core/js/dist-typings/*"] } } }