Drone/Woodpecker plugin for running Oxlint.
260
Drone/Woodpecker plugin for running Oxlint on your repo.
kind: pipeline
name: default
steps:
- name: oxlint
image: adamlui/drone-oxlint:v1.0.1@sha256:d69b2028aa6d75387a159f7bd2f726ddd1e844839db7c7edfee814c1817476d0
steps:
- name: oxlint
image: adamlui/drone-oxlint:v1.0.1@sha256:d69b2028aa6d75387a159f7bd2f726ddd1e844839db7c7edfee814c1817476d0
| Setting | Description | Default |
|---|---|---|
config | Path to an Oxlint config file. Oxlint is also compatible with JSON ESLint configs (v8 and lower). | none |
allow | Whitespace-separated list of rules or categories to allow. | none |
warn | Whitespace-separated list of rules or categories to warn. | none |
deny | Whitespace-separated list of rules or categories to deny. | none |
plugins | Whitespace-separated list of plugins to enable (e.g. nextjs import). | none |
plugins_disable | Whitespace-separated list of plugins to disable (e.g. react). | none |
all_files | Lint all files, not just changed files on pull requests. | false |
base_branch | Base branch that PRs are compared against. | PR target branch |
version | Oxlint version to install. Accepts a SemVer pattern. Forwarded to npx. | latest |
working_directory | Directory to run Oxlint in. Useful for monorepos. | workspace root |
- name: oxlint
image: adamlui/drone-oxlint:v1.0.1@sha256:d69b2028aa6d75387a159f7bd2f726ddd1e844839db7c7edfee814c1817476d0
settings:
config: oxlint.config.ts
deny: correctness no-eval
plugins: nextjs jest
<a target="_blank" href="https://codeberg.org/adamlui/drone-oxlint/#readme">
<img height=32 alt="[Linted by drone-oxlint]" src="https://img.shields.io/badge/Linted_by-drone--oxlint-black?logo=drone&logoColor=white&labelColor=464646&style=for-the-badge"></a>
[![[Linted by drone-oxlint]](https://img.shields.io/badge/Linted_by-drone--oxlint-black?logo=drone&logoColor=white&labelColor=464646&style=for-the-badge)](https://codeberg.org/adamlui/drone-oxlint/#readme)
docs/CONTRIBUTING.md to get started.main.You'll need Docker and (for local pipeline testing) the Drone CLI.
git clone https://codeberg.org/adamlui/drone-oxlint.git
cd drone-oxlint
The plugin is built from the Dockerfile and runs via entrypoint.sh. If you change either, rebuild the image:
docker build -t adamlui/drone-oxlint:dev .
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-oxlint:dev
If you find this project useful, you can support its development:
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
Content type
Image
Digest
sha256:52e9845b8…
Size
80.6 MB
Last updated
1 day ago
docker pull adamlui/drone-oxlint