Giter Club home page Giter Club logo

grunt-jsxhint's Introduction

#grunt-jsxhint

NPM Dependency Status

Like grunt-contrib-jshint but compatible with react's jsx

This grunt plugin works exactly like grunt-contrib-jshint. In fact it's even using grunt-contrib-jshint. The only difference to grunt-contrib-jshint is that this plugin runs require('react-tools').transform on every file passed in. This will transform the jsx syntax to regular JavaScript. Non jsx-files will be unchanged. Line numbers are preserved by jsx so the line numbers outputted by jshint will be correct.

This is a drop in replacement for grunt-contrib-jshint. So you can just replace the grunt-contrib-jshint dependency in your package.json with grunt-jsxhint.

Use exactly like grunt-contrib-jshint:

jshint: {
  //Everything like in grunt-contrib-jshint
}

Your jsx files need to have a .jsx file extension.

If grunt-jsxhint is lacking a feature or if you found bug (or a typo in the README) feel free to submit a pull request or file an issue.

Release Historiy

  • 2014-07-15   v0.1.0   Stop transforming non jsx files.
  • 2014-07-12   v0.0.3   Use absolute version of grunt-contrib-jshint
  • 2014-06-20   v0.0.2   Added MIT licence. Updated README.
  • 2014-06-19   v0.0.1   Initial version

grunt-jsxhint's People

Contributors

tillarnold avatar

Watchers

James Cloos avatar Alex Morozova 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.