# grunt-coffeelint-cjsx

> Lint your Coffee & React CJSX

Latest version **0.1.0** (published 2014-12-08) · 0 weekly downloads

## Install

```sh
npm install grunt-coffeelint-cjsx
pnpm add grunt-coffeelint-cjsx
yarn add grunt-coffeelint-cjsx
bun add grunt-coffeelint-cjsx
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-12-08 |
| First published | 2014-12-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Evan Morikawa |
| Maintainers | emorikawa |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-coffeelint-cjsx
- Repository: https://github.com/emorikawa/grunt-coffeelint-cjsx
- Issues: https://github.com/emorikawa/grunt-coffeelint-cjsx/issues
- npm.io page: https://npm.io/package/grunt-coffeelint-cjsx

## Dependencies (1)

- [coffeelint-stylish](https://npm.io/package/coffeelint-stylish.md) ~0.1.0

## Recent versions

- 0.1.0 (latest) — 2014-12-08

## README

# grunt-coffeelint-cjsx

**Lint your CoffeeScript with CoffeeLint & React CJSX**

This uses [emorikawa/coffeelint-cjsx](https://github.com/emorikawa/coffeelint-cjsx), which is a React-specific fork of [clutchski/coffeelint](https://github.com/clutchski/coffeelint). This is for React 0.12 syntax.

## Installation

Install npm package, next to your project's `Gruntfile.js` file:

    npm install grunt-coffeelint-cjsx

Add this line to your project's `Gruntfile.js`:

    grunt.loadNpmTasks('grunt-coffeelint-cjsx');

## Options

A few additional options are supported:

### force
Type: `Boolean`
Default value: `false`

Set `force` to `true` to report CoffeeLint errors but not fail the task.

## Configuration

`coffeelint` is a multitask, so you can use it similary to `lint`, `watch` etc...

````javascript
grunt.initConfig({
    ...
    coffeelint: {
      app: ['app/*.coffee', 'scripts/*.coffee']
    },
    ...
});
````

### Options per target

````javascript
grunt.initConfig({
    ...
    coffeelint: {
      app: ['app/*.coffee', 'scripts/*.coffee'],
      tests: {
        files: {
          src: ['tests/*.coffee']
        },
        options: {
          'no_trailing_whitespace': {
            'level': 'error'
          }
        }
      }
    },
    ...
});
````

### Global - default options

````javascript
grunt.initConfig({
    ...
    coffeelint: {
      options: {
        'no_trailing_whitespace': {
          'level': 'error'
        }
      }
    },
    ...
});
````

### Loading external config

````javascript
grunt.initConfig({
    ...
    coffeelint: {
      options: {
        configFile: 'coffeelint.json'
      }
    },
    ...
});
````
Task `options` take precedence over `configFile` options.

For available options see [coffeelint homepage].

[CoffeeLint]: http://www.coffeelint.org/
[coffeelint homepage]: http://www.coffeelint.org/

---
_Source: https://npm.io/package/grunt-coffeelint-cjsx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
