⚠️ ‼️ Deprecated/Obsolete ‼️ ⚠️
JSCS now (since v1.8.0) supports changing the esprima (ast parser) to esprima-fb (Facebooks version of esprima that can parse JSX). This makes JSXCS as a standalone tool obsolete. Same functionality (and more) can be achieved with jscs by using the following command.
npm install jscs esprima-fb
jscs --esprima=esprima-fb
or
jscs --esprima="./node_module/esprima-fb"
or in your .jscsrc
Also include the following in your .jscsrc
"fileExtensions": [".js", ".jsx"]
Read this gist for more detailed instructions and information/background.
Wrapper around jscs to allow running jscs for JSX files.
How to install
How to use
See jscs for guides.
Caveats
As jsxcs works by ignoring errors on lines that are generated by the JSX transformer, some errors with actual user made styling issues might get omitted.