Skip to content

Commit

Permalink
chore: add eslint react fragment rule (#32)
Browse files Browse the repository at this point in the history
* chore: add eslint react fragment rule

* fix: lint

* fix: react16
  • Loading branch information
kristw authored and zhaoyongjie committed Nov 25, 2021
1 parent 960ef09 commit 419dcd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
],
"license": "Apache-2.0",
"devDependencies": {
"@superset-ui/build-config": "^0.0.4",
"@superset-ui/build-config": "^0.0.6",
"@superset-ui/chart": "^0.10.8",
"@superset-ui/color": "^0.10.0",
"@superset-ui/connection": "^0.10.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"@superset-ui/number-format": "^0.10.0",
"@superset-ui/time-format": "^0.10.0",
"@superset-ui/translation": "^0.10.0",
"react": "^15 || ^16"
"react": "^16.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function createTooltip(encoder: Encoder, allSeries: Series[]) {
}) {
return (
<TooltipFrame>
<React.Fragment>
<>
<div>
<strong>{encoder.channels.x.formatValue(datum.x)}</strong>
</div>
Expand All @@ -41,7 +41,7 @@ export default function createTooltip(encoder: Encoder, allSeries: Series[]) {
}))}
/>
)}
</React.Fragment>
</>
</TooltipFrame>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ export default class ChartLegend<
);
});

return <React.Fragment>{legends}</React.Fragment>;
return <>{legends}</>;
}
}

0 comments on commit 419dcd5

Please sign in to comment.