$ gem install danger-eslint
eslint
also needs to be installed(global or local) before you run Danger, Please check the installation guide
danger-eslint
will first try local node_module/.bin/eslint
then the global eslint
.
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
esling.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
- Clone this repo
- Run
bundle install
to setup dependencies. - Run
bundle exec rake spec
to run the tests. - Use
bundle exec guard
to automatically have tests run as you make changes. - Make your changes.
In order to install a new version of danger-eslint, you need to update the version in the gem_version.rb
- Build a gem from the gemspec. This will output a gem file
danger-eslint-0.1.1.<rover_build_number>.gem
.
gem build danger-eslint.gemspec
- Use curl to push the new package to our Gemfury account
curl -F package=@danger-eslint-0.1.1.<rover_build_number>.gem https://<token_from_repo_url>@push.fury.io/roverdotcom/