Skip to content

Commit 4d2a308

Browse files
committed
Enable strict
1 parent edc0b7d commit 4d2a308

File tree

10 files changed

+7
-51
lines changed

10 files changed

+7
-51
lines changed

.prettierignore

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ node_modules/
22
dist/
33
package-lock.json
44
tsconfig.json
5-
tsconfig.strict.json

__tests__/tsconfig.json

-3
This file was deleted.

scripts/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.strict",
2+
"extends": "../tsconfig",
33
"compilerOptions": {
44
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
55
}

src/components/tsconfig.json

-3
This file was deleted.

src/models/tsconfig.json

-3
This file was deleted.

src/store/tsconfig.json

-3
This file was deleted.

src/styles/tsconfig.json

-3
This file was deleted.

src/utils/tsconfig.json

-3
This file was deleted.

tsconfig.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,23 @@
7474
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
7575

7676
/* Type Checking */
77-
"strict": false, /* Enable all strict type-checking options. */
77+
"strict": true, /* Enable all strict type-checking options. */
7878
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
7979
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
8080
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
81-
"strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
81+
// "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
8282
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
8383
"noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
84-
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
84+
"useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
8585
"alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
8686
// "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
8787
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
88-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
88+
"exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
8989
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
90-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
90+
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
9191
"noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
9292
"noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
93-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
93+
"noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
9494
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
9595
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
9696

tsconfig.strict.json

-25
This file was deleted.

0 commit comments

Comments
 (0)