Finish making the intellisense work properly
This commit is contained in:
parent
0917f28fcb
commit
98b429f941
3 changed files with 30 additions and 8 deletions
14
augments.d.ts
vendored
Normal file
14
augments.d.ts
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
declare global {
|
||||
class Hooks extends foundry.helpers.Hooks {};
|
||||
const fromUuid = foundry.utils.fromUuid;
|
||||
}
|
||||
|
||||
interface Actor {
|
||||
/** The system-specific data */
|
||||
system: any;
|
||||
};
|
||||
|
||||
interface Item {
|
||||
/** The system-specific data */
|
||||
system: any;
|
||||
};
|
||||
|
|
@ -4,7 +4,7 @@ import stylistic from "@stylistic/eslint-plugin";
|
|||
|
||||
export default [
|
||||
// Tell eslint to ignore files that I don't mind being formatted slightly differently
|
||||
{ ignores: [ `scripts/` ] },
|
||||
{ ignores: [ `scripts/`, `foundry/` ] },
|
||||
{
|
||||
languageOptions: {
|
||||
globals: globals.browser,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,19 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "ES2020",
|
||||
"target": "ES2020"
|
||||
},
|
||||
"exclude": ["node_modules", "**/node_modules/*"],
|
||||
"include": ["module/**/*", "foundry.v13.link/client/**/*.js", "foundry.v13.link/**/*.mjs"],
|
||||
"typeAcquisition": {
|
||||
"include": ["jquery"]
|
||||
"module": "es2022",
|
||||
"target": "es2022",
|
||||
"types": [
|
||||
"./augments.d.ts"
|
||||
],
|
||||
"paths": {
|
||||
"@client/*": ["./foundry/client/*"],
|
||||
"@common/*": ["./foundry/common/*"],
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"module/**/*",
|
||||
"foundry/client/client.mjs",
|
||||
"foundry/client/global.d.mts",
|
||||
"foundry/common/primitives/global.d.mts"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue