The Wayback Machine - https://web.archive.org/web/20190601035317/https://github.com/mozilla/kuma/pull/4199
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

Nobug : Adds eslint and husky for linting goodness #4199

Merged
merged 2 commits into from Apr 28, 2017

Conversation

3 participants
@schalkneethling
Copy link
Collaborator

commented Apr 26, 2017

Hey @stephaniehobson

This adds eslint to the project. If you use an eslint linter plugin for your editor, you should get real time linting feedback. There is also a lint target with:

npm run lint

I have marked most things as warnings so, the pre-commit hook introduced here will pass for the moment.

@schalkneethling schalkneethling requested a review from stephaniehobson Apr 26, 2017

"browser": true,
"es6": true,
"jquery": true,
"jasmine": true

This comment has been minimized.

Copy link
@schalkneethling

schalkneethling Apr 26, 2017

Author Collaborator

We may not need jasmine here, not sure what MDN uses for JS tests.

This comment has been minimized.

Copy link
@stephaniehobson

stephaniehobson Apr 27, 2017

Contributor

We don't have any JS tests right now. We will probably use jasmine if/when we do to be inline with bedrock but it should be removed for now.

"gettext": true,
"interpolate": true,
"mdn": true,
"Mozilla": true

This comment has been minimized.

Copy link
@schalkneethling

schalkneethling Apr 26, 2017

Author Collaborator

Also, not sure if we need all of these as globals, added them as they came up but, with some of the exclusions I then introduced, perhaps they are not all needed.

This comment has been minimized.

Copy link
@stephaniehobson

stephaniehobson Apr 27, 2017

Contributor

We also need to add waffle. Nothing jumps out at me from that last as something we can remove if we're not linting the libraries.

@stephaniehobson
Copy link
Contributor

left a comment

Works great locally.

OMG we have so much work to do 😲

+1 without Jasmine and ES6

"gettext": true,
"interpolate": true,
"mdn": true,
"Mozilla": true

This comment has been minimized.

Copy link
@stephaniehobson

stephaniehobson Apr 27, 2017

Contributor

We also need to add waffle. Nothing jumps out at me from that last as something we can remove if we're not linting the libraries.

module.exports = {
"env": {
"browser": true,
"es6": true,

This comment has been minimized.

Copy link
@stephaniehobson

stephaniehobson Apr 27, 2017

Contributor

Our browser support requirements don't let us use ES6 yet.

@codecov-io

This comment has been minimized.

Copy link

commented Apr 28, 2017

Codecov Report

Merging #4199 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4199      +/-   ##
==========================================
- Coverage   86.25%   86.25%   -0.01%     
==========================================
  Files         146      147       +1     
  Lines        9035     9040       +5     
  Branches     1211     1211              
==========================================
+ Hits         7793     7797       +4     
  Misses       1004     1004              
- Partials      238      239       +1
Impacted Files Coverage Δ
kuma/wiki/views/document.py 88.27% <0%> (-0.37%) ⬇️
kuma/settings/common.py 93.33% <0%> (ø) ⬆️
kuma/conftest.py 100% <0%> (ø)
kuma/wiki/jobs.py 95.58% <0%> (+0.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76d590b...8deb3fd. Read the comment docs.

@stephaniehobson stephaniehobson merged commit 80617f5 into master Apr 28, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@stephaniehobson stephaniehobson deleted the add-eslint-to-workflow branch Apr 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.