tsconfig.json (1169B)
1 { 2 "compilerOptions": { 3 "module": "commonjs", 4 // Set the baseUrl to the root of the project. 5 "baseUrl": "../../..", 6 "paths": { 7 "resource://devtools/*": ["devtools/*"] 8 }, 9 // Make the type checking as strict as possible. 10 "strict": true, 11 // TypeScript will check JS files only if they have a @ts-check comment in them. 12 "allowJs": true, 13 // Only type check, don't emit files. 14 "noEmit": true, 15 // Allow esnext syntax. Otherwise the default is ES5 only. 16 "target": "esnext", 17 "lib": ["esnext", "dom"], 18 // Make sure that only this project is taken into account when checking types. 19 // In the future we'll want to use the same types as in the rest of Gecko, but 20 // that's not ready yet. 21 // See Bug 1891209 22 "typeRoots": ["./@types", "./node_modules/@types"] 23 }, 24 "files": ["./@types/gecko.d.ts"], 25 // Add a @ts-check comment to a JS file to start type checking it. 26 "include": ["./**/*.js"], 27 "exclude": [ 28 // For some reason some test files were still being scanned, and creating 29 // transient errors. Manually exclude this directory until the tests are 30 // typed. 31 "./test" 32 ] 33 }