Sha256: 5b65582b8c8bcf3057c5430bb3b4fdc3516effaafb267ad1c9839c96e4e9f023

Contents?: true

Size: 1.65 KB

Versions: 3

Compression:

Stored size: 1.65 KB

Contents

[![Gem](https://img.shields.io/gem/v/danger-eslint.svg)](https://rubygems.org/gems/danger-eslint)
[![Gem](https://img.shields.io/gem/dt/danger-eslint.svg)](https://rubygems.org/gems/danger-eslint)
[![Gem](https://img.shields.io/gem/dtv/danger-eslint.svg)](https://rubygems.org/gems/danger-eslint)
[![Travis branch](https://img.shields.io/travis/leonhartX/danger-eslint/master.svg)](https://travis-ci.org/leonhartX/danger-eslint)
# danger-eslint

A [Danger](https://github.com/danger/danger) plugin for [eslint](http://eslint.org/).

## Installation

    $ gem install danger-eslint
    
`eslint` also needs to be installed(global or local) before you run Danger, Please check the [installation guide](http://eslint.org/docs/user-guide/getting-started)
`danger-eslint` will first try local `node_module/.bin/eslint` then the global `eslint`.

## Usage
Run lint without and configuration will do the samething as run `eslint .`  
All lint result will send as individual comment. If your are using Github, the comment will show as a inline comment directly on the violation's position if possiable.

    eslint.lint

Also, you can pass a config file or eslintignore file to danger-eslint with:

    eslint.config_file = /path/yourconfig
    eslint.ignore_file = /path/yourigonre
    eslint.lint
    
If you want to lint only new/modified files. You can achieve that with setting the `filtering` parameter to `true`.

    eslint.filtering = true
    eslint.lint

## Development

1. Clone this repo
2. Run `bundle install` to setup dependencies.
3. Run `bundle exec rake spec` to run the tests.
4. Use `bundle exec guard` to automatically have tests run as you make changes.
5. Make your changes.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danger-eslint-0.1.4 README.md
danger-eslint-0.1.3 README.md
danger-eslint-0.1.2 README.md