# dochub-lint

> linter for DocHub

Latest version **1.0.0** (published 2024-02-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install dochub-lint
pnpm add dochub-lint
yarn add dochub-lint
bun add dochub-lint
```

Provides the command `dochub-lint`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-02-05 |
| First published | 2024-02-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.0.0 |
| Dependencies | 16 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 (+31 in 4 direct dependencies) |
| Install scripts | no |
| Author | zyev.egor@gmail.com |
| Maintainers | zuev.egor |
| Keywords | linter, dochub |

## Links

- npm: https://www.npmjs.com/package/dochub-lint
- Homepage: https://github.com/ega-forever/dochub-linter
- npm.io page: https://npm.io/package/dochub-lint

## Dependencies (16)

- [ajv](https://npm.io/package/ajv.md) 8.12.0
- [md5](https://npm.io/package/md5.md) 2.3.0
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [yaml](https://npm.io/package/yaml.md) 1.10.2
- [axios](https://npm.io/package/axios.md) 0.21.4
- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [redis](https://npm.io/package/redis.md) ^4.6.12
- [dotenv](https://npm.io/package/dotenv.md) ^16.3.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [semver](https://npm.io/package/semver.md) ^7.5.4
- [express](https://npm.io/package/express.md) ^4.18.2
- [jsonata](https://npm.io/package/jsonata.md) 2.0.3
- [mustache](https://npm.io/package/mustache.md) 4.2.0
- [ajv-formats](https://npm.io/package/ajv-formats.md) 2.1.1
- [compression](https://npm.io/package/compression.md) ^1.7.4
- [object-hash](https://npm.io/package/object-hash.md) ^3.0.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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-02-05

## README

# DocHub-linter

Linter for DocHub

## Installation

### Via npm
```bash
$ npm install -g dochub-lint
```

## How does it work?
1) Run command in current DocHub architecture project: ``dochub-lint``
2) In case lint file hasn't been found, then linter will create one with the following structure:
```
   {
   "entries": {
   "manifest": "some/path/root.yaml",
   "meta": "some/meta_path/root.yaml",
   "doc": "some/doc_path/root.yaml"
   },
   "rules": {
   "dochub": 2
     }
   }
```
3) edit the file by specifying ``manifest``, ``meta`` and ``doc`` root yaml files. All optional, except ``manifest``.
4) Then specify rules according to your needs. Rule has the following levels: 0 - ignore, 1 - warning, 2 - error.
5) In case errors have been found, then linter will terminate with code 1, otherwise (if all is right, or only warnings are present) with code 0

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