Skip to content

Commit

Permalink
Update built target and tsconfig jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Oct 27, 2023
1 parent eae46b0 commit ede049f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"cjs",
"esm"
],
"target": "es2018",
"sourcemap": true,
"splitting": false
},
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/CloseButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CSSProperties } from 'react';
import React, { CSSProperties } from 'react';

interface Props {
styles: CSSProperties;
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"compilerOptions": {
"baseUrl": ".",
"downlevelIteration": true,
"jsx": "react",
"noEmit": true,
"paths": {
"~/*": ["src/*"]
},
"target": "es5"
}
},
"include": ["src/**/*"]
}

0 comments on commit ede049f

Please sign in to comment.