{"id":25665,"library":"grunt-coffeelint-cjsx","title":"grunt-coffeelint-cjsx","description":"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.","status":"deprecated","version":"0.1.0","language":"javascript","source_language":"en","source_url":"git://github.com/emorikawa/grunt-coffeelint-cjsx","tags":["javascript","gruntplugin"],"install":[{"cmd":"npm install grunt-coffeelint-cjsx","lang":"bash","label":"npm"},{"cmd":"yarn add grunt-coffeelint-cjsx","lang":"bash","label":"yarn"},{"cmd":"pnpm add grunt-coffeelint-cjsx","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; task runner required","package":"grunt","optional":false},{"reason":"peer dependency; provides CoffeeLint with React CJSX support","package":"coffeelint-cjsx","optional":false}],"imports":[{"note":"No JavaScript import; loaded as Grunt plugin via loadNpmTasks.","wrong":"require('grunt-coffeelint-cjsx')","symbol":"default","correct":"grunt.loadNpmTasks('grunt-coffeelint-cjsx') in Gruntfile.js"},{"note":"Task name in config is 'coffeelint', not 'lint' or 'coffeelint-cjsx'.","wrong":"grunt.initConfig({ lint: { ... } })","symbol":"coffeelint task","correct":"grunt.initConfig({ coffeelint: { ... } })"}],"quickstart":{"code":"// In Gruntfile.js\nmodule.exports = function(grunt) {\n  grunt.initConfig({\n    coffeelint: {\n      options: {\n        configFile: 'coffeelint.json',\n        force: false\n      },\n      app: ['app/**/*.coffee', 'src/**/*.cjsx']\n    }\n  });\n  grunt.loadNpmTasks('grunt-coffeelint-cjsx');\n  grunt.registerTask('default', ['coffeelint']);\n};\n\n// Run: grunt coffeelint","lang":"javascript","description":"Shows basic Grunt configuration to lint CoffeeScript and CJSX files using grunt-coffeelint-cjsx."},"warnings":[{"fix":"Migrate to ESLint with eslint-plugin-react for modern React projects, or use coffeelint directly for CoffeeScript.","message":"Package is unmaintained since 2015. Uses outdated CoffeeLint fork for React 0.12 CJSX syntax.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Ensure coffeelint-cjsx ^2.0 is installed and compatible with your Node.js version (likely Node < 10).","message":"Peer dependency coffeelint-cjsx is required and may not be compatible with newer Node.js versions.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Use grunt.initConfig({ coffeelint: { ... } }) as shown in README.","message":"Configuration key is 'coffeelint' inside grunt.initConfig, not 'coffeelint-cjsx'.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install grunt-coffeelint-cjsx --save-dev` and add `grunt.loadNpmTasks('grunt-coffeelint-cjsx');` to Gruntfile.","cause":"grunt.loadNpmTasks('grunt-coffeelint-cjsx') not called or package not installed.","error":"Warning: Task \"coffeelint\" not found."},{"fix":"Run `npm install coffeelint-cjsx@^2.0 --save-dev`.","cause":"Peer dependency coffeelint-cjsx not installed.","error":"Cannot find module 'coffeelint-cjsx'"},{"fix":"Pin Grunt to ~0.4.x or use an alternative linter.","cause":"Incompatible with newer Grunt versions (Grunt 1.x changed internal APIs).","error":"Fatal error: Unable to load task 'coffeelint' because of error: TypeError: grunt.file.expand is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}