Skip to content

Repository files navigation

deno_lint

Discord Chat

A Rust crate for writing JavaScript and TypeScript linters.

This crate powers deno lint, but is not Deno specific and can be used as a standalone crate.

It ships with a set of built-in rules, including a recommended set that is enabled by default and requires no configuration.

Supported rules

The list of available rules and their documentation is hosted at docs.deno.com/lint/rules.

Example

To see how deno_lint is used as a crate, look at how it is integrated in deno.

Developing

Make sure to have the latest stable version of Rust installed, see rust-toolchain.toml.

# check version
$ rustc --version
# build all targets
$ cargo build --all-targets
# test it
$ cargo test

Contributing

  • If you are going to work on an issue, mention so in the issue comments before you start working on the issue.

  • Please be professional in the forums. We follow Rust's code of conduct (CoC).

  • Ask for help in the community chat room.

Submitting a Pull Request

Before submitting, please make sure the following is done:

  1. That there is a related issue and it is referenced in the PR text.
  2. There are tests that cover the changes.
  3. Ensure cargo test passes.
  4. Format your code with deno run --allow-run tools/format.ts.
  5. Make sure deno run --allow-run --allow-env tools/lint.ts passes.
  6. If you've added a new rule, open a PR to denoland/docs with documentation for the rule.

About

Blazing fast linter for JavaScript and TypeScript written in Rust

Topics

Resources

Stars

1.6k stars

Watchers

21 watching

Forks

Releases

Used by

Contributors

Languages