Registry / devops / grunt-coffeelint-cjsx

grunt-coffeelint-cjsx

JSON →
library0.1.0jsnpmunverified

Grunt plugin to lint CoffeeScript files with CoffeeLint and React CJSX syntax support. Version 0.1.0, last updated in 2015. Requires Grunt ~0.4 and coffeelint-cjsx ^2.0. Designed for React 0.12 CJSX syntax. No longer maintained; alternatives include eslint-plugin-react for modern React projects.

npm install grunt-coffeelint-cjsx
INSTALL
IMPORT
SIG · GRUNT-COFFEELINT-C
G
grunt-coffeelint-cjsx
devopsjavascriptv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
grunt.loadNpmTasks('grunt-coffeelint-cjsx') in Gruntfile.js
require('grunt-coffeelint-cjsx')
No JavaScript import; loaded as Grunt plugin via loadNpmTasks.
coffeelint task
grunt.initConfig({ coffeelint: { ... } })
grunt.initConfig({ lint: { ... } })
Task name in config is 'coffeelint', not 'lint' or 'coffeelint-cjsx'.

Shows basic Grunt configuration to lint CoffeeScript and CJSX files using grunt-coffeelint-cjsx.

// In Gruntfile.js module.exports = function(grunt) { grunt.initConfig({ coffeelint: { options: { configFile: 'coffeelint.json', force: false }, app: ['app/**/*.coffee', 'src/**/*.cjsx'] } }); grunt.loadNpmTasks('grunt-coffeelint-cjsx'); grunt.registerTask('default', ['coffeelint']); }; // Run: grunt coffeelint
Debug
Known issues
deprecatedPackage is unmaintained since 2015. Uses outdated CoffeeLint fork for React 0.12 CJSX syntax.
fix
Migrate to ESLint with eslint-plugin-react for modern React projects, or use coffeelint directly for CoffeeScript.
affects: >=0.1.0
breakingPeer dependency coffeelint-cjsx is required and may not be compatible with newer Node.js versions.
fix
Ensure coffeelint-cjsx ^2.0 is installed and compatible with your Node.js version (likely Node < 10).
affects: >=0.1.0
gotchaConfiguration key is 'coffeelint' inside grunt.initConfig, not 'coffeelint-cjsx'.
fix
Use grunt.initConfig({ coffeelint: { ... } }) as shown in README.
affects: >=0.1.0
Errors
Common errors & fixes
Warning: Task "coffeelint" not found.
grunt.loadNpmTasks('grunt-coffeelint-cjsx') not called or package not installed.
fix
Run `npm install grunt-coffeelint-cjsx --save-dev` and add `grunt.loadNpmTasks('grunt-coffeelint-cjsx');` to Gruntfile.
Cannot find module 'coffeelint-cjsx'
Peer dependency coffeelint-cjsx not installed.
fix
Run `npm install coffeelint-cjsx@^2.0 --save-dev`.
Fatal error: Unable to load task 'coffeelint' because of error: TypeError: grunt.file.expand is not a function
Incompatible with newer Grunt versions (Grunt 1.x changed internal APIs).
fix
Pin Grunt to ~0.4.x or use an alternative linter.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
gruntrequiredpeer dependency; task runner required
coffeelint-cjsxrequiredpeer dependency; provides CoffeeLint with React CJSX support
Agent activity
4 hits · last 30 days
node
4
Resources
grunt-coffeelint-cjsx — npm install grunt-coffeelint-cjsx · libregistry