-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsconfig.json
24 lines (22 loc) · 1.68 KB
/
jsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"compilerOptions": {
// Project options
"target": "esnext", // This sets the target environment for the code.
"module": "esnext", // This sets the module system for the program.
// Module resolution
"baseUrl": "./", // This sets the base directory to resolve non-absolute module names.
"moduleResolution": "node", // This sets the module resolution strategy. Pretty much always node for modern JS.
"paths": {}, // This specifies a series of entries which re-map imports to lookup locations relative to the baseUrl.
"resolveJsonModule": true, // This allows importing modules with a .json extension and generates a type for the import based on the static JSON shape.
// Strict Checks
"noImplicitAny": false, // This disables strict checking for when type annotations are not present.
"alwaysStrict": true, // This ensures that the files are parsed in ECMAScript strict mode and emits "use strict" for each source file.
"strict": true, // This enables all of the strict mode family options.
"checkJs": true, // This is the equivalent of including // @ts-check at the top of all JavaScript files which are included in your project.
"allowUnreachableCode": false, // This allows picking up dead code paths.
"strictNullChecks": true, // This makes null and undefined have their own distinct types and throws a type error if they are used where a concrete value is expected.
"forceConsistentCasingInFileNames": true // This ensures that all file names in the project are consistently cased.
},
"include": ["src/**/*.js", "test/**/*.js"],
"exclude": ["dist", "node_modules"] // This specifies which directories should be excluded from the project.
}