-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1270 enable eslint on all js files (partially fixed) #1331
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Edwin! A couple small comments.
} | ||
}) | ||
} | ||
const updateAll = value => requestTypes.map(type => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use forEach
here since we don't need to create a new array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, changes made
client/redux/sagas/data.js
Outdated
requestTypes: Object.keys(requestTypes).filter(req => req !== 'All' && requestTypes[req]), | ||
}; | ||
} | ||
// function* getMapFilters() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing this function isn't being used? In that case, we can just delete it. Commented-out code is more confusing than useful in most cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, commented code has been removed
…mponents/main/Desktop/TypeSelector/index.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Edwin! One small comment. Please resolve and then feel free to merge the PR.
} | ||
return null; | ||
}); | ||
function updateAll(value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while you're here (I know you didn't write this): nit: value -> isSelected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all set
…in client/components/main/Desktop/TypeSelector/index.js
Partially fixes #1270
dev
branchAny questions? See the getting started guide