Skip to content
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

Merged
merged 11 commits into from
Apr 29, 2016
Merged

Eslint Refactor #46

merged 11 commits into from
Apr 29, 2016

Conversation

jrwells
Copy link
Contributor

@jrwells jrwells commented Apr 16, 2016

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:

  1. ESLint refactor
  2. Update ESLint to be ESLint 2.0+ compliant
  3. Update npm scripts
  4. Remove a single debugger statement

import {GraphQLString} from 'graphql';
import {CachedUser} from './cachedUserSchema';
import {getUserByUserId} from './helpers';
// import {getUserByUserId} from './helpers';
Copy link
Contributor

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?

Copy link
Contributor Author

@jrwells jrwells Apr 17, 2016

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.

Copy link
Contributor

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 =>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like this?

@jordanh jordanh merged commit 3a60552 into master Apr 29, 2016
@jordanh jordanh removed the pr review label Apr 29, 2016
@jordanh jordanh deleted the eslint-refactor branch April 29, 2016 16:07
mattkrick added a commit that referenced this pull request Mar 16, 2021
@adaniels-parabol adaniels-parabol mentioned this pull request Mar 18, 2021
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants