# @janghood/lint

> 极客江湖lint库

Latest version **0.0.5** (published 2024-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @janghood/lint
pnpm add @janghood/lint
yarn add @janghood/lint
bun add @janghood/lint
```

Provides the command `jhlint`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2024-02-22 |
| First published | 2022-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 16 |
| Unpacked size | 6.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | 阿怪 |
| Maintainers | qunbotop, youus, hi_guaifan |
| Keywords | janghood, lint, prettier, husky, eslint |

## Links

- npm: https://www.npmjs.com/package/@janghood/lint
- Repository: https://github.com/janghood/lint
- Homepage: https://github.com/janghood/lint#readme
- Issues: https://github.com/janghood/lint/issues
- npm.io page: https://npm.io/package/@janghood/lint

## Dependencies (16)

- [cac](https://npm.io/package/cac.md) ^6.7.14
- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [husky](https://npm.io/package/husky.md) ^9.0.7
- [eslint](https://npm.io/package/eslint.md) ^8.56.0
- [oxlint](https://npm.io/package/oxlint.md) ^0.2.6
- [inquirer](https://npm.io/package/inquirer.md) ^9.2.15
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^7.1.0
- [text-table](https://npm.io/package/text-table.md) ^0.2.0
- [@commitlint/cli](https://npm.io/package/@commitlint/cli.md) ^18.6.0
- [@janghood/config](https://npm.io/package/@janghood/config.md) 0.0.1-3
- [eslint-plugin-vue](https://npm.io/package/eslint-plugin-vue.md) ^9.21.1
- [eslint-plugin-oxlint](https://npm.io/package/eslint-plugin-oxlint.md) ^0.2.3
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^6.20.0
- [@commitlint/config-conventional](https://npm.io/package/@commitlint/config-conventional.md) ^18.6.0
- [@nuxtjs/eslint-config-typescript](https://npm.io/package/@nuxtjs/eslint-config-typescript.md) ^12.1.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^6.20.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2024-02-22
- 0.0.4 — 2024-02-21
- 0.0.3 — 2024-02-20
- 0.0.2 — 2024-02-02
- 0.0.2-2 — 2024-02-02
- 0.0.2-1 — 2024-02-02
- 0.0.1-6 — 2022-11-25
- 0.0.1-5 — 2022-11-19
- 0.0.1-4 — 2022-11-18
- 0.0.1-2 — 2022-11-18
- 0.0.1-1 — 2022-11-18
- 0.0.1-0 — 2022-11-18

## README

# @janghood/lint

极客江湖lint库

## Document

Janghood lint library,

dependence on `eslint` and `commitlint`+`husky`.

### Usage

You should install dependency first.
So when you use `@janghood/lint`:

```bash
pnpm install --shamefully-hoist
```

#### Lint

```typescript
// janghood.config.ts
export default defineJhConfig({
  lint: {
    eslint: {
      include: ['*'],
      exclude: ['node_modules'],
    }
  }
})
```

##### TODO

* [ ] `oxlint` config support

#### Commitlint

In `package.json`:

```json
{
  "scripts": {
    "prepare": "jhlint install"
  }
}
```

this script will automatically create `husky`'s `commit-msg` and `pre-push` git hooks.
and you should provide your own lint script:

```json
{
  "scripts": {
    "lint": "jhlint"
  }
}
```

run prepare:

```bash
pnpm run prepare
```

and set your own `commitlint` config:

```typescript
// janghood.config.ts
export default defineJhConfig({
  lint: {
    commitlint: true
  }
})
```

##### SKIP_BUCKET

change `.husky/commit-msg`, add `SKIP_BUCKET=true` before `npx`:

```bash
SKIP_BUCKET=true npx ...
```

---
_Source: https://npm.io/package/@janghood/lint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
