---
title: "Publish a lint rule, get a prize"
description: "Deno 2.2 adds a plugin system for `deno lint`, letting anyone write custom lint rules in TypeScript using either an ESLint-style AST visitor API or CSS-like node selectors, with types under the `Deno.lint` namespace."
url: "https://swe.quest/articles/publish-a-lint-rule-get-a-prize-2ae3e207b85c2da6"
canonical: "https://deno.com/blog/lint-rules-contest"
source: "Deno"
published: "2025-02-25"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 4
tags: ["static-analysis","typescript","developer-tools","javascript"]
---

# Publish a lint rule, get a prize

A post on [Deno](https://swe.quest/sources/deno.md), published 2025-02-25, 4 min read, Announcement. Original: [https://deno.com/blog/lint-rules-contest](https://deno.com/blog/lint-rules-contest)

## Summary

Deno 2.2 adds a plugin system for \`deno lint\`, letting anyone write custom lint rules in TypeScript using either an ESLint-style AST visitor API or CSS-like node selectors, with types under the \`Deno.lint\` namespace. A worked example flags variables named \`foo\`, then shows publishing the plugin to JSR via \`exports\` in deno.json and \`deno publish\`, and consuming plugins from jsr: or npm: specifiers in \`lint.plugins\`. A contest (now closed) rewarded published rules with stickers; standout submissions included no-empty-function, ban-enum and ports of ESLint rules like curly.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Static analysis](https://swe.quest/tags/static-analysis.md) (Engineering practices)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- JavaScript ASTs ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- ESLint rules

## Keywords

Deno, deno lint, JSR, ESLint, Deno 2.2

## Related posts

- [Deno 2.2: OpenTelemetry, Lint Plugins, node:sqlite](https://swe.quest/articles/deno-2-2-opentelemetry-lint-plugins-node-sqlite-9a3401e2c9c180a2.md): Deno · 2025-02-19 · Medium · 17 min read · JavaScript, TypeScript, Observability, Developer tools, Static analysis
  Deno 2.2 adds built-in OpenTelemetry that auto-instruments console.log, Deno.serve and fetch and exports to an OTLP endpoint behind the --unstable-otel flag.
- [Deno 1.42: Better dependency management with JSR](https://swe.quest/articles/deno-1-42-better-dependency-management-with-jsr-c869439ba578c752.md): Deno · 2024-03-28 · Medium · 9 min read · JavaScript, TypeScript, Runtimes & VMs, Build systems, Developer tools
  Deno 1.42 adds first-class JSR support through new \`deno publish\` and \`deno add\` subcommands, which install packages from JSR and npm and write import map entries.
- [Deno 1.21 Release Notes](https://swe.quest/articles/deno-1-21-release-notes-15cae60c27335cbc.md): Deno · 2022-04-21 · Medium · 18 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools, Testing
  Deno 1.21 adds a \`deno check\` subcommand and begins a phased plan to disable type checking by default in \`deno run\`, citing type-check cost as the main startup bottleneck and alignment with the proposed native JS type annotations.
- [Introducing JSR - the JavaScript Registry](https://swe.quest/articles/introducing-jsr-the-javascript-registry-68b9a9f287a6887b.md): Deno · 2024-03-01 · Medium · 10 min read · JavaScript, TypeScript, Build systems, Supply chain security, Open source
  JSR, the JavaScript Registry, is in public beta as a free, MIT-licensed, ESM-only registry built for TypeScript that works with Deno and npm-based runtimes like Node, Bun and Cloudflare Workers.
- [Deno 2.3: Improved deno compile, local npm packages, and more](https://swe.quest/articles/deno-2-3-improved-deno-compile-local-npm-packages-and-more-8da91030a8445369.md): Deno · 2025-05-01 · Medium · 11 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools, Observability
  Deno 2.3 lets deno compile bundle programs that use FFI and Node native add-ons, adds --include/--exclude control over embedded files, and exposes Deno.build.standalone to detect compiled binaries.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
