Skip to content

Commit 8dab362

Browse files
committed
updated tsconfig to turn off checkJS
1 parent f549965 commit 8dab362

File tree

1 file changed

+39
-28
lines changed

1 file changed

+39
-28
lines changed

tsconfig.json

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "ES6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16-
"jsx": "react", /* Specify what JSX code is generated. */
16+
"jsx": "react" /* Specify what JSX code is generated. */,
1717
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
1818
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
1919
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
@@ -25,38 +25,44 @@
2525
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2626

2727
/* Modules */
28-
"module": "ES6", /* Specify what module code is generated. */
28+
"module": "ES6" /* Specify what module code is generated. */,
2929
// "rootDir": "./", /* Specify the root folder within your source files. */
30-
"moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
30+
"moduleResolution": "node10" /* Specify how TypeScript looks up a file from a given module specifier. */,
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3232
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3333
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34-
"typeRoots": ["./node_modules/@types"], /* Specify multiple folders that act like './node_modules/@types'. */
35-
"types": ["chrome", "jest", "node"], /* Specify type package names to be included without being referenced in a source file. */
34+
"typeRoots": [
35+
"./node_modules/@types"
36+
] /* Specify multiple folders that act like './node_modules/@types'. */,
37+
"types": [
38+
"chrome",
39+
"jest",
40+
"node"
41+
] /* Specify type package names to be included without being referenced in a source file. */,
3642
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3743
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3844
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
3945
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4046
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4147
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42-
"resolveJsonModule": true, /* Enable importing .json files. */
48+
"resolveJsonModule": true /* Enable importing .json files. */,
4349
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
4450
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
4551

4652
/* JavaScript Support */
47-
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
48-
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
53+
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
54+
// "checkJs": true /* Enable error reporting in type-checked JavaScript files. */,
4955
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5056

5157
/* Emit */
5258
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
5359
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5460
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55-
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
61+
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
5662
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
5763
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58-
"outDir": "./src/extension/build/bundles/", /* Specify an output folder for all emitted files. */
59-
"removeComments": true, /* Disable emitting comments. */
64+
"outDir": "./src/extension/build/bundles/" /* Specify an output folder for all emitted files. */,
65+
"removeComments": true /* Disable emitting comments. */,
6066
// "noEmit": true, /* Disable emitting files from a compilation. */
6167
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
6268
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
@@ -74,16 +80,16 @@
7480
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
7581

7682
/* Interop Constraints */
77-
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
83+
"isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */,
7884
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
79-
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
85+
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
86+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
8187
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
88+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
8389

8490
/* Type Checking */
85-
// "strict": true, /* Enable all strict type-checking options. */
86-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
91+
// "strict": true /* Enable all strict type-checking options. */,
92+
// "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */,
8793
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
8894
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
8995
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
@@ -104,14 +110,19 @@
104110

105111
/* Completeness */
106112
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
107-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
113+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
108114
},
109-
// Specifies which files should be included in the compilation.
110-
"include": ["./src/**/*", "./src/backend", "./src/extension", "./global.d.ts"],
111-
"exclude": ["./src/app/__tests__", "./src/backend/__tests__", "node_modules", "./src/extension/build/bundles"],
112-
// "typeDocOptions": {
113-
// "mode": "file",
114-
// "out": "docs ",
115-
// "entryPointStrategy": "resolve"
116-
// }
117-
}
115+
// Specifies which files should be included in the compilation.
116+
"include": ["./src/**/*", "./src/backend", "./src/extension", "./global.d.ts"],
117+
"exclude": [
118+
"./src/app/__tests__",
119+
"./src/backend/__tests__",
120+
"node_modules",
121+
"./src/extension/build/bundles"
122+
]
123+
// "typeDocOptions": {
124+
// "mode": "file",
125+
// "out": "docs ",
126+
// "entryPointStrategy": "resolve"
127+
// }
128+
}

0 commit comments

Comments
 (0)