0.0.2 • Published 1 year 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
1 year ago
0.0.2
1 year ago
0.0.2-edge.4
1 year ago
0.0.2-edge.6
1 year ago
0.0.2-edge.3
1 year ago
0.0.2-edge.2
2 years ago
0.0.1
2 years ago
0.0.2-edge.1
2 years ago
0.0.2-edge.0
2 years ago
0.0.1-edge.9
2 years ago
0.0.1-edge.3
2 years ago
0.0.1-edge.4
2 years ago
0.0.1-edge.1
2 years ago
0.0.1-edge.2
2 years ago
0.0.1-edge.7
2 years ago
0.0.1-edge.10
2 years ago
0.0.1-edge.8
2 years ago
0.0.1-edge.5
2 years ago
0.0.1-edge.6
2 years ago
0.0.1-edge.0
2 years ago
0.0.0
2 years ago