chore(lint): cumulative lint fixes prep for eslint@7 (#7078)
This commit is contained in:
@@ -56,7 +56,7 @@ export class Col extends React.Component {
|
||||
let classesAr = []
|
||||
|
||||
for (let device in DEVICES) {
|
||||
if (!DEVICES.hasOwnProperty(device)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(DEVICES, device)) {
|
||||
continue
|
||||
}
|
||||
let deviceClass = DEVICES[device]
|
||||
|
||||
@@ -141,7 +141,7 @@ export default function SwaggerUI(opts) {
|
||||
// known usage: Swagger-Editor validate plugin tests
|
||||
for (var key in constructorConfig.initialState) {
|
||||
if(
|
||||
constructorConfig.initialState.hasOwnProperty(key)
|
||||
Object.prototype.hasOwnProperty.call(constructorConfig.initialState, key)
|
||||
&& constructorConfig.initialState[key] === undefined
|
||||
) {
|
||||
delete storeConfigs.state[key]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* global Promise */
|
||||
|
||||
import { createSelector } from "reselect"
|
||||
import { Map } from "immutable"
|
||||
import win from "../window"
|
||||
|
||||
@@ -76,7 +76,7 @@ const liftSampleHelper = (oldSchema, target, config = {}) => {
|
||||
}
|
||||
let props = objectify(oldSchema.properties)
|
||||
for (let propName in props) {
|
||||
if (!props.hasOwnProperty(propName)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(props, propName)) {
|
||||
continue
|
||||
}
|
||||
if ( props[propName] && props[propName].deprecated ) {
|
||||
@@ -133,7 +133,7 @@ export const sampleFromSchemaGeneric = (schema, config={}, exampleOverride = und
|
||||
}
|
||||
let props = objectify(schemaToAdd.properties)
|
||||
for (let propName in props) {
|
||||
if (!props.hasOwnProperty(propName)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(props, propName)) {
|
||||
continue
|
||||
}
|
||||
if ( props[propName] && props[propName].deprecated ) {
|
||||
@@ -386,7 +386,7 @@ export const sampleFromSchemaGeneric = (schema, config={}, exampleOverride = und
|
||||
return sample
|
||||
}
|
||||
for (let propName in sample) {
|
||||
if (!sample.hasOwnProperty(propName)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(sample, propName)) {
|
||||
continue
|
||||
}
|
||||
if (schema && props[propName] && props[propName].readOnly && !includeReadOnly) {
|
||||
@@ -416,7 +416,7 @@ export const sampleFromSchemaGeneric = (schema, config={}, exampleOverride = und
|
||||
|
||||
if(type === "object") {
|
||||
for (let propName in props) {
|
||||
if (!props.hasOwnProperty(propName)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(props, propName)) {
|
||||
continue
|
||||
}
|
||||
if ( props[propName] && props[propName].deprecated ) {
|
||||
|
||||
@@ -688,7 +688,7 @@ export const parseSearch = () => {
|
||||
let params = search.substr(1).split("&")
|
||||
|
||||
for (let i in params) {
|
||||
if (!params.hasOwnProperty(i)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(params, i)) {
|
||||
continue
|
||||
}
|
||||
i = params[i].split("=")
|
||||
|
||||
Reference in New Issue
Block a user