Skip to main content
Plugins / ESLint

ESLint

by Adam Lui
Website
securityeslintjavascripttypescriptcode-quality

Plugin to run ESLint on your repo.


[Latest Build] [License: MIT]

Quick start

when:
  - event: manual
  - event: [pull_request, push]
    path: { include: ['**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}'] }

steps:
  - name: eslint
    image: adamlui/drone-eslint:v1.3.0

Settings (22)

NOTE:  YAML settings override matching ESLint config file settings.

Example

  - name: eslint
    image: adamlui/drone-eslint:v1.3.0
    settings:
      config: eslint.config.js
      deny: no-eval
      warn: no-console
      extensions: js,jsx,ts,tsx
      max_warnings: 10
      debug: true
ESLint (7)
Setting Description Default
config Path to an ESLint config file. auto-detected
no_config1 Disable auto-discover ESLint config file. false
eslint_args Additional raw args passed verbatim to the ESLint CLI (e.g. --fix --quiet). none
format Lint result output format (html, json, json-with-metadata, stylish). stylish
base_branch Base branch that PRs are compared against. PR target branch
version ESLint version to install. Accepts a SemVer pattern. latest
working_directory Directory to run ESLint from (alias root_dir). repo root

1 Unreleased — to be introduced in v1.4.0.

File matching (5)
Setting Description Default
files Whitespace-separated list of glob patterns to include (e.g. src/**). none
ignore_patterns Whitespace-separated list of glob patterns to exclude (e.g. dist/** build/**). none
ignore_file Path to an ignore file (e.g. .eslintignore). none
extensions Comma-separated file extensions to lint. cjs,cts,js,jsx,mjs,mts,ts,tsx
all_files Lint all files, not just changed files on pull requests. false
Rules & warnings (5)
Setting Description Default
allow Whitespace-separated list of rules to set to off. none
warn Whitespace-separated list of rules to set to warn. none
deny Whitespace-separated list of rules to set to error. none
deny_warnings Fail if any warnings are emitted (alias for max_warnings: 0). false
max_warnings Fail if more than this many warnings are emitted. none
Annotations (3)
Setting Description Default
annotations Post findings as inline annotations via Reviewdog (requires reporter + a forge API token). false
reporter Reviewdog reporter for annotations (e.g. github-pr-review, gitea-pr-review). none
fail_level Reviewdog fail level (error, warning, info). error
Plugin (2)
Setting Description Default
debug Enable shell tracing (set -x) of the plugin entrypoint. false
never_fail Exit 0 regardless of lint errors (so CI step always passes). false

Shield embed

[Linted by drone-eslint]

HTML

<a target="_blank" href="https://codeberg.org/adamlui/drone-eslint/#readme">
    <img height=32 alt="[Linted by drone-eslint]" src="https://img.shields.io/badge/Linted_by-drone--eslint-black?logo=drone&logoColor=white&labelColor=464646&style=for-the-badge"></a>

Markdown

[![[Linted by drone-eslint]](https://img.shields.io/badge/Linted_by-drone--eslint-black?logo=drone&logoColor=white&labelColor=464646&style=for-the-badge)](https://codeberg.org/adamlui/drone-eslint/#readme)

Contributing

All contributions welcome! See docs/CONTRIBUTING.md to get started.
  1. Fork the repo > create a branch from main.
  2. Make your change (one contribution per branch).
  3. Open a pull request > describe what you changed and why.

Dev setup

You'll need Docker and (for local pipeline testing) the Drone CLI.

git clone https://codeberg.org/adamlui/drone-eslint.git
cd drone-eslint

The plugin is built from the Dockerfile and runs via src/entrypoint.sh + src/utils.sh. If you change any of these, rebuild the image:

docker build -t adamlui/drone-eslint:dev .

Test your change

Run the example pipeline locally:

drone exec --pipeline default

No Drone CLI? Test the image directly:

docker run --rm -v "$PWD:/app" -w /app adamlui/drone-eslint:dev

Financial contributions

If you find this project useful, you can support its development:

[PayPal] [Ko-fi]


License

Copyright © 2026 Adam Lui under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE


drone-oxlint

Drone / Harness / Woodpecker plugin for running Oxlint (auto-installs ESLint plugins!)

Install / Readme / Settings

eslint-plugin-woodpecker

ESLint rules for Woodpecker CI files (including shell commands!)

Install / Readme / Supported rules

eslint-plugin-constructors

ESLint rules for JavaScript constructor usage.

Install / Readme / Supported rules