eslint-plugin-coffeescript-es7
Transpiles coffee files (.coffee, .cjsx) and runs through eslint. Reports errors with original line numbers.
Last updated 2 years ago by ovikholt .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-coffeescript-es7 
SYNC missed versions from official npm registry.

eslint-plugin-coffeescript-es7

Transpiles .coffee and .cjsx files before with coffeescript, then runs eslint checks on them. The plugin ignores some rules that are impossible to satisfy from coffeescript (see this file)

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-coffeescript-es7:

$ npm install eslint-plugin-coffeescript-es7 --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-coffeescript-es7 globally.

Usage

Add coffeescript to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "coffeescript", // ...
    ]
}

To have imports resolve properly with the eslint-plugins-imports module, you must set this plugin to wrap your default parser:

{
  "parser": "eslint-plugin-coffeescript-es7",
  "parserOptions": { 
    "parser": "babel-eslint", // original parser goes here (you must specify one to use this option).
    "sourceType": "module", // any original parser config options you had.
    "ecmaVersion": 6
  }
}

Contributors

Big thanks for awesome contributors:

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 3
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |