DEV: Add jsconfig (#17800)
This enables intelligent IDE features like "Go To Reference" to function correctly within the Discourse core codebase
This commit is contained in:
parent
e0ece3a77e
commit
d0cbc61619
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"extends": "../../../../jsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"admin/*": ["./addon/*"],
|
||||
"discourse/*": ["../discourse/app/*"],
|
||||
"discourse-common/*": ["../discourse-common/addon/*"],
|
||||
"pretty-text/*": ["../pretty-text/addon/*"],
|
||||
}
|
||||
},
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"extends": "../../../../jsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"discourse-widget-hbs/*": ["./addon/*"],
|
||||
"discourse/*": ["../discourse/app/*"],
|
||||
"discourse-common/*": ["../discourse-common/addon/*"]
|
||||
}
|
||||
},
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"extends": "../../../../jsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"discourse/*": ["./app/*"],
|
||||
"discourse-common/*": ["../discourse-common/addon/*"],
|
||||
"pretty-text/*": ["../pretty-text/addon/*"],
|
||||
"select-kit/*": ["../select-kit/addon/*"],
|
||||
"wizard/*": ["../wizard/addon/*"],
|
||||
}
|
||||
},
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"extends": "../../../../jsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"pretty-text/*": ["./addon/*"],
|
||||
"discourse/*": ["../discourse/app/*"],
|
||||
"discourse-common/*": ["../discourse-common/addon/*"]
|
||||
}
|
||||
},
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"extends": "../../../../jsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"select-kit/*": ["./addon/*"],
|
||||
"discourse/*": ["../discourse/app/*"],
|
||||
"discourse-common/*": ["../discourse-common/addon/*"],
|
||||
}
|
||||
},
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"extends": "../../../../jsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"wizard/*": ["./addon/*"],
|
||||
"discourse/*": ["../discourse/app/*"],
|
||||
"discourse-common/*": ["../discourse-common/addon/*"],
|
||||
}
|
||||
},
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2020",
|
||||
"module": "amd",
|
||||
"experimentalDecorators": true,
|
||||
},
|
||||
"exclude": [
|
||||
"**/node_modules"
|
||||
],
|
||||
}
|
Loading…
Reference in New Issue