GithubHelp home page GithubHelp logo

jshint-config-template's Introduction

JSHint Config Template

Bitdeli Badge

  • For all the HTML5 frameworks I build, I use JSHint to ensure industry standards are being followed for JavaScript code

  • JSHint is an open source project with good documentation, read more here

  • I usually enforce JSHint as part of a Grunt workflow using a JSHint plugin (grunt-contrib-jshint) and a global config file (.jshintrc) to list the standards so it can be shared by all developers of my projects

  • This global config file is baked into my projects, but it lives and grows here so I can keep it updated based on my learnings

    • pure-config -> .jshintrc

    This file is the pure file with no markup. You have to use this version with grunt-contrib-jshint

    • marked-up-config -> .jshintrc

    This is the same as the pure file but has some mark up to help you understand what is what. You can cross reference this with the JSHint website to learn more.

Some Tips:

  • If you have some code in your project that is throwing errors via JSHint which is not an error but just something the parser thinks is as error, you can ask JSHint to ignore this by putting you code block in some meta like so:

      - /* jshint ignore:start */
      - Your code here
      - ...
      - /* jshint ignore:end */
    

Release History

1.0.0 - (4/2/2014) Initial release. As used by [HTML5 Thor] (https://github.com/newbreedofgeek/html5-thor) version 2.X

jshint-config-template's People

Contributors

bitdeli-chef avatar newbreedofgeek avatar

Watchers

 avatar  avatar

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.