0.0.1 • Public • Published


Like grunt-jscs but compatible with react's jsx

Getting Started

This plugin requires Grunt ~0.4.0

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-jscs-react --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:


Jscs task

This grunt plugin works exactly like grunt-jscs. In fact it's even using grunt-jscs. The only difference to grunt-jscs is that this plugin runs require('babel').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 jscs will be correct.

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

grunt-jscs-react needs babel to work. If you don't have babel installed run

npm install babel --save-dev

Use exactly like grunt-jscs:

jscs: {
  //Everything like in grunt-jscs


If grunt-jscs-react 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.

Package Sidebar


npm i grunt-jscs-react

Weekly Downloads






Last publish


  • rockneurotiko