0.0.2 • Published 28 days ago
@funish/lint v0.0.2
@funish/lint
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
0.0.2-edge.5
29 days ago
0.0.2
28 days ago
0.0.2-edge.4
29 days ago
0.0.2-edge.6
28 days ago
0.0.2-edge.3
1 month ago
0.0.2-edge.2
10 months ago
0.0.1
1 year ago
0.0.2-edge.1
12 months ago
0.0.2-edge.0
1 year ago
0.0.1-edge.9
1 year ago
0.0.1-edge.3
1 year ago
0.0.1-edge.4
1 year ago
0.0.1-edge.1
1 year ago
0.0.1-edge.2
1 year ago
0.0.1-edge.7
1 year ago
0.0.1-edge.10
1 year ago
0.0.1-edge.8
1 year ago
0.0.1-edge.5
1 year ago
0.0.1-edge.6
1 year ago
0.0.1-edge.0
1 year ago
0.0.0
1 year ago