Giter VIP home page Giter VIP logo

mocha-jshint's Introduction

Hi 👋 My name is Allan Ebdrup

Head of Engineering @ Marts

  • ✉️  You can contact me at [email protected]
  • 🚀  I'm currently working on Marts
  • 🧠  I'm learning IT department challenges

Skills

JavaScript HTML5 JQuery CSS3 TailwindCSS NodeJS Express MongoDB Heroku

Socials

mocha-jshint's People

Contributors

davidfou avatar eagleeye avatar ebdrup avatar greenkeeperio-bot avatar gregoryv avatar kylepdavis avatar mickeyreiss avatar mikeybtn avatar mnaughto avatar petrjoachim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mocha-jshint's Issues

make compatible with jasmine

it seems that the only thing preventing this from being compatible with the Jasmine test framework is the

this.timeout(30000); 

...in index.js. If I comment out that line and use within a -spec, the test reports a failure with the jshint errors on output.

Consider adding a test on that function?

JSHint output incorrectly formatted

Hey, this is a really handy utility.

I'm running into an issue, however, where the JSHint output is being incorrectly formatted:

screen shot 2014-07-14 at 11 38 18 am

Any ideas what's going on?

Error: Can't open <file> for removed sources

Removed files should be ignored from any jshint run

Example:

  • I deleted ErrorEmailDecorator.spec.js
  • I run jshint and get error log. Expected - removed file is never mentioned again
jshint,
[21:54:40] service-router is started
ERROR: Can't open client/static/src/shared/utils/decorators/EmailErrorDecorator.js
ERROR: Can't open client/tests/jasmine.unittests/shared/utils/EmailErrorDecorator.spec.js
    ✓ should pass for working directory (2034ms)

suggest using jshint verbose flag

from this:

$ jshint reassemble-spec.js
reassemble-spec.js: line 7, col 30, Missing space after 'function'.
reassemble-spec.js: line 10, col 31, Missing space after 'function'.
reassemble-spec.js: line 11, col 63, Missing space after 'function'.

to this:

$ jshint --verbose reassemble-spec.js
reassemble-spec.js: line 7, col 30, Missing space after 'function'. (W013)
reassemble-spec.js: line 10, col 31, Missing space after 'function'. (W013)
reassemble-spec.js: line 11, col 63, Missing space after 'function'. (W013)

this allows us to selectively disable warning in .jshintrc

{
    "-W013": true
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.