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