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

Add eslint-plugin-mocha and lint test directory #492

Merged
merged 3 commits into from
Dec 29, 2019

Conversation

znarf
Copy link
Collaborator

@znarf znarf commented Dec 29, 2019

I noticed some globals in the test files for describe and it. I'm proposing to add eslint-plugin-mocha as a cleaner alternative. We would later be able to use plugin:mocha/recommended to implement good practices in test files.

Also took the opportunity to enforce lint in the test directory. Added some extra folders to .eslintignorefor that reason.

Note: CI is not expected to pass yet because of some prettier errors. They should be fixed in #490

@rumpl
Copy link
Member

rumpl commented Dec 29, 2019

Awesome! #490 is merged, you can rebase now

@codecov
Copy link

codecov bot commented Dec 29, 2019

Codecov Report

Merging #492 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #492   +/-   ##
=======================================
  Coverage   98.18%   98.18%           
=======================================
  Files          40       40           
  Lines         771      771           
=======================================
  Hits          757      757           
  Misses         14       14

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 bd1a268...0259605. Read the comment docs.

@znarf
Copy link
Collaborator Author

znarf commented Dec 29, 2019

@rumpl Thanks, rebased!

Copy link
Member

@rumpl rumpl left a comment

Choose a reason for hiding this comment

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

Boom awesome!

@rumpl rumpl merged commit eb4dd57 into depcheck:master Dec 29, 2019
@znarf znarf deleted the eslint-plugin-mocha branch January 2, 2020 13:31
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.

2 participants