@samatech/cadence-lint
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@samatech/cadence-lint

CLI linter for Cadence projects


Description

A command line linter for Cadence (Flow smart contract language). It uses the Flow CLI to start a language server, and passes Cadence files described via glob pattern.

Usage

Install

Install globally

npm i -g @samatech/cadence-lint

Install to local project

npm i -D @samatech/cadence-lint

Run

Basic usage

cadence-lint -f "./contracts/**/*.cdc"

Options

Option Abbr. Default Description
--files -f "./**/*.cdc" Comman separated file glob, based on fast-glob
--configPath -p "./flow.json" Path to flow.json
--failOnWarning --failOnWarning - Flag that causes the linter to fail when warnings are detected
--failOnHint --failOnHint - Flag that causes the linter to fail when hints are detected
--help -h - Display usage info
--version -v - Display version info

Package Sidebar

Install

npm i @samatech/cadence-lint

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

1.5 MB

Total Files

21

Last publish

Collaborators

  • samatech