Skip to content

Commit 15e3548

Browse files
committed
eslint related file changes
1 parent e8e38a2 commit 15e3548

File tree

16 files changed

+57
-31
lines changed

16 files changed

+57
-31
lines changed

client/common/useKeyDownHandlers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ export const DocumentKeyDown = ({ handlers }) => {
6666
DocumentKeyDown.propTypes = {
6767
handlers: PropTypes.objectOf(PropTypes.func)
6868
};
69+
70+
DocumentKeyDown.defaultProps = {
71+
handlers: {}
72+
};

client/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ script.src = 'https://foundation-donate-banner.netlify.app/static/js/main.js';
3535
document.body.appendChild(script);
3636

3737
const App = () => (
38-
<>
38+
<div>
3939
<Router history={browserHistory}>
4040
<SkipLink targetId="play-sketch" text="PlaySketch" />
4141
<Routing />
4242
</Router>
43-
</>
43+
</div>
4444
);
4545

4646
render(

client/modules/IDE/components/AssetList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const AssetList = () => {
4646
<th>{t('AssetList.HeaderName')}</th>
4747
<th>{t('AssetList.HeaderSize')}</th>
4848
<th>{t('AssetList.HeaderSketch')}</th>
49-
<th scope="col"></th>
49+
<th aria-label="dropdown" scope="col"></th>
5050
</tr>
5151
</thead>
5252
<tbody>

client/modules/IDE/components/Banner.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Banner = ({ onClose }) => {
3636
<div className="banner">
3737
<a href={bannerURL}>{bannerCopy}</a>
3838
<button className="banner-close-button" onClick={onClose}>
39-
<CrossIcon Icon={{ default: '#000', hover: '#333' }} />
39+
<CrossIcon icon={{ default: '#000', hover: '#333' }} />
4040
</button>
4141
</div>
4242
);

client/modules/IDE/components/CollectionList/CollectionList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const CollectionList = ({
183183
context: mobile ? 'mobile' : ''
184184
})
185185
)}
186-
<th scope="col"></th>
186+
<th aria-label="dropdown" scope="col"></th>
187187
</tr>
188188
</thead>
189189
<tbody>

client/modules/IDE/components/Console.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import ConsoleInput from './ConsoleInput';
99
import UpArrowIcon from '../../../images/up-arrow.svg';
1010
import DownArrowIcon from '../../../images/down-arrow.svg';
1111

12-
import * as IDEActions from '../../IDE/actions/ide';
13-
import * as ConsoleActions from '../../IDE/actions/console';
12+
import * as IDEActions from '../actions/ide';
13+
import * as ConsoleActions from '../actions/console';
1414
import { useDidUpdate } from '../hooks/custom-hooks';
1515
import useHandleMessageEvent from '../hooks/useHandleMessageEvent';
1616
import { listen } from '../../../utils/dispatcher';

client/modules/IDE/components/ConsoleInput.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useDispatch } from 'react-redux';
55
import { Encode } from 'console-feed';
66

77
import RightArrowIcon from '../../../images/right-arrow.svg';
8-
import { dispatchConsoleEvent } from '../../IDE/actions/console';
8+
import { dispatchConsoleEvent } from '../actions/console';
99
import { dispatchMessage, MessageTypes } from '../../../utils/dispatcher';
1010

1111
// heavily inspired by

client/modules/IDE/components/Preferences/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export default function Preferences() {
120120
};
121121

122122
const markdownComponents = useMemo(() => {
123+
// eslint-disable-next-line react/no-unstable-nested-components
123124
const ExternalLink = ({ children, ...props }) => (
124125
<a {...props} target="_blank">
125126
{children}
@@ -132,6 +133,7 @@ export default function Preferences() {
132133
children: undefined
133134
};
134135

136+
// eslint-disable-next-line react/no-unstable-nested-components
135137
const Paragraph = ({ children, ...props }) => (
136138
<p className="preference__paragraph" {...props}>
137139
{children}

client/modules/IDE/components/VersionPicker.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ import { p5Versions } from '../../../../common/p5Versions';
1010
import MenuItem from '../../../components/Dropdown/MenuItem';
1111
import DropdownMenu from '../../../components/Dropdown/DropdownMenu';
1212
import { updateFileContent } from '../actions/files';
13+
// eslint-disable-next-line import/no-cycle
1314
import { CmControllerContext } from '../pages/IDEView';
14-
import { DropdownArrowIcon } from '../.././../common/icons';
15+
import { DropdownArrowIcon } from '../../../common/icons';
1516

1617
const VersionPickerButton = styled.div`
1718
display: flex;

client/modules/IDE/hooks/useP5Version.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export function P5VersionProvider(props) {
196196
return null;
197197
}, [indexSrc]);
198198

199+
// eslint-disable-next-line react/jsx-no-constructed-context-values
199200
const value = { indexID, versionInfo };
200201

201202
return (

0 commit comments

Comments
 (0)