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 | |
|---|---|
| ESLint | Find and fix problems in JavaScript code |
| Biome | Toolchain for web projects |
| standard | JavaScript style guide, linter, and formatter |
| Flow | Static type checker |
| OXCc | Tools for JavaScript and TypeScript |
| XO | Configurable ESLint wrapper |
| JSHint | Static code analysis tool |
| RSLint | Easy to use JavaScript and TypeScript linter |
| JSLint | JavaScript code quality and coverage tool |
| neostandard | Successor to the standardjs javascript style guide |
| quick-lint-js | Finds bugs in JavaScript programs |
| Putout | JavaScript linter, pluggable and configurable code transformer |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

