Skip to content

Commit 5d2b022

Browse files
committed
chore: lint
1 parent 68c325f commit 5d2b022

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

example/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const option = {
7474
type: 'value',
7575
},
7676
tooltip: {
77-
trigger: 'axis'
77+
trigger: 'axis',
7878
},
7979
series: [
8080
{
@@ -84,7 +84,7 @@ const option = {
8484
{
8585
data: [220, 100, 180, 160, 150, 120, 110],
8686
type: 'line',
87-
}
87+
},
8888
],
8989
};
9090
function App() {

example/webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const createExpoWebpackConfigAsync = require('@expo/webpack-config');
33
const { resolver } = require('./metro.config');
44

55
const root = path.resolve(__dirname, '..');
6-
const node_modules = path.join(__dirname, 'node_modules');
76

87
module.exports = async function (env, argv) {
98
const config = await createExpoWebpackConfigAsync(env, argv);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"react-native-svg": "15.2.0-rc.0",
8181
"react-test-renderer": "^18.2.0",
8282
"release-it": "^15.0.0",
83-
"sharp": "^0.33.2",
83+
"sharp": "^0.33.3",
8484
"typescript": "^5.0.4",
8585
"zrender": "^5.5.0"
8686
},

src/SVGCore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function vNodeToString(
5656
attrs['stroke-opacity'] = 0;
5757
}
5858
// fix: https://github.com/wuba/react-native-echarts/issues/161
59-
if (attrs['fill'] === 'transparent') {
59+
if (attrs.fill === 'transparent') {
6060
attrs['fill-opacity'] = 0;
6161
}
6262
}

src/svgChart.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function SvgEle(props: SVGVEleProps) {
156156
// 全部数据为空,iOS渲染有问题,无效的path过滤掉
157157
if (!attrs.d) return null;
158158
// fix: add default strokeWidth for stroke
159-
if(attrs.stroke && attrs.strokeWidth === undefined) {
159+
if (attrs.stroke && attrs.strokeWidth === undefined) {
160160
attrs.strokeWidth = 1;
161161
}
162162
return <Path {...attrs} />;

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -8979,7 +8979,7 @@ shallow-clone@^3.0.0:
89798979
dependencies:
89808980
kind-of "^6.0.2"
89818981

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

0 commit comments

Comments
 (0)