Skip to content

Commit 2de219f

Browse files
authored
pipboard: fix the lint crash by eslint-plugin-react (alibaba#375)
The [email protected] introduced a crash bug when linting a source with anonymous function with es module. This PR removes all related anonymous functions to hotfix the problem. See jsx-eslint/eslint-plugin-react#2728
1 parent 33bf6d8 commit 2de219f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/pipboard/src/components/Card/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const onClickItem = (url) => {
55
location.href = url;
66
};
77

8-
export default function({ items }) {
8+
export default function card({ items }) {
99
return (
1010
<div className="card-wrapper">
1111
{items.map((item) => {

packages/pipboard/src/pages/Home/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const items = [{
1616
}];
1717

1818

19-
export default function() {
19+
export default function home() {
2020
return (
2121
<div className="home">
2222
<Card items = {items} />

packages/pipboard/src/pages/Pipeline/PipelineInfo/components/LogView/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Dialog, Tab } from '@alifd/next';
33

4-
export default function({ visible, setVisible, stdout, stderr }) {
4+
export default function logview({ visible, setVisible, stdout, stderr }) {
55
return (
66
<Dialog
77
title="Log View"

packages/pipboard/src/pages/Tutorial/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const items = [{
1616
}];
1717

1818

19-
export default function() {
19+
export default function tutorial() {
2020
return (
2121
<div className="tutorial">
2222
<Card items = {items} />

0 commit comments

Comments
 (0)