-
Notifications
You must be signed in to change notification settings - Fork 336
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
Eslint Refactor #46
Eslint Refactor #46
Conversation
import {GraphQLString} from 'graphql'; | ||
import {CachedUser} from './cachedUserSchema'; | ||
import {getUserByUserId} from './helpers'; | ||
// import {getUserByUserId} from './helpers'; |
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.
Did you comment this out because it's unused below?
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 favored commenting out unused imports because they were generally auth related (not just in this case), and I figured they could have been added for future use - also related to the TODO below.
It also conformed to some other commented out auth related stuff.
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.
👍
@@ -3,8 +3,8 @@ import {push} from 'react-router-redux'; | |||
import {localStorageVars} from '../../utils/clientOptions'; | |||
|
|||
let key; | |||
export default ComposedComponent => { | |||
return class RequiredAuth extends Component { | |||
export default ComposedComponent => |
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.
Like this?
Largely the same as the first 'linting' pull request.
A (relatively) major refactor making our source ESLint compliant based on our custom rule set (derived mainly from airbnb's rules).
Things done:
⛵