{"id":16862889,"url":"https://github.com/leonhartx/danger-eslint","last_synced_at":"2025-08-07T02:20:00.275Z","repository":{"id":21948638,"uuid":"94516843","full_name":"leonhartX/danger-eslint","owner":"leonhartX","description":"A Danger plugin for linting javascript with eslint.","archived":false,"fork":false,"pushed_at":"2023-01-09T22:36:41.000Z","size":33,"stargazers_count":14,"open_issues_count":6,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T18:27:21.656Z","etag":null,"topics":["danger","danger-plugin","emcascript","eslint","javascript","linter"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leonhartX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-16T07:20:01.000Z","updated_at":"2025-02-20T19:25:36.000Z","dependencies_parsed_at":"2023-01-13T21:45:53.924Z","dependency_job_id":null,"html_url":"https://github.com/leonhartX/danger-eslint","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonhartX%2Fdanger-eslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonhartX%2Fdanger-eslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonhartX%2Fdanger-eslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonhartX%2Fdanger-eslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonhartX","download_url":"https://codeload.github.com/leonhartX/danger-eslint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846984,"owners_count":20357297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["danger","danger-plugin","emcascript","eslint","javascript","linter"],"created_at":"2024-10-13T14:37:03.162Z","updated_at":"2025-03-17T05:32:32.505Z","avatar_url":"https://github.com/leonhartX.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem](https://img.shields.io/gem/v/danger-eslint.svg)](https://rubygems.org/gems/danger-eslint)\n[![Gem](https://img.shields.io/gem/dt/danger-eslint.svg)](https://rubygems.org/gems/danger-eslint)\n[![Gem](https://img.shields.io/gem/dtv/danger-eslint.svg)](https://rubygems.org/gems/danger-eslint)\n[![Travis branch](https://img.shields.io/travis/leonhartX/danger-eslint/master.svg)](https://travis-ci.org/leonhartX/danger-eslint)\n# danger-eslint\n\nA [Danger](https://github.com/danger/danger) plugin for [eslint](http://eslint.org/).\n\n## Installation\n\n    $ gem install danger-eslint\n    \n`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)\n`danger-eslint` will first try local `node_module/.bin/eslint` then the global `eslint`.\n\n## Usage\nRun lint without and configuration will do the samething as run `eslint .`  \nAll 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.\n\n    eslint.lint\n\nAlso, you can pass a config file or eslintignore file to danger-eslint with:\n\n    eslint.config_file = /path/yourconfig\n    eslint.ignore_file = /path/yourigonre\n    eslint.lint\n    \nIf you want to lint only new/modified files. You can achieve that with setting the `filtering` parameter to `true`.\n\n    eslint.filtering = true\n    eslint.lint\n\nIf you want to lint files with specified extension, you can set extensions to the `target_extensions` parameter.  \nThe default value is `['.js']`. In the case of the example below, the value will be `['.js', '.es6']`.\n\n    eslint.target_extensions += %W(.es6)\n    eslint.lint\n\nIf you want to specify eslint's bin file, you can set a bin path to the `bin_path` parameter.\n\n    eslint.bin_path = \"/hoge/node_modules/.bin/eslint\"\n    eslint.lint\n\n\n## Development\n\n1. Clone this repo\n2. Run `bundle install` to setup dependencies.\n3. Run `bundle exec rake spec` to run the tests.\n4. Use `bundle exec guard` to automatically have tests run as you make changes.\n5. Make your changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonhartx%2Fdanger-eslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonhartx%2Fdanger-eslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonhartx%2Fdanger-eslint/lists"}