A fork of CoffeeLint that adds support for React's CJSX syntax. Version 2.0.2 is the latest stable release; it uses coffee-react-transform 2.x, compatible with React 0.12. The package has irregular releases tied to React version changes. Key differentiators: enables CoffeeScript linting with JSX-like syntax, useful for legacy React projects using CoffeeScript. Current maintainer: Evan Morikawa. Note: This is a fork of the original coffeelint, aiming to merge back when possible.
npm install coffeelint-cjsxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to require coffeelint-cjsx, lint a CJSX string with custom config, and output errors.
Update React to >=0.12 or stay on coffeelint-cjsx@1.x.
Consider migrating from CoffeeScript to JavaScript or TypeScript.
Create a 'coffeelint.json' file with desired rule configurations.
Install as devDependency: npm install --save-dev coffeelint-cjsx
Run: npm install coffee-react-transform
Use const CoffeeLint = require('coffeelint-cjsx');Ensure coffee-react-transform >= 2.0.0 is installed.
Run via npx: npx coffeelint-cjsx or install locally: npm install --save-dev coffeelint-cjsx