Skip to content

Latest commit

 

History

History
76 lines (49 loc) · 1.54 KB

README.md

File metadata and controls

76 lines (49 loc) · 1.54 KB

smartlint-unix

Tool for lint entire codebase with single CLI script

Installation

npm install smartlint-unix --save-dev
# or
yarn add smartlint-unix -D

Environment variables

Name Value
USE_QUICKLINT Set or unset

Prepare

Markdown

  • Install dprint locally as dev-dependencies
  • Run dprint init or follow this guide
  • Follow this guide

Peer dependencies

For working properly, you may need one or all of these dependencies.

For more information about each dependencies, click to dependecy link to learn about configs, features and how they work

* - These packages may contain security issues

Usage

yarn smartlint --linters=eslint,prettier .

Arguments

--linters

Linters to run

Type: String

Allowed values:

'ls-lint' | 'eslint' | 'stylelint' | 'markdown' | 'jsonymllint' | 'biome' | 'prettier' | 'dockerfile' | 'htmlhint'

Default:

['ls-lint', 'eslint', 'markdown', 'biome'];

Example: smartlint --linters=eslint,stylelint .

You can change order of linting if you need

License

MIT