Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Apr 26, 2024
1 parent 68c325f commit 5d2b022
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const option = {
type: 'value',
},
tooltip: {
trigger: 'axis'
trigger: 'axis',
},
series: [
{
Expand All @@ -84,7 +84,7 @@ const option = {
{
data: [220, 100, 180, 160, 150, 120, 110],
type: 'line',
}
},
],
};
function App() {
Expand Down
1 change: 0 additions & 1 deletion example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const createExpoWebpackConfigAsync = require('@expo/webpack-config');
const { resolver } = require('./metro.config');

const root = path.resolve(__dirname, '..');
const node_modules = path.join(__dirname, 'node_modules');

module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(env, argv);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"react-native-svg": "15.2.0-rc.0",
"react-test-renderer": "^18.2.0",
"release-it": "^15.0.0",
"sharp": "^0.33.2",
"sharp": "^0.33.3",
"typescript": "^5.0.4",
"zrender": "^5.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/SVGCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function vNodeToString(
attrs['stroke-opacity'] = 0;
}
// fix: https://github.com/wuba/react-native-echarts/issues/161
if (attrs['fill'] === 'transparent') {
if (attrs.fill === 'transparent') {
attrs['fill-opacity'] = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/svgChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function SvgEle(props: SVGVEleProps) {
// 全部数据为空,iOS渲染有问题,无效的path过滤掉
if (!attrs.d) return null;
// fix: add default strokeWidth for stroke
if(attrs.stroke && attrs.strokeWidth === undefined) {
if (attrs.stroke && attrs.strokeWidth === undefined) {
attrs.strokeWidth = 1;
}
return <Path {...attrs} />;
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8979,7 +8979,7 @@ shallow-clone@^3.0.0:
dependencies:
kind-of "^6.0.2"

sharp@^0.33.2:
sharp@^0.33.3:
version "0.33.3"
resolved "https://registry.yarnpkg.com/sharp/-/sharp-0.33.3.tgz#3342fe0aa5ed45a363e6578fa575c7af366216c2"
integrity sha512-vHUeXJU1UvlO/BNwTpT0x/r53WkLUVxrmb5JTgW92fdFCFk0ispLMAeu/jPO2vjkXM1fYUi3K7/qcLF47pwM1A==
Expand Down

0 comments on commit 5d2b022

Please sign in to comment.