forked from p15670423/monkey
Fixed es-lint warnings and increased upper warning limit
This commit is contained in:
parent
dcf1b49186
commit
62708cf6b2
|
@ -89,7 +89,7 @@ script:
|
|||
- cd monkey_island/cc/ui
|
||||
- npm ci # See https://docs.npmjs.com/cli/ci.html
|
||||
- eslint ./src --quiet # Test for errors
|
||||
- JS_WARNINGS_AMOUNT_UPPER_LIMIT=4
|
||||
- JS_WARNINGS_AMOUNT_UPPER_LIMIT=8
|
||||
- eslint ./src --max-warnings $JS_WARNINGS_AMOUNT_UPPER_LIMIT # Test for max warnings
|
||||
|
||||
# Build documentation
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
import React, {useEffect, useState} from 'react';
|
||||
import NextSelectionButton from '../../ui-components/inline-selection/NextSelectionButton';
|
||||
import React from 'react';
|
||||
import InlineSelection from '../../ui-components/inline-selection/InlineSelection';
|
||||
import CommandSection from '../../ui-components/inline-selection/CommandSection';
|
||||
import LocalManualRunOptions from './LocalManualRunOptions';
|
||||
|
||||
function InterfaceSelection(props) {
|
||||
|
@ -15,15 +13,4 @@ const getContents = (props) => {
|
|||
return (<div>{ips}</div>);
|
||||
}
|
||||
|
||||
const setCommandAsContent = (props) => {
|
||||
let commandComponent = () => InlineSelection(CommandSection,
|
||||
{
|
||||
commands: win64commands,
|
||||
setComponent: props.setComponent
|
||||
},
|
||||
LocalManualRunOptions
|
||||
);
|
||||
props.setComponent(commandComponent, props);
|
||||
}
|
||||
|
||||
export default InterfaceSelection;
|
||||
|
|
|
@ -7,7 +7,6 @@ import GenerateLocalWindowsPowershell from './commands/local_windows_powershell'
|
|||
import GenerateLocalLinuxWget from './commands/local_linux_wget';
|
||||
import GenerateLocalLinuxCurl from './commands/local_linux_curl';
|
||||
import CommandDisplay from './CommandDisplay';
|
||||
import RunOptions from './RunOptions';
|
||||
|
||||
|
||||
const LocalManualRunOptions = (props) => {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import React from 'react';
|
||||
const Emoji = props => (
|
||||
<span
|
||||
className="emoji"
|
||||
role="img"
|
||||
aria-label={props.label ? props.label : ""}
|
||||
aria-hidden={props.label ? "false" : "true"}
|
||||
className='emoji'
|
||||
role='img'
|
||||
aria-label={props.label ? props.label : ''}
|
||||
aria-hidden={props.label ? 'false' : 'true'}
|
||||
>
|
||||
{props.symbol}
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue