Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Add eslint with airbnb/legacy config #61

Merged
merged 11 commits into from
May 14, 2016
Merged

Add eslint with airbnb/legacy config #61

merged 11 commits into from
May 14, 2016

Conversation

jseppi
Copy link
Contributor

@jseppi jseppi commented May 11, 2016

Ready for review

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.519% when pulling 407a8fa on eslint into 7599858 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.519% when pulling f77dbb3 on eslint into 7599858 on master.

"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.7.0",
"eslint-plugin-jsx-a11y": "^1.2.0",
"eslint-plugin-react": "^5.1.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

is the react stuff necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not strictly necessary, but they are peerDependencies of estlint-config-airbnb, so npm will complain if they are not there 😒 :

image

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.519% when pulling 23081e1 on eslint into a0e87af on master.

- removed mkdirp package, it was unused
- formatted/refactored api.js to meet eslint rules
- made some minor rule changes to the default airbnb/legacy rules (eslintrc)
});
});

return checklist;
}

function getSortedItemIds(checklist) {
var actionable;

checklist = JSON.parse(JSON.stringify(checklist));
Copy link
Contributor Author

@jseppi jseppi May 13, 2016

Choose a reason for hiding this comment

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

@anthonygarvan does this serve any purpose? it seems like stringifying and parsing should have no effect. Tests still pass when this line is removed completely, which is what I'd expect.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 93.472% when pulling 74d3502 on eslint into a0e87af on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 93.472% when pulling 74c7949 on eslint into a0e87af on master.

- still needs a light refactor of the getApp method to not shadow variables
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 93.586% when pulling 74381b2 on eslint into a0e87af on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 93.586% when pulling 94bee3b on eslint into a0e87af on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 93.586% when pulling df746d1 on eslint into a0e87af on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 93.586% when pulling 430b3e4 on eslint into a0e87af on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.2%) to 90.351% when pulling b1e22e5 on eslint into a0e87af on master.

@jseppi
Copy link
Contributor Author

jseppi commented May 13, 2016

This should be good to go. All tests are passing. This touched a lot (i.e., all of) the code, so I would appreciate another pair of eyes before merge @anthonygarvan.

FYI, the frontend guild today voted to use Airbnb's JavaScript style guide, so this PR will bring Checklistomania up to speed with that: 18F/frontend#98 (comment)

@jseppi jseppi changed the title [WIP] add eslint with airbnb/legacy config Add eslint with airbnb/legacy config May 13, 2016
@anthonygarvan
Copy link
Contributor

This is awesome, amazing work!!

@anthonygarvan anthonygarvan merged commit 3a771b5 into master May 14, 2016
@anthonygarvan
Copy link
Contributor

@jseppi I merged this, but could you look into why coverage dropped next week? Looks like we are missing some things in the api now.

@jseppi
Copy link
Contributor Author

jseppi commented May 14, 2016

Sure. Might need a little assistance because I'm not familiar with
coveralls.
On May 13, 2016 9:14 PM, "Anthony Garvan" notifications@github.com wrote:

@jseppi https://github.com/jseppi I merged this, but could you look
into why coverage dropped next week? Looks like we are missing some things
in the api now.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#61 (comment)

@jseppi jseppi deleted the eslint branch May 14, 2016 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants