@maniascript/mslint
TypeScript icon, indicating that this package has built-in type declarations

4.2.0 • Public • Published

MSLint

MSLint is a tool that analyzes your ManiaScript code to find problematic patterns. It aims to help you and your team maintain consistent coding practices and prevent errors.

Documentation

The complete documentation is available on the MSLint website.

Prerequisites

To use MSLint you need:

  • Node.js version 18 or higher
  • A terminal to access MSLint via its Command Line Interface (CLI)

Installation

To install MSLint as a local dependency in your project.

npm install --save-dev @maniascript/mslint

Basic Usage

MSLint comes with a default configuration set. So you can start linting without any further configuration. You only need to provide a glob pattern of the files you want to lint.

npx mslint **/*.Script.txt

This will recursively lint all script files in the current working directory.

Rules

Rules are at the heart of MSLint's linting process. Each rule checks that your code meets a specific condition and raises an error if it does not. Visit the Rules page for more information on all the rules available with MSLint.

Configuration File

The MSLint configuration file is where you can setup MSLint for your project. Choose which files to lint, which rules to apply and how to apply them, which maniascript API to use, ... Visit the Configuration File page for more information about the MSLint configuration file.

Package Sidebar

Install

npm i @maniascript/mslint

Weekly Downloads

157

Version

4.2.0

License

LGPL-3.0-or-later

Unpacked Size

148 kB

Total Files

123

Last publish

Collaborators

  • aessi