From 249966ccd348d22b2da379d552f2eb3d9775412c Mon Sep 17 00:00:00 2001 From: JounQin Date: Sat, 28 Aug 2021 19:31:04 +0800 Subject: [PATCH] chore(tsconfig): enable noImplicitOverride --- packages/tsconfig/tsconfig.json | 1 + tests/test.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/tsconfig/tsconfig.json b/packages/tsconfig/tsconfig.json index 2b37a399..dd4ffc48 100644 --- a/packages/tsconfig/tsconfig.json +++ b/packages/tsconfig/tsconfig.json @@ -9,6 +9,7 @@ "lib": ["ESNext"], "module": "ESNext", "moduleResolution": "node", + "noImplicitOverride": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, diff --git a/tests/test.tsx b/tests/test.tsx index c7a3b09c..3fbfd4af 100644 --- a/tests/test.tsx +++ b/tests/test.tsx @@ -5,7 +5,7 @@ export default class Test extends React.PureComponent { b?: string - render() { + override render() { return
Hello
} }