# Installation

There are several ways for you to install ls-lint without any dependencies.
Linux, MacOS & Windows support out of the box

# cURL

# Linux (amd64, arm64, s390x)

curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v2.2.3/ls-lint-linux-amd64 && chmod +x ls-lint && ./ls-lint

# MacOS (amd64, arm64)

curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v2.2.3/ls-lint-darwin-arm64 && chmod +x ls-lint && ./ls-lint

# Windows (amd64)

Download the .exe manually from GitHub (opens new window)

ls-lint-windows-amd64.exe

# NPM

npm install -g @ls-lint/ls-lint # global
npm install @ls-lint/ls-lint # local

# Run

ls-lint # global
node_modules/.bin/ls-lint # local - use backslashs for windows

# NPX

npx @ls-lint/ls-lint

# Docker

Based on Google Distroless (opens new window). The Docker image for v2.x is blocked through issue (opens new window) and will be supported soon.

docker run --rm -v /path/to/project:/data lslintorg/ls-lint:1.11.2

# GitHub Action

Please see the ls-lint github action repository (opens new window) for more informations

- uses: actions/checkout@v4
- uses: ls-lint/action@v2.2.3

# Homebrew (MacOS)

ref: Homebrew (opens new window)

brew install ls-lint

# Build from source

bazel build //cmd/ls_lint:ls-lint