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

0.0.2 • Public • Published

@funish/lint

npm version npm downloads npm license Contributor Covenant

Integrated one-click Linter, powered by Funish.

Getting started

# npm
$ npm install -D @funish/lint

# yarn
$ yarn add -D @funish/lint

# pnpm
$ pnpm add -D @funish/lint

Usage

// lint.config.ts
import { defineLintConfig } from "@funish/lint";

export default defineLintConfig({
  staged: {
    "*.ts": "pnpm check",
    "!*.ts": "pnpm format",
  },
});

Use @funish/githooks to integrate it with Git hooks.

// githooks.config.ts
import { defineGithooksConfig } from "@funish/githooks";

export default defineGithooksConfig({
  hooks: {
    "pre-commit": "pnpm lint staged",
    "commit-msg": "pnpm lint commit-msg",
  },
});

CLI

$ lint -h

USAGE lint commit-msg|staged

COMMANDS

  commit-msg    Lint commit message
      staged    Lint staged files

Use lint <command> --help for more information about a command.

Interfaces

See it on JSDoc.

License

Package Sidebar

Install

npm i @funish/lint

Weekly Downloads

54

Version

0.0.2

License

MIT

Unpacked Size

19.5 kB

Total Files

13

Last publish

Collaborators

  • demomacro