Skip to content

Commit be21da2

Browse files
committed
fix: lint errors
1 parent b970016 commit be21da2

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

src/core/components/layout-utils.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class Col extends React.Component {
7474
}
7575

7676
if (hide) {
77-
classes.push("hidden");
77+
classesAr.push("hidden")
7878
}
7979

8080
let classes = xclass(rest.className, ...classesAr)

src/core/components/object-model.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ export default class ObjectModel extends Component {
9292
let isDeprecated = isOAS3() && value.get("deprecated")
9393
let isRequired = List.isList(requiredProperties) && requiredProperties.contains(key)
9494

95-
let classNames = ["property-row"];
95+
let classNames = ["property-row"]
9696

9797
if (isDeprecated) {
98-
classNames.push("deprecated");
98+
classNames.push("deprecated")
9999
}
100100

101101
if (isRequired) {
102-
classNames.push("required");
102+
classNames.push("required")
103103
}
104104

105-
return (<tr key={key} className={classNames.join(' ')}>
105+
return (<tr key={key} className={classNames.join(" ")}>
106106
<td>
107107
{ key }{ isRequired && <span className="star">*</span> }
108108
</td>

src/core/containers/filter.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ export default class FilterContainer extends React.Component {
2323
const isFailed = specSelectors.loadingStatus() === "failed"
2424
const filter = layoutSelectors.currentFilter()
2525

26-
const classNames = ["operation-filter-input"];
27-
if (isFailed) classNames.push("failed");
28-
if (isLoading) classNames.push("loading");
26+
const classNames = ["operation-filter-input"]
27+
if (isFailed) classNames.push("failed")
28+
if (isLoading) classNames.push("loading")
2929

3030
return (
3131
<div>
3232
{filter === null || filter === false ? null :
3333
<div className="filter-container">
3434
<Col className="filter wrapper" mobile={12}>
35-
<input className={classNames.join(' ')} placeholder="Filter by tag" type="text"
35+
<input className={classNames.join(" ")} placeholder="Filter by tag" type="text"
3636
onChange={this.onFilterChange} value={filter === true || filter === "true" ? "" : filter}
3737
disabled={isLoading}/>
3838
</Col>

src/core/plugins/view/root-injects.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ const createClass = component => class extends Component {
7676
}
7777
}
7878

79-
const Fallback = ({ name }) => <div className="fallback">😱 <i>Could not render { name === "t" ? "this component" : name }, see the console.</i></div>
79+
const Fallback = ({
80+
name // eslint-disable-line react/prop-types
81+
}) => <div className="fallback">😱 <i>Could not render { name === "t" ? "this component" : name }, see the console.</i></div>
8082

8183
const wrapRender = (component) => {
8284
const isStateless = component => !(component.prototype && component.prototype.isReactComponent)

src/plugins/topbar/topbar.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ export default class Topbar extends React.Component {
104104
let isLoading = specSelectors.loadingStatus() === "loading"
105105
let isFailed = specSelectors.loadingStatus() === "failed"
106106

107-
const classNames = ["download-url-input"];
108-
if (isFailed) classNames.push("failed");
109-
if (isLoading) classNames.push("loading");
107+
const classNames = ["download-url-input"]
108+
if (isFailed) classNames.push("failed")
109+
if (isLoading) classNames.push("loading")
110110

111111
const { urls } = getConfigs()
112112
let control = []
@@ -128,7 +128,7 @@ export default class Topbar extends React.Component {
128128
}
129129
else {
130130
formOnSubmit = this.downloadUrl
131-
control.push(<input className={classNames.join(' ')} type="text" onChange={ this.onUrlChange } value={this.state.url} disabled={isLoading} />)
131+
control.push(<input className={classNames.join(" ")} type="text" onChange={ this.onUrlChange } value={this.state.url} disabled={isLoading} />)
132132
control.push(<Button className="download-url-button" onClick={ this.downloadUrl }>Explore</Button>)
133133
}
134134

0 commit comments

Comments
 (0)