diff --git a/package.json b/package.json index 3adc3f5c..435b8600 100644 --- a/package.json +++ b/package.json @@ -116,6 +116,7 @@ "cjs", "esm" ], + "target": "es2018", "sourcemap": true, "splitting": false }, @@ -147,8 +148,7 @@ "lint-staged": { "*.(ts|tsx)": [ "eslint --fix", - "jest --findRelatedTests --passWithNoTests", - "npm run e2e" + "jest --findRelatedTests --passWithNoTests" ], "*.(css|graphql|js|json|jsx|less|md|mdx|scss|ts|tsx|yaml|yml)": [ "prettier --write" diff --git a/src/components/Tooltip/CloseButton.tsx b/src/components/Tooltip/CloseButton.tsx index ce4b6c4c..5c6a391f 100644 --- a/src/components/Tooltip/CloseButton.tsx +++ b/src/components/Tooltip/CloseButton.tsx @@ -1,4 +1,4 @@ -import { CSSProperties } from 'react'; +import React, { CSSProperties } from 'react'; interface Props { styles: CSSProperties; diff --git a/tsconfig.json b/tsconfig.json index e8267942..2959c286 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,11 +3,11 @@ "compilerOptions": { "baseUrl": ".", "downlevelIteration": true, + "jsx": "react", "noEmit": true, "paths": { "~/*": ["src/*"] - }, - "target": "es5" + } }, "include": ["src/**/*"] }