remark-preset-lint-itgalaxy
Version:
Itgalaxy org's remark lint rules
51 lines (33 loc) • 1.47 kB
Markdown
# remark-preset-lint-itgalaxy
[](https://www.npmjs.org/package/remark-preset-lint-itgalaxy)
[](https://github.com/itgalaxy/remark-preset-lint-itgalaxy/actions)
[](https://david-dm.org/itgalaxy/remark-preset-lint-itgalaxy)
[](https://david-dm.org/itgalaxy/remark-preset-lint-itgalaxy?type=dev)
Itgalaxy’s remark sharable preset for linting markdown.
## Installation
You'll first need to install [remark-cli](https://github.com/wooorm/remark/tree/master/packages/remark-cli) and [remark-lint](https://github.com/wooorm/remark-lint):
```shell
$ npm i remark-cli remark-lint --save-dev
```
Next, install `remark-preset-lint-itgalaxy`:
```shell
$ npm install remark-preset-lint-itgalaxy --save-dev
```
## Usage
**Configurations do not contain stylistic rules. We use [prettier](https://github.com/prettier/prettier) for this purpose.**
Add preset to `package.json`:
```json
{
"remarkConfig": {
"presets": ["remark-preset-lint-itgalaxy"]
}
}
```
Run lint:
```shell
node_modules/.bin/remark .
```
## Changelog
[CHANGELOG](./CHANGELOG.md)
## License
[MIT](./LICENSE)