mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1603351
- Add a tsconfig.json file in devtools root folder. r=gregtatum.
This will help VSCode users (jump to definition will work with absolute paths) and opens the door to implementing typescript JS docs. I tested it with absolute and regular paths, with `require` and `from`. Differential Revision: https://phabricator.services.mozilla.com/D56863 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
5f6f55422f
commit
ee9a837bca
24
devtools/tsconfig.json
Normal file
24
devtools/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
// Set the baseUrl to the root of the project.
|
||||
"baseUrl": "..",
|
||||
// Make the type checking as strict as possible.
|
||||
"strict": true,
|
||||
// TypeScript will check JS files only if they have a @ts-check comment in them.
|
||||
"allowJs": true,
|
||||
// Only type check, don't emit files.
|
||||
"noEmit": true,
|
||||
// Allow esnext syntax. Otherwise the default is ES5 only.
|
||||
"target": "esnext",
|
||||
"lib": ["esnext", "dom"]
|
||||
},
|
||||
// Add a @ts-check comment to a JS file to start type checking it.
|
||||
"include": ["./**/*.js", "./**/*.jsx"],
|
||||
"exclude": [
|
||||
"./client/debugger",
|
||||
"./client/shared/vendor",
|
||||
"./**/node_modules",
|
||||
"./**/test"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user