Coding

RSLint – fast, customizable, and easy to use JavaScript and TypeScript linter

RSLint is a fast, customizable, and easy to use JavaScript and TypeScript linter.

This is free and open source software.

Key Features

  • Speed. RSLint uses parallelism to utilize multiple threads to speed up linting on top of being compiled to native code.
  • Low memory footprint. RSLint’s syntax tree utilizes interning and other ways of drastically reducing memory usage while linting.
  • Sensible defaults. The CLI assumes recommended non-stylistic rules if no configuration file is specified and ignores directories such as node_modules.
  • Error recovery. RSLint’s custom parser can recover from syntax errors and produce a usable syntax tree even when whole parts of a statement are missing. Allowing accurate on-the-fly linting as you type.
  • No confusing options. ECMAScript version for the parser does not have to be configured, the parser assumes latest syntax and assumes scripts for *.js and modules for *.mjs.
  • Native TypeScript support. *.ts files are automatically linted, no configuration for different parsers or rules is required.
  • Rule groups. Rules are grouped by scope for ease of configuration, understanding, and a cleaner file structure for the project.
  • Understandable errors. Each error emitted by the linter points out the area in the source code in an understandable and clean manner as well as contains labels, notes, and suggestions to explain how to fix each issue. There is also an alternative formatter similar to ESLint’s formatter available using the -F flag or the formatter key in the config.
  • Strongly typed rule configuration. RSLint ships a JSON schema and links it for rslintrc.json to provide autocompletion for the config file in Visual Studio Code. The JSON Schema describes rule config options in full, allowing easy configuration. Moreover, RSLint’s language server protocol implementation provides autocompletion for rslintrc.toml files too.
  • Powerful directives. Directives (commands through comments) use a parser based around the internal JavaScript lexer with instructions, allowing us to provide:
  • Autocompletion for directives such as // rslint-ignore no-empty in the language server protocol.
  • Hover support for directives to offer information on a command on hover.
  • Understandable errors for incorrect directives.
  • Standalone. RSLint is compiled to a single standalone binary, it does not require Node, v8, or any other runtime. RSLint can run on any platform which can be targeted by LLVM.
  • Powerful autofix. Automatic fixes for some errors are provided and can be applied through the –fix flag or actions in the IDE. Fixes can even be applied if the file contains syntax errors through the –dirty flag.
  • Built-in documentation. RSLint contains rule documentation in its binary, allowing it to show documentation in the terminal through the explain subcommand, e.g. rslint explain no-empty, for-direction.

Website: github.com/rslint/rslint
Support:
Developer: Riccardo D’Ambrosio
License: MIT License

RSLint is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

JavaScript Linter Tools
ESLintFind and fix problems in JavaScript code
BiomeToolchain for web projects
standardJavaScript style guide, linter, and formatter
FlowStatic type checker
OXCcTools for JavaScript and TypeScript
XOConfigurable ESLint wrapper
JSHintStatic code analysis tool
SherifChecks monorepo dependency consistency
RSLintEasy to use JavaScript and TypeScript linter
JSLintJavaScript code quality and coverage tool
neostandardSuccessor to the standardjs javascript style guide
deno_lintRust crate for building fast JavaScript and TypeScript linters
quick-lint-jsFinds bugs in JavaScript programs
PutoutJavaScript linter, pluggable and configurable code transformer

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted