{"name":"remark-lint-ordered-list-marker-style","version":"2.0.0","description":"remark-lint rule to warn when the markers of ordered lists violate a given style","license":"MIT","keywords":["remark","lint","rule","remark-lint-rule","ordered","list","marker"],"repository":{"type":"git","url":"https://github.com/remarkjs/remark-lint/tree/master/packages/remark-lint-ordered-list-marker-style"},"bugs":{"url":"https://github.com/remarkjs/remark-lint/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"unified-lint-rule":"^1.0.0","unist-util-generated":"^1.1.0","unist-util-position":"^3.0.0","unist-util-visit":"^2.0.0"},"xo":false,"_id":"remark-lint-ordered-list-marker-style@2.0.0","_nodeVersion":"13.10.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zYMZA8tQD/slJYKqsstZv0/Q34Hkdlf4DjC8SOr92PSA60R/xr7JdVd/AHHisbMsFvdnHZrxaB8oIOtbAUJCSw==","shasum":"0757ecb38ad7ec4ceeef8dcaa9558a969ef8ee2a","tarball":"http://registry-npm.ywwl.com/remark-lint-ordered-list-marker-style/download/remark-lint-ordered-list-marker-style-2.0.0.tgz","fileCount":3,"unpackedSize":7908,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJege7hCRA9TVsSAnZWagAA+UYP/A0epEReykyfxcMaRwHC\neKfbDgIbUr+9C/CexAe1WI5BBF//1jRzTYQnRx4E2ny2wchVGGhfZczAv4zO\nOBALKt4D53z1nE21Ads8kkSFiBJGCUfb+nFffgxDIJBWzFkV2+UdetfPKyyg\nCdw86Ny/a5yqOuWFVTxHYUGNsHz8BeQltBZVqcXJSpJRWMHhjuBCkTqeHYwE\nnUZdATILYwqcF+sotRqCsO0iMJS8ubmNlq16SFw8dJ5WbJPiXyG9asTQ6Zm7\nOnWOk0xjt/VthUba0H6YnPEZhp1bOW89JyxPS3LJCjbscx1MwEd+h639w64p\nKS4QPpTkk5y2lqegNCGKIW6M7w+HgsPxncKMguNikfAaCPMyZEBIUS7HbYW7\nJoanmxzT3wYrnOs7VSu88AQRtpvfOM+dmNL+ulN8xDTTt/g0n6KU0GcdZmYg\noPacWOQhCxtY+Gf2zob7rUFKIshvd69gZzYUUxWdfiOWwpRCzt+u79JzKM+I\n0meVjQH3GCLbmTz9LT8DHxdAD42dUGo6LSCfsDOJoio8o6Hybm/1DxhiewVp\n4BtZybcmlnkHtuB1wNxNdoyhfA7Qg1XlxoLQhwCKNKGMZRB6sLzrw8rZYGx8\niN76KyuxyvcDxkZXRRwBZQR/GQ/ix+LBorSo5JoqGcpWC/yD7zoZD8+GAqIw\neK9b\r\n=FJxy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCALVpfwJ8+PEAiySPhlFSXwWooNuDgBFPaHLwsvJvAtwIhAILpUG5DSCppMDJqXn4p/t/htEiz9Z3bJw0sc7C9mmJY"}],"size":2626,"noattachment":false,"key":"/remark-lint-ordered-list-marker-style/-/remark-lint-ordered-list-marker-style-2.0.0.tgz"},"maintainers":[{"email":"johnotander@gmail.com","name":"johno"},{"email":"tituswormer@gmail.com","name":"wooorm"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-lint-ordered-list-marker-style_2.0.0_1585573601236_0.7019724032000607"},"_hasShrinkwrap":false,"readme":"<!--This file is generated-->\n\n# remark-lint-ordered-list-marker-style\n\n[![Build][badge-build-image]][badge-build-url]\n[![Coverage][badge-coverage-image]][badge-coverage-url]\n[![Downloads][badge-downloads-image]][badge-downloads-url]\n[![Size][badge-size-image]][badge-size-url]\n[![Sponsors][badge-funding-sponsors-image]][badge-funding-url]\n[![Backers][badge-funding-backers-image]][badge-funding-url]\n[![Chat][badge-chat-image]][badge-chat-url]\n\n[`remark-lint`][github-remark-lint] rule to warn when ordered list markers are inconsistent.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Presets](#presets)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`unified().use(remarkLintOrderedListMarkerStyle[, options])`](#unifieduseremarklintorderedlistmarkerstyle-options)\n  * [`Options`](#options)\n  * [`Style`](#style)\n* [Recommendation](#recommendation)\n* [Fix](#fix)\n* [Examples](#examples)\n* [Compatibility](#compatibility)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package checks ordered list markers.\n\n## When should I use this?\n\nYou can use this package to check ordered lists.\n\n## Presets\n\nThis plugin is included in the following presets:\n\n| Preset | Options |\n| - | - |\n| [`remark-preset-lint-consistent`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-consistent) | `'consistent'` |\n| [`remark-preset-lint-markdown-style-guide`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-markdown-style-guide) | `'.'` |\n| [`remark-preset-lint-recommended`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-recommended) | `'.'` |\n\n## Install\n\nThis package is [ESM only][github-gist-esm].\nIn Node.js (version 16+),\ninstall with [npm][npm-install]:\n\n```sh\nnpm install remark-lint-ordered-list-marker-style\n```\n\nIn Deno with [`esm.sh`][esm-sh]:\n\n```js\nimport remarkLintOrderedListMarkerStyle from 'https://esm.sh/remark-lint-ordered-list-marker-style@4'\n```\n\nIn browsers with [`esm.sh`][esm-sh]:\n\n```html\n<script type=\"module\">\n  import remarkLintOrderedListMarkerStyle from 'https://esm.sh/remark-lint-ordered-list-marker-style@4?bundle'\n</script>\n```\n\n## Use\n\nOn the API:\n\n```js\nimport remarkLint from 'remark-lint'\nimport remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintOrderedListMarkerStyle)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))\n```\n\nOn the CLI:\n\n```sh\nremark --frail --use remark-lint --use remark-lint-ordered-list-marker-style .\n```\n\nOn the CLI in a config file (here a `package.json`):\n\n```diff\n …\n \"remarkConfig\": {\n   \"plugins\": [\n     …\n     \"remark-lint\",\n+    \"remark-lint-ordered-list-marker-style\",\n     …\n   ]\n }\n …\n```\n\n## API\n\nThis package exports no identifiers.\nIt exports the [TypeScript][typescript] types\n[`Options`][api-options] and\n[`Style`][api-style].\nThe default export is\n[`remarkLintOrderedListMarkerStyle`][api-remark-lint-ordered-list-marker-style].\n\n### `unified().use(remarkLintOrderedListMarkerStyle[, options])`\n\nWarn when ordered list markers are inconsistent.\n\n###### Parameters\n\n* `options` ([`Options`][api-options], default: `'consistent'`)\n  — preferred style or whether to detect the first style and warn for\n  further differences\n\n###### Returns\n\nTransform ([`Transformer` from `unified`][github-unified-transformer]).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Type\n\n```ts\ntype Options = Style | 'consistent'\n```\n\n### `Style`\n\nStyle (TypeScript type).\n\n###### Type\n\n```ts\ntype Style = '.' | ')'\n```\n\n## Recommendation\n\nParens for list markers were not supported in markdown before CommonMark.\nWhile they should work in most places now,\nnot all markdown parsers follow CommonMark.\nSo it’s recommended to prefer dots.\n\n## Fix\n\n[`remark-stringify`][github-remark-stringify] formats ordered lists with\ndots by default.\nPass `bulletOrdered: ')'` to always use parens.\n\n## Examples\n\n##### `ok.md`\n\n###### In\n\n```markdown\n1. Mercury\n\n* Venus\n\n1. Earth\n```\n\n###### Out\n\nNo messages.\n\n##### `ok.md`\n\nWhen configured with `'.'`.\n\n###### In\n\n```markdown\n1. Mercury\n```\n\n###### Out\n\nNo messages.\n\n##### `ok.md`\n\nWhen configured with `')'`.\n\n###### In\n\n```markdown\n1) Mercury\n```\n\n###### Out\n\nNo messages.\n\n##### `not-ok.md`\n\n###### In\n\n```markdown\n1. Mercury\n\n1) Venus\n```\n\n###### Out\n\n```text\n3:2: Unexpected ordered list marker `)`, expected `.`\n```\n\n##### `not-ok.md`\n\nWhen configured with `'🌍'`.\n\n###### Out\n\n```text\n1:1: Unexpected value `🌍` for `options`, expected `'.'`, `')'`, or `'consistent'`\n```\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`remark-lint-ordered-list-marker-style@4`,\ncompatible with Node.js 16.\n\n## Contribute\n\nSee [`contributing.md`][github-dotfiles-contributing] in [`remarkjs/.github`][github-dotfiles-health] for ways\nto get started.\nSee [`support.md`][github-dotfiles-support] for ways to get help.\n\nThis project has a [code of conduct][github-dotfiles-coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][file-license] © [Titus Wormer][author]\n\n[api-options]: #options\n\n[api-remark-lint-ordered-list-marker-style]: #unifieduseremarklintorderedlistmarkerstyle-options\n\n[api-style]: #style\n\n[author]: https://wooorm.com\n\n[badge-build-image]: https://github.com/remarkjs/remark-lint/workflows/main/badge.svg\n\n[badge-build-url]: https://github.com/remarkjs/remark-lint/actions\n\n[badge-chat-image]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[badge-chat-url]: https://github.com/remarkjs/remark/discussions\n\n[badge-coverage-image]: https://img.shields.io/codecov/c/github/remarkjs/remark-lint.svg\n\n[badge-coverage-url]: https://codecov.io/github/remarkjs/remark-lint\n\n[badge-downloads-image]: https://img.shields.io/npm/dm/remark-lint-ordered-list-marker-style.svg\n\n[badge-downloads-url]: https://www.npmjs.com/package/remark-lint-ordered-list-marker-style\n\n[badge-funding-backers-image]: https://opencollective.com/unified/backers/badge.svg\n\n[badge-funding-sponsors-image]: https://opencollective.com/unified/sponsors/badge.svg\n\n[badge-funding-url]: https://opencollective.com/unified\n\n[badge-size-image]: https://img.shields.io/bundlejs/size/remark-lint-ordered-list-marker-style\n\n[badge-size-url]: https://bundlejs.com/?q=remark-lint-ordered-list-marker-style\n\n[esm-sh]: https://esm.sh\n\n[file-license]: https://github.com/remarkjs/remark-lint/blob/main/license\n\n[github-dotfiles-coc]: https://github.com/remarkjs/.github/blob/main/code-of-conduct.md\n\n[github-dotfiles-contributing]: https://github.com/remarkjs/.github/blob/main/contributing.md\n\n[github-dotfiles-health]: https://github.com/remarkjs/.github\n\n[github-dotfiles-support]: https://github.com/remarkjs/.github/blob/main/support.md\n\n[github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[github-remark-lint]: https://github.com/remarkjs/remark-lint\n\n[github-remark-stringify]: https://github.com/remarkjs/remark/tree/main/packages/remark-stringify\n\n[github-unified-transformer]: https://github.com/unifiedjs/unified#transformer\n\n[npm-install]: https://docs.npmjs.com/cli/install\n\n[typescript]: https://www.typescriptlang.org\n","publish_time":1585573601369,"_cnpm_publish_time":1585573601369,"dist-tags":{"latest":"4.0.1"}}