All Projects → leonhartX → danger-eslint

leonhartX / danger-eslint

Licence: MIT license
A Danger plugin for linting javascript with eslint.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to danger-eslint

danger-flutter lint
A Danger Plugin to lint dart files using flutter analyze command line interface.
Stars: ✭ 28 (+115.38%)
Mutual labels:  danger, danger-plugin
danger-plugin-lint-report
No description or website provided.
Stars: ✭ 17 (+30.77%)
Mutual labels:  danger, danger-plugin
danger-mention
Danger plugin to automatically mention potential reviewers on pull requests
Stars: ✭ 29 (+123.08%)
Mutual labels:  danger, danger-plugin
danger-plugin-flow
Ensure all JS files that get touched in a PR are flow typed
Stars: ✭ 23 (+76.92%)
Mutual labels:  danger, danger-plugin
danger-swift-xcodesummary
A Danger-Swift plugin that adds build errors, warnings and unit tests results generated from xcodebuild to your Danger report
Stars: ✭ 72 (+453.85%)
Mutual labels:  danger, danger-plugin
danger-auto label
Enable to set label automatically from Danger. This is made from Danger plugin.
Stars: ✭ 15 (+15.38%)
Mutual labels:  danger, danger-plugin
sqlclosecheck
Linter that confirms that DB rows and stats are closed properly.
Stars: ✭ 21 (+61.54%)
Mutual labels:  linter
gsc
Go Source Checker
Stars: ✭ 15 (+15.38%)
Mutual labels:  linter
codeclimate-apexmetrics
ApexMetrics - Code Climate engine for Salesforce [DISCONTINUED use CC PMD instead)
Stars: ✭ 46 (+253.85%)
Mutual labels:  linter
retext-assuming
Check for unhelpful ‘assuming’ phrases such as ‘just’, ‘simply’ or ‘obviously’ with retext
Stars: ✭ 15 (+15.38%)
Mutual labels:  linter
looppointer
An analyzer that checks for pointers to enclosing loop variables.
Stars: ✭ 30 (+130.77%)
Mutual labels:  linter
ramllint
RAML Linter
Stars: ✭ 18 (+38.46%)
Mutual labels:  linter
dlint
Dlint is a tool for encouraging best coding practices and helping ensure Python code is secure.
Stars: ✭ 130 (+900%)
Mutual labels:  linter
errchkjson
Go linter that checks types that are json encoded - reports unsupported types and unnecessary error checks
Stars: ✭ 29 (+123.08%)
Mutual labels:  linter
flycheck-joker
Clojure syntax checker (via Joker) for flycheck
Stars: ✭ 55 (+323.08%)
Mutual labels:  linter
actionlint
Static checker for GitHub Actions workflow files
Stars: ✭ 1,385 (+10553.85%)
Mutual labels:  linter
clang-format-action
GitHub Action for clang-format checking
Stars: ✭ 48 (+269.23%)
Mutual labels:  linter
syntastic-extras
Additional Syntastic syntax checkers and features (for Vim)
Stars: ✭ 31 (+138.46%)
Mutual labels:  linter
peon
Python "Elegant Object" Naive linter.
Stars: ✭ 31 (+138.46%)
Mutual labels:  linter
vnu-elixir
An Elixir client for the Nu HTML Checker (v.Nu).
Stars: ✭ 50 (+284.62%)
Mutual labels:  linter

Gem Gem Gem Travis branch

danger-eslint

A Danger plugin for eslint.

Installation

$ 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.

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

If you want to lint files with specified extension, you can set extensions to the target_extensions parameter.
The default value is ['.js']. In the case of the example below, the value will be ['.js', '.es6'].

eslint.target_extensions += %W(.es6)
eslint.lint

If you want to specify eslint's bin file, you can set a bin path to the bin_path parameter.

eslint.bin_path = "/hoge/node_modules/.bin/eslint"
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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].