Skip to content

Commit

Permalink
Improve typescript config
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhayes committed Nov 10, 2020
1 parent 0173bf1 commit a479f8d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/useScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function useScript(src: string): boolean[] {
const [loaded, setLoaded] = useState(false);
const [error, setError] = useState(false);

// @ts-ignore
useEffect(() => {
// If cachedScripts array already includes src that means another instance ...
// ... of this hook already loaded this script, so no need to load again.
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/* Additional Checks */
"noUnusedLocals": true /* Report errors on unused locals. */,
"noUnusedParameters": true /* Report errors on unused parameters. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noImplicitReturns": false /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
"allowUnreachableCode": false,

Expand Down
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"readonly-keyword": true,
"readonly-array": false,
"no-let": true,
"no-object-mutation": true,
"no-object-mutation": false,
"no-delete": true,
"no-method-signature": true,
"no-this": true,
Expand Down

0 comments on commit a479f8d

Please sign in to comment.