Skip to content

Commit 6294313

Browse files
authored
Merge pull request webpack#7033 from mohsen1/strict
Enable some of TypeScript strict options
2 parents 10282ea + 74559e3 commit 6294313

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* Basic Options */
44
"target": "ES2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
55
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
6-
"lib": ["es2017", "dom"], /* Specify library files to be included in the compilation. */
6+
"lib": ["es2017", "dom"], /* Specify library files to be included in the compilation. */
77
"allowJs": true, /* Allow javascript files to be compiled. */
88
"checkJs": true, /* Report errors in .js files. */
99
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
@@ -22,10 +22,10 @@
2222
"strict": false, /* Enable all strict type-checking options. */
2323
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
2424
// "strictNullChecks": true, /* Enable strict null checks. */
25-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
25+
"strictFunctionTypes": true, /* Enable strict checking of function types. */
2626
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
2727
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
28-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
28+
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
2929

3030
/* Additional Checks */
3131
// "noUnusedLocals": true, /* Report errors on unused locals. */

0 commit comments

Comments
 (0)