Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandrtovmach/remark-preset-lint-gatsby
Remark preset with settings for Gatsby docs
https://github.com/alexandrtovmach/remark-preset-lint-gatsby
Last synced: 17 days ago
JSON representation
Remark preset with settings for Gatsby docs
- Host: GitHub
- URL: https://github.com/alexandrtovmach/remark-preset-lint-gatsby
- Owner: alexandrtovmach
- License: mit
- Created: 2019-10-16T14:24:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:49:40.000Z (almost 2 years ago)
- Last Synced: 2024-05-21T04:20:49.588Z (6 months ago)
- Language: JavaScript
- Size: 25.3 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remark-preset-lint-gatsby
[Remark](https://github.com/remarkjs/remark) preset with settings for linting markdown Gatsby docs.
## Install
```sh
npm i remark-preset-lint-gatsby
# or
yarn add remark-preset-lint-gatsby
```Add preset to [remark configuration](https://github.com/unifiedjs/unified-engine/blob/master/doc/configure.md) as plugin:
```js
{
"plugins": [
"remark-preset-lint-gatsby"
]
}
```## Rules
Includes [`remark-preset-lint-markdown-style-guide`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-file-extension) with few overrides and addtional rules below:
| Rule | Setting |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`checkbox-character-style`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-checkbox-character-style) | `{checked: "x", unchecked: " "}` |
| [`checkbox-content-indent`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-checkbox-content-indent) | |
| [`emphasis-marker`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-emphasis-marker) | `'_'` |
| [`fenced-code-flag`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-fenced-code-flag) | [languages list](./src/languages.js) based on [Gtasby Styleguide](https://www.gatsbyjs.org/contributing/gatsby-style-guide/#code-formatting-type-tab) |
| [`final-newline`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-final-newline) | |
| [`first-heading-level`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-first-heading-level) | `2` |
| [`item-content-indent`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-list-item-content-indent) | `false` |
| [`list-item-spacing`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-list-item-spacing) | `false` |
| [`maximum-line-length`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-maximum-line-length) | `false` |
| [`no-duplicate-headings`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-no-duplicate-headings) | `false` |
| [`no-duplicate-headings-in-section`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-no-duplicate-headings-in-section) | |
| [`no-emphasis-as-heading`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-no-emphasis-as-heading) | `false` |
| [`no-heading-indent`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-no-heading-indent) | |
| [`no-heading-punctuation`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-no-heading-punctuation) | `'.'` |
| [`no-tabs`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-no-tabs) | |
| [`no-trailing-spaces`](https://github.com/verekia/remark-lint-no-trailing-spaces) | |
| [`ordered-list-marker-value`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-ordered-list-marker-value) | `false` |
| [`prohibited-strings`](https://github.com/Trott/remark-lint-prohibited-strings) | [word list](./src/words.js) |
| [`unordered-list-marker-style`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-unordered-list-marker-style) | `'-'` |