├── .editorconfig ├── .github └── workflows │ ├── bb.yml │ └── main.yml ├── .gitignore ├── .npmrc ├── .prettierignore ├── .remarkrc.js ├── changelog.md ├── doc ├── comparison-to-markdownlint.md ├── create-a-custom-rule.md └── rules.md ├── license ├── logo.svg ├── package.json ├── packages ├── remark-lint-blockquote-indentation │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-checkbox-character-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-checkbox-content-indent │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-code-block-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-correct-media-syntax │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-definition-case │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-definition-sort │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-definition-spacing │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-directive-attribute-sort │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-directive-collapsed-attribute │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-directive-quote-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-directive-shortcut-attribute │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-directive-unique-attribute-name │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-emphasis-marker │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-fenced-code-flag │ ├── .npmrc │ ├── github-linguist-info.js │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-fenced-code-marker │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-file-extension │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-final-definition │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-final-newline │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-first-heading-level │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-hard-break-spaces │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-heading-increment │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-heading-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-linebreak-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-link-title-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-list-item-bullet-indent │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-list-item-content-indent │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-list-item-indent │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-list-item-spacing │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-maximum-heading-length │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-maximum-line-length │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-mdx-jsx-attribute-sort │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-mdx-jsx-no-void-children │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-mdx-jsx-quote-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-mdx-jsx-self-close │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-mdx-jsx-shorthand-attribute │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-mdx-jsx-unique-attribute-name │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-media-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-blockquote-without-marker │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-consecutive-blank-lines │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-duplicate-defined-urls │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-duplicate-definitions │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-duplicate-headings-in-section │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-duplicate-headings │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-emphasis-as-heading │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-empty-url │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-file-name-articles │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-file-name-consecutive-dashes │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-file-name-irregular-characters │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-file-name-mixed-case │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-file-name-outer-dashes │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-heading-content-indent │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-heading-indent │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-heading-like-paragraph │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-heading-punctuation │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-hidden-table-cell │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-html │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-literal-urls │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-missing-blank-lines │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-multiple-toplevel-headings │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-paragraph-content-indent │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-reference-like-url │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-shell-dollars │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-shortcut-reference-image │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-shortcut-reference-link │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-table-indentation │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-tabs │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-undefined-references │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-unneeded-full-reference-image │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-unneeded-full-reference-link │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-no-unused-definitions │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-ordered-list-marker-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-ordered-list-marker-value │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-rule-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-strikethrough-marker │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-strong-marker │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-table-cell-padding │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-table-pipe-alignment │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-table-pipes │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint-unordered-list-marker-style │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-lint │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-preset-lint-consistent │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-preset-lint-markdown-style-guide │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── remark-preset-lint-recommended │ ├── .npmrc │ ├── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json └── unified-lint-rule │ ├── .npmrc │ ├── index.js │ ├── lib │ └── index.js │ ├── package.json │ ├── readme.md │ └── tsconfig.json ├── readme.md ├── screenshot.png ├── script ├── build-github-code-flag.js ├── build-packages.js ├── info.js ├── pipeline-package.js └── plugin │ ├── list-of-plugins.js │ └── list-of-presets.js ├── test.js └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 2 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.github/workflows/bb.yml: -------------------------------------------------------------------------------- 1 | jobs: 2 | main: 3 | runs-on: ubuntu-latest 4 | steps: 5 | - uses: unifiedjs/beep-boop-beta@main 6 | with: 7 | repo-token: ${{secrets.GITHUB_TOKEN}} 8 | name: bb 9 | on: 10 | issues: 11 | types: [closed, edited, labeled, opened, reopened, unlabeled] 12 | pull_request_target: 13 | types: [closed, edited, labeled, opened, reopened, unlabeled] 14 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | jobs: 2 | main: 3 | name: '${{matrix.node}} on ${{matrix.os}}' 4 | runs-on: ${{matrix.os}} 5 | steps: 6 | - uses: actions/checkout@v4 7 | - uses: actions/setup-node@v4 8 | with: 9 | node-version: ${{matrix.node}} 10 | - run: npm install 11 | - run: npm test 12 | - uses: codecov/codecov-action@v5 13 | strategy: 14 | matrix: 15 | node: 16 | - lts/hydrogen 17 | - node 18 | os: 19 | - ubuntu-latest 20 | - windows-latest 21 | name: main 22 | on: 23 | - pull_request 24 | - push 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.d.ts 2 | *.log 3 | *.map 4 | *.tsbuildinfo 5 | .DS_Store 6 | coverage/ 7 | node_modules/ 8 | package-lock.json 9 | yarn.lock 10 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | *.md 3 | -------------------------------------------------------------------------------- /.remarkrc.js: -------------------------------------------------------------------------------- 1 | import remarkCommentConfig from 'remark-comment-config' 2 | import remarkGfm from 'remark-gfm' 3 | import remarkGithub from 'remark-github' 4 | import remarkPresetLintConsistent from 'remark-preset-lint-consistent' 5 | import remarkPresetLintRecommended from 'remark-preset-lint-recommended' 6 | import remarkToc from 'remark-toc' 7 | import remarkValidateLinks from 'remark-validate-links' 8 | import remarkLintCorrectMediaSyntax from 'remark-lint-correct-media-syntax' 9 | import remarkLintDefinitionSort from 'remark-lint-definition-sort' 10 | import remarkLintFencedCodeFlag, { 11 | checkGithubLinguistFlag 12 | } from 'remark-lint-fenced-code-flag' 13 | import remarkLintHardBreakSpaces from 'remark-lint-hard-break-spaces' 14 | import remarkLintListItemIndent from 'remark-lint-list-item-indent' 15 | import remarkLintMediaStyle from 'remark-lint-media-style' 16 | import remarkLintNoHiddenTableCell from 'remark-lint-no-hidden-table-cell' 17 | import listOfPlugins from './script/plugin/list-of-plugins.js' 18 | import listOfPresets from './script/plugin/list-of-presets.js' 19 | 20 | export default { 21 | plugins: [ 22 | remarkCommentConfig, 23 | [remarkGfm, {tablePipeAlign: false}], 24 | remarkGithub, 25 | remarkPresetLintConsistent, 26 | remarkPresetLintRecommended, 27 | remarkLintCorrectMediaSyntax, 28 | remarkLintDefinitionSort, 29 | [remarkLintFencedCodeFlag, checkGithubLinguistFlag], 30 | [remarkLintHardBreakSpaces, {allowSpaces: false}], 31 | [remarkLintListItemIndent, 'one'], 32 | [remarkLintMediaStyle, 'reference-reuse'], 33 | remarkLintNoHiddenTableCell, 34 | [remarkToc, {maxDepth: 3}], 35 | remarkValidateLinks, 36 | listOfPlugins, 37 | listOfPresets 38 | ] 39 | } 40 | -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | See [GitHub Releases][releases] for the changelog. 4 | 5 | [releases]: https://github.com/remarkjs/remark-lint/releases 6 | -------------------------------------------------------------------------------- /doc/comparison-to-markdownlint.md: -------------------------------------------------------------------------------- 1 | # [markdownlint](https://github.com/markdownlint/markdownlint) 2 | 3 | > ⚠️ **Important**: this comparison hasn’t been updated in years. 4 | 5 | This table documents the similarity and difference between 6 | [**markdownlint**](https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md) 7 | rules and **remark-lint**’s rules. 8 | 9 | | markdownlint | remark | note | 10 | | - | - | - | 11 | | MD001 | heading-increment | - | 12 | | MD002 | first-heading-level | - | 13 | | MD003 | heading-style | - | 14 | | MD004 | unordered-list-marker-style | - | 15 | | MD005 | - | mixture of `list-item-indent`, `list-item-bullet-indent`, and `list-item-content-indent` | 16 | | MD006 | list-item-bullet-indent | - | 17 | | MD007 | list-item-bullet-indent | - | 18 | | MD009 | - | Partially by hard-break-spaces | 19 | | MD010 | no-tabs | - | 20 | | MD011 | no-shortcut-reference-link | Although a different message, this will lead you in the right direction | 21 | | MD012 | no-consecutive-blank-lines | - | 22 | | MD013 | maximum-line-length | - | 23 | | MD014 | no-shell-dollars | - | 24 | | MD018 | no-heading-content-indent | Only works in pedantic mode | 25 | | MD019 | no-heading-content-indent | - | 26 | | MD020 | no-heading-content-indent | Only works in pedantic mode | 27 | | MD021 | no-heading-content-indent | - | 28 | | MD022 | no-missing-blank-lines | - | 29 | | MD023 | no-heading-indent | - | 30 | | MD024 | no-duplicate-headings | - | 31 | | MD025 | no-multiple-toplevel-headings | - | 32 | | MD026 | no-heading-punctuation | - | 33 | | MD027 | blockquote-indentation | Won’t warn when that’s your preferred, consistent style | 34 | | MD028 | no-blockquote-without-marker | - | 35 | | MD029 | ordered-list-marker-value | markdownlint defaults to `one`, whereas remark-lint defaults to `ordered` | 36 | | MD030 | list-item-indent | - | 37 | | MD031 | no-missing-blank-lines | - | 38 | | MD032 | no-missing-blank-lines | - | 39 | | MD033 | no-html | - | 40 | | MD034 | no-literal-urls | - | 41 | | MD035 | rule-style | - | 42 | | MD036 | no-emphasis-as-heading | remark-lint only warns when the emphasis is followed by a colon, but that might change. | 43 | | MD040 | fenced-code-flag | - | 44 | -------------------------------------------------------------------------------- /doc/rules.md: -------------------------------------------------------------------------------- 1 | # Rules 2 | 3 | ## Configuration 4 | 5 | See the monorepo readme for [configuring rules][config]. 6 | 7 | ## List of rules 8 | 9 | See the monorepo readme for the [rules][]. 10 | 11 | [config]: https://github.com/remarkjs/remark-lint#configure 12 | 13 | [rules]: https://github.com/remarkjs/remark-lint#rules 14 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) Titus Wormer 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/remark-lint-blockquote-indentation/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-blockquote-indentation/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "pluralize": "^8.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to check whitespace after block quote markers", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "blockquote", 28 | "indent", 29 | "indentation", 30 | "lint", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-blockquote-indentation", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-blockquote-indentation", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off", 51 | "unicorn/prefer-default-parameters": "off" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/remark-lint-blockquote-indentation/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-checkbox-character-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-checkbox-character-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to check list item checkbox characters", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "checkbox", 28 | "lint", 29 | "list", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule", 34 | "style", 35 | "task" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-checkbox-character-style", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-checkbox-character-style", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "5.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/remark-lint-checkbox-character-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-checkbox-content-indent/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-checkbox-content-indent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "pluralize": "^8.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when too much whitespace follows list item checkboxes", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "checkbox", 28 | "content", 29 | "lint", 30 | "list", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule", 35 | "task" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-checkbox-content-indent", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-checkbox-content-indent", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "5.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off", 52 | "unicorn/prefer-code-point": "off" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /packages/remark-lint-checkbox-content-indent/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-code-block-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-code-block-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when code blocks do not adhere to a given style", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "block", 28 | "code", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-code-block-style", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-code-block-style", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-default-parameters": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-code-block-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-correct-media-syntax/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-correct-media-syntax/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-position": "^5.0.0", 11 | "unist-util-visit-parents": "^6.0.0", 12 | "vfile-location": "^5.0.0" 13 | }, 14 | "description": "remark-lint rule to check for accidental bracket and paren mixup for images and links", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "bracket", 27 | "image", 28 | "link", 29 | "lint", 30 | "media", 31 | "parenthesis", 32 | "reference", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "resource", 37 | "rule", 38 | "syntax" 39 | ], 40 | "license": "MIT", 41 | "name": "remark-lint-correct-media-syntax", 42 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-correct-media-syntax", 43 | "scripts": {}, 44 | "sideEffects": false, 45 | "typeCoverage": { 46 | "atLeast": 100, 47 | "strict": true 48 | }, 49 | "type": "module", 50 | "version": "1.0.1", 51 | "xo": { 52 | "prettier": true, 53 | "rules": { 54 | "capitalized-comments": "off", 55 | "unicorn/prefer-code-point": "off" 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /packages/remark-lint-correct-media-syntax/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-case/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-case/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-visit-parents": "^6.0.0" 12 | }, 13 | "description": "remark-lint rule to warn when definition labels are not lowercase", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js" 19 | ], 20 | "funding": { 21 | "type": "opencollective", 22 | "url": "https://opencollective.com/unified" 23 | }, 24 | "keywords": [ 25 | "case", 26 | "definition", 27 | "lint", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule" 32 | ], 33 | "license": "MIT", 34 | "name": "remark-lint-definition-case", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-definition-case", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "4.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-case/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-sort/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-sort/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-phrasing": "^4.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0" 13 | }, 14 | "description": "remark-lint rule to check definition order", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "compare", 27 | "definition", 28 | "footnote", 29 | "lint", 30 | "order", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule", 35 | "sort" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-definition-sort", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-definition-sort", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "1.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-sort/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-spacing/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-spacing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "longest-streak": "^3.0.0", 10 | "mdast-util-phrasing": "^4.0.0", 11 | "pluralize": "^8.0.0", 12 | "unified-lint-rule": "^3.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when consecutive whitespace is used in a definition", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "definition", 28 | "lint", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule", 33 | "spacing" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-definition-spacing", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-definition-spacing", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /packages/remark-lint-definition-spacing/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-attribute-sort/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-attribute-sort/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "@types/unist": "^3.0.0", 10 | "devlop": "^1.0.0", 11 | "mdast-util-directive": "^3.0.0", 12 | "remark-lint-directive-quote-style": "^1.0.0", 13 | "unified-lint-rule": "^3.0.0", 14 | "unist-util-visit-parents": "^6.0.0", 15 | "vfile-location": "^5.0.0" 16 | }, 17 | "description": "remark-lint rule to check directive attribute order", 18 | "exports": "./index.js", 19 | "files": [ 20 | "index.d.ts", 21 | "index.d.ts.map", 22 | "index.js" 23 | ], 24 | "funding": { 25 | "type": "opencollective", 26 | "url": "https://opencollective.com/unified" 27 | }, 28 | "keywords": [ 29 | "attribute", 30 | "compare", 31 | "directive", 32 | "lint", 33 | "order", 34 | "remark", 35 | "remark-lint", 36 | "remark-lint-rule", 37 | "rule", 38 | "sort" 39 | ], 40 | "license": "MIT", 41 | "name": "remark-lint-directive-attribute-sort", 42 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-directive-attribute-sort", 43 | "scripts": {}, 44 | "sideEffects": false, 45 | "typeCoverage": { 46 | "atLeast": 100, 47 | "strict": true 48 | }, 49 | "type": "module", 50 | "version": "1.0.1", 51 | "xo": { 52 | "prettier": true, 53 | "rules": { 54 | "capitalized-comments": "off" 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-attribute-sort/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-collapsed-attribute/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-collapsed-attribute/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-directive": "^3.0.0", 10 | "remark-lint-directive-quote-style": "^1.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0" 13 | }, 14 | "description": "remark-lint rule to check that collapsed attributes are used in directives", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "attribute", 27 | "collapsed", 28 | "directive", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-directive-collapsed-attribute", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-directive-collapsed-attribute", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "1.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-code-point": "off", 51 | "unicorn/prefer-switch": "off" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-collapsed-attribute/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-quote-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-quote-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "@types/unist": "^3.0.0", 10 | "mdast-util-directive": "^3.0.0", 11 | "micromark-util-character": "^2.0.0", 12 | "micromark-util-symbol": "^2.0.0", 13 | "unified-lint-rule": "^3.0.0", 14 | "unist-util-position": "^5.0.0", 15 | "unist-util-visit-parents": "^6.0.0", 16 | "vfile-location": "^5.0.0", 17 | "vfile-message": "^4.0.0" 18 | }, 19 | "description": "remark-lint rule to check quotes of directive attributes", 20 | "exports": "./index.js", 21 | "files": [ 22 | "index.d.ts", 23 | "index.d.ts.map", 24 | "index.js" 25 | ], 26 | "funding": { 27 | "type": "opencollective", 28 | "url": "https://opencollective.com/unified" 29 | }, 30 | "keywords": [ 31 | "attribute", 32 | "directive", 33 | "lint", 34 | "quote", 35 | "remark", 36 | "remark-lint", 37 | "remark-lint-rule", 38 | "rule" 39 | ], 40 | "license": "MIT", 41 | "name": "remark-lint-directive-quote-style", 42 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-directive-quote-style", 43 | "scripts": {}, 44 | "sideEffects": false, 45 | "typeCoverage": { 46 | "atLeast": 100, 47 | "strict": true 48 | }, 49 | "type": "module", 50 | "version": "1.0.1", 51 | "xo": { 52 | "prettier": true, 53 | "rules": { 54 | "capitalized-comments": "off", 55 | "complexity": "off", 56 | "logical-assignment-operators": "off", 57 | "max-depth": "off", 58 | "unicorn/prefer-code-point": "off" 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-quote-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-shortcut-attribute/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-shortcut-attribute/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-directive": "^3.0.0", 10 | "remark-lint-directive-quote-style": "^1.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0" 13 | }, 14 | "description": "remark-lint rule to check that shortcut attributes are used in directives", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "attribute", 27 | "directive", 28 | "lint", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule", 33 | "shortcut" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-directive-shortcut-attribute", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-directive-shortcut-attribute", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "1.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-code-point": "off", 51 | "unicorn/prefer-switch": "off" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-shortcut-attribute/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-unique-attribute-name/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-unique-attribute-name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-directive": "^3.0.0", 10 | "remark-lint-directive-quote-style": "^1.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-location": "^5.0.0", 14 | "vfile-message": "^4.0.0" 15 | }, 16 | "description": "remark-lint rule to check that attribute names are unique", 17 | "exports": "./index.js", 18 | "files": [ 19 | "index.d.ts", 20 | "index.d.ts.map", 21 | "index.js" 22 | ], 23 | "funding": { 24 | "type": "opencollective", 25 | "url": "https://opencollective.com/unified" 26 | }, 27 | "keywords": [ 28 | "attribute", 29 | "directive", 30 | "lint", 31 | "name", 32 | "remark", 33 | "remark-lint", 34 | "remark-lint-rule", 35 | "rule", 36 | "unique" 37 | ], 38 | "license": "MIT", 39 | "name": "remark-lint-directive-unique-attribute-name", 40 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-directive-unique-attribute-name", 41 | "scripts": {}, 42 | "sideEffects": false, 43 | "typeCoverage": { 44 | "atLeast": 100, 45 | "strict": true 46 | }, 47 | "type": "module", 48 | "version": "1.0.1", 49 | "xo": { 50 | "prettier": true, 51 | "rules": { 52 | "capitalized-comments": "off" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /packages/remark-lint-directive-unique-attribute-name/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-emphasis-marker/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-emphasis-marker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-position": "^5.0.0", 11 | "unist-util-visit-parents": "^6.0.0", 12 | "vfile-message": "^4.0.0" 13 | }, 14 | "description": "remark-lint rule to warn when emphasis markers violate the given style", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "emphasis", 27 | "lint", 28 | "marker", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint-emphasis-marker", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-emphasis-marker", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "4.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off", 49 | "unicorn/prefer-default-parameters": "off" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /packages/remark-lint-emphasis-marker/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-fenced-code-flag/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-fenced-code-flag/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "quotation": "^2.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when fenced code blocks occur without language flag", 16 | "exports": "./index.js", 17 | "files": [ 18 | "github-linguist-info.d.ts", 19 | "github-linguist-info.d.ts.map", 20 | "github-linguist-info.js", 21 | "index.d.ts", 22 | "index.d.ts.map", 23 | "index.js" 24 | ], 25 | "funding": { 26 | "type": "opencollective", 27 | "url": "https://opencollective.com/unified" 28 | }, 29 | "keywords": [ 30 | "code", 31 | "fenced", 32 | "flag", 33 | "infostring", 34 | "lint", 35 | "remark", 36 | "remark-lint", 37 | "remark-lint-rule", 38 | "rule" 39 | ], 40 | "license": "MIT", 41 | "name": "remark-lint-fenced-code-flag", 42 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-fenced-code-flag", 43 | "scripts": {}, 44 | "sideEffects": false, 45 | "typeCoverage": { 46 | "atLeast": 100, 47 | "strict": true 48 | }, 49 | "type": "module", 50 | "version": "4.2.0", 51 | "xo": { 52 | "prettier": true, 53 | "rules": { 54 | "capitalized-comments": "off" 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /packages/remark-lint-fenced-code-flag/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-fenced-code-marker/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-fenced-code-marker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when fenced code markers violate the given style", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "code", 28 | "fenced", 29 | "lint", 30 | "marker", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-fenced-code-marker", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-fenced-code-marker", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off", 51 | "unicorn/prefer-default-parameters": "off" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/remark-lint-fenced-code-marker/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-file-extension/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-file-extension/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "quotation": "^2.0.0", 10 | "unified-lint-rule": "^3.0.0" 11 | }, 12 | "description": "remark-lint rule to warn when the file’s extension violates the given style", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "extension", 25 | "extname", 26 | "file", 27 | "lint", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule" 32 | ], 33 | "license": "MIT", 34 | "name": "remark-lint-file-extension", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-file-extension", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "3.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off", 48 | "unicorn/prefer-default-parameters": "off" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /packages/remark-lint-file-extension/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-final-definition/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-final-definition/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "mdast-util-phrasing": "^4.0.0", 12 | "unified-lint-rule": "^3.0.0", 13 | "unist-util-position": "^5.0.0", 14 | "unist-util-visit-parents": "^6.0.0", 15 | "vfile-message": "^4.0.0" 16 | }, 17 | "description": "remark-lint rule to warn when definitions are not placed at the end of the file", 18 | "exports": "./index.js", 19 | "files": [ 20 | "index.d.ts", 21 | "index.d.ts.map", 22 | "index.js" 23 | ], 24 | "funding": { 25 | "type": "opencollective", 26 | "url": "https://opencollective.com/unified" 27 | }, 28 | "keywords": [ 29 | "definition", 30 | "final", 31 | "lint", 32 | "position", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "rule" 37 | ], 38 | "license": "MIT", 39 | "name": "remark-lint-final-definition", 40 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-final-definition", 41 | "scripts": {}, 42 | "sideEffects": false, 43 | "typeCoverage": { 44 | "atLeast": 100, 45 | "strict": true 46 | }, 47 | "type": "module", 48 | "version": "4.0.2", 49 | "xo": { 50 | "prettier": true, 51 | "rules": { 52 | "capitalized-comments": "off" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /packages/remark-lint-final-definition/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-final-newline/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-final-newline/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark-lint rule to warn when a final line ending is missing. 3 | * 4 | * ## What is this? 5 | * 6 | * This package checks the final line ending. 7 | * 8 | * ## When should I use this? 9 | * 10 | * You can use this package to check final line endings. 11 | * 12 | * ## API 13 | * 14 | * ### `unified().use(remarkLintFinalNewline)` 15 | * 16 | * Warn when a final line ending is missing. 17 | * 18 | * ###### Parameters 19 | * 20 | * There are no options. 21 | * 22 | * ###### Returns 23 | * 24 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 25 | * 26 | * ## Recommendation 27 | * 28 | * Turn this rule on. 29 | * See [StackExchange][] for more info. 30 | * 31 | * ## Fix 32 | * 33 | * [`remark-stringify`](https://github.com/remarkjs/remark/tree/main/packages/remark-stringify) 34 | * always adds final line endings. 35 | * 36 | * [api-remark-lint-final-newline]: #unifieduseremarklintfinalnewline 37 | * [github-remark-stringify]: https://github.com/remarkjs/remark/tree/main/packages/remark-stringify 38 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 39 | * [stackexchange]: https://unix.stackexchange.com/questions/18743 40 | * 41 | * ## Examples 42 | * 43 | * ##### `ok.md` 44 | * 45 | * ###### In 46 | * 47 | * ```markdown 48 | * Mercury␊ 49 | * ``` 50 | * 51 | * ###### Out 52 | * 53 | * No messages. 54 | * 55 | * ##### `not-ok.md` 56 | * 57 | * ###### In 58 | * 59 | * ```markdown 60 | * Mercury␀ 61 | * ``` 62 | * 63 | * ###### Out 64 | * 65 | * ```text 66 | * 1:8: Unexpected missing final newline character, expected line feed (`\n`) at end of file 67 | * ``` 68 | * 69 | * @module final-newline 70 | * @author Titus Wormer 71 | * @copyright Titus Wormer 72 | * @license MIT 73 | */ 74 | 75 | /** 76 | * @import {Root} from 'mdast' 77 | */ 78 | 79 | import {ok as assert} from 'devlop' 80 | import {lintRule} from 'unified-lint-rule' 81 | import {location} from 'vfile-location' 82 | 83 | const remarkLintFinalNewline = lintRule( 84 | { 85 | origin: 'remark-lint:final-newline', 86 | url: 'https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-final-newline#readme' 87 | }, 88 | /** 89 | * @param {Root} _ 90 | * Tree. 91 | * @returns {undefined} 92 | * Nothing. 93 | */ 94 | function (_, file) { 95 | const value = String(file) 96 | const end = location(file).toPoint(value.length) 97 | const last = value.length - 1 98 | 99 | assert(end) // Always defined. 100 | 101 | if ( 102 | // Empty is fine. 103 | last !== -1 && 104 | value.charAt(last) !== '\n' 105 | ) { 106 | file.message( 107 | 'Unexpected missing final newline character, expected line feed (`\\n`) at end of file', 108 | end 109 | ) 110 | } 111 | } 112 | ) 113 | 114 | export default remarkLintFinalNewline 115 | -------------------------------------------------------------------------------- /packages/remark-lint-final-newline/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "vfile-location": "^5.0.0" 12 | }, 13 | "description": "remark-lint rule to warn when a newline at the end of a file is missing", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js" 19 | ], 20 | "funding": { 21 | "type": "opencollective", 22 | "url": "https://opencollective.com/unified" 23 | }, 24 | "keywords": [ 25 | "final", 26 | "lint", 27 | "newline", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule", 32 | "unix" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint-final-newline", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-final-newline", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "3.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /packages/remark-lint-final-newline/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-first-heading-level/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-first-heading-level/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-mdx": "^3.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-visit-parents": "^6.0.0" 12 | }, 13 | "description": "remark-lint rule to warn when the first heading has a level other than a specified value", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js" 19 | ], 20 | "funding": { 21 | "type": "opencollective", 22 | "url": "https://opencollective.com/unified" 23 | }, 24 | "keywords": [ 25 | "depth", 26 | "first", 27 | "heading", 28 | "level", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-first-heading-level", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-first-heading-level", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-default-parameters": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-first-heading-level/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-hard-break-spaces/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-hard-break-spaces/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-position": "^5.0.0", 11 | "unist-util-visit": "^5.0.0" 12 | }, 13 | "description": "remark-lint rule to warn when too many spaces are used to create a hard break", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js" 19 | ], 20 | "funding": { 21 | "type": "opencollective", 22 | "url": "https://opencollective.com/unified" 23 | }, 24 | "keywords": [ 25 | "break", 26 | "hard", 27 | "lint", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule", 32 | "size", 33 | "spaces" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-hard-break-spaces", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-hard-break-spaces", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.1.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-code-point": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-hard-break-spaces/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-heading-increment/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-heading-increment/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when headings increment with more than 1 level at a time", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "heading", 28 | "increase", 29 | "increment", 30 | "lint", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-heading-increment", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-heading-increment", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-heading-increment/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-heading-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-heading-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-heading-style": "^3.0.0", 10 | "mdast-util-phrasing": "^4.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0", 14 | "vfile-message": "^4.0.0" 15 | }, 16 | "description": "remark-lint rule to warn when heading style violates the given style", 17 | "exports": "./index.js", 18 | "files": [ 19 | "index.d.ts", 20 | "index.d.ts.map", 21 | "index.js" 22 | ], 23 | "funding": { 24 | "type": "opencollective", 25 | "url": "https://opencollective.com/unified" 26 | }, 27 | "keywords": [ 28 | "atx", 29 | "heading", 30 | "lint", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule", 35 | "setext", 36 | "style" 37 | ], 38 | "license": "MIT", 39 | "name": "remark-lint-heading-style", 40 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-heading-style", 41 | "scripts": {}, 42 | "sideEffects": false, 43 | "typeCoverage": { 44 | "atLeast": 100, 45 | "strict": true 46 | }, 47 | "type": "module", 48 | "version": "4.0.1", 49 | "xo": { 50 | "prettier": true, 51 | "rules": { 52 | "capitalized-comments": "off", 53 | "unicorn/prefer-default-parameters": "off" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /packages/remark-lint-heading-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-linebreak-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-linebreak-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus ", 6 | "Titus Wormer " 7 | ], 8 | "dependencies": { 9 | "@types/mdast": "^4.0.0", 10 | "devlop": "^1.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "vfile-location": "^5.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when linebreaks violate a given or detected style", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "break", 28 | "crlf", 29 | "lf", 30 | "line", 31 | "linebreak", 32 | "lint", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "rule", 37 | "unix", 38 | "windows" 39 | ], 40 | "license": "MIT", 41 | "name": "remark-lint-linebreak-style", 42 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-linebreak-style", 43 | "scripts": {}, 44 | "sideEffects": false, 45 | "typeCoverage": { 46 | "atLeast": 100, 47 | "strict": true 48 | }, 49 | "type": "module", 50 | "version": "4.0.1", 51 | "xo": { 52 | "prettier": true, 53 | "rules": { 54 | "capitalized-comments": "off", 55 | "unicorn/prefer-default-parameters": "off" 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /packages/remark-lint-linebreak-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-link-title-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-link-title-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-position": "^5.0.0", 11 | "unist-util-visit-parents": "^6.0.0", 12 | "vfile-message": "^4.0.0" 13 | }, 14 | "description": "remark-lint rule to warn when link and definition titles occur with incorrect quotes", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "definition", 27 | "image", 28 | "link", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule", 34 | "style" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-link-title-style", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-link-title-style", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off", 51 | "unicorn/prefer-at": "off", 52 | "unicorn/prefer-code-point": "off", 53 | "unicorn/prefer-switch": "off" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /packages/remark-lint-link-title-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-bullet-indent/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-bullet-indent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "pluralize": "^8.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0" 12 | }, 13 | "description": "remark-lint rule to warn when list item bullets are indented", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js" 19 | ], 20 | "funding": { 21 | "type": "opencollective", 22 | "url": "https://opencollective.com/unified" 23 | }, 24 | "keywords": [ 25 | "indent", 26 | "item", 27 | "lint", 28 | "list", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint-list-item-bullet-indent", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-bullet-indent", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "5.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-bullet-indent/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-content-indent/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-content-indent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "pluralize": "^8.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0", 14 | "vfile-message": "^4.0.0" 15 | }, 16 | "description": "remark-lint rule to warn when the content of a list item has mixed indentation", 17 | "exports": "./index.js", 18 | "files": [ 19 | "index.d.ts", 20 | "index.d.ts.map", 21 | "index.js" 22 | ], 23 | "funding": { 24 | "type": "opencollective", 25 | "url": "https://opencollective.com/unified" 26 | }, 27 | "keywords": [ 28 | "content", 29 | "indent", 30 | "item", 31 | "lint", 32 | "list", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "rule" 37 | ], 38 | "license": "MIT", 39 | "name": "remark-lint-list-item-content-indent", 40 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-content-indent", 41 | "scripts": {}, 42 | "sideEffects": false, 43 | "typeCoverage": { 44 | "atLeast": 100, 45 | "strict": true 46 | }, 47 | "type": "module", 48 | "version": "4.0.1", 49 | "xo": { 50 | "prettier": true, 51 | "rules": { 52 | "capitalized-comments": "off", 53 | "unicorn/prefer-code-point": "off" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-content-indent/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-indent/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-indent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "pluralize": "^8.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to check the spacing between list item bullets and content", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "indent", 28 | "item", 29 | "lint", 30 | "list", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-list-item-indent", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-indent", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off", 51 | "complexity": "off", 52 | "unicorn/prefer-code-point": "off", 53 | "unicorn/prefer-switch": "off" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-indent/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-spacing/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-spacing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "pluralize": "^8.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0", 14 | "vfile-message": "^4.0.0" 15 | }, 16 | "description": "remark-lint rule to warn when list looseness is incorrect", 17 | "exports": "./index.js", 18 | "files": [ 19 | "index.d.ts", 20 | "index.d.ts.map", 21 | "index.js" 22 | ], 23 | "funding": { 24 | "type": "opencollective", 25 | "url": "https://opencollective.com/unified" 26 | }, 27 | "keywords": [ 28 | "item", 29 | "lint", 30 | "list", 31 | "loose", 32 | "remark", 33 | "remark-lint", 34 | "remark-lint-rule", 35 | "rule", 36 | "tight" 37 | ], 38 | "license": "MIT", 39 | "name": "remark-lint-list-item-spacing", 40 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-spacing", 41 | "scripts": {}, 42 | "sideEffects": false, 43 | "typeCoverage": { 44 | "atLeast": 100, 45 | "strict": true 46 | }, 47 | "type": "module", 48 | "version": "5.0.1", 49 | "xo": { 50 | "prettier": true, 51 | "rules": { 52 | "capitalized-comments": "off", 53 | "unicorn/prefer-at": "off" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /packages/remark-lint-list-item-spacing/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-maximum-heading-length/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-maximum-heading-length/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-mdx": "^3.0.0", 10 | "mdast-util-to-string": "^4.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when headings are too long", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "heading", 28 | "length", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-maximum-heading-length", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-maximum-heading-length", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.1.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-default-parameters": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-maximum-heading-length/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-maximum-line-length/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-maximum-line-length/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "pluralize": "^8.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit": "^5.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when lines are too long", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "length", 28 | "line", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-maximum-line-length", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-maximum-line-length", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.1.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /packages/remark-lint-maximum-line-length/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-attribute-sort/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-attribute-sort/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to check mdx jsx attribute order", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "attribute", 28 | "compare", 29 | "jsx", 30 | "lint", 31 | "mdx", 32 | "order", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "rule", 37 | "sort" 38 | ], 39 | "license": "MIT", 40 | "name": "remark-lint-mdx-jsx-attribute-sort", 41 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-mdx-jsx-attribute-sort", 42 | "scripts": {}, 43 | "sideEffects": false, 44 | "typeCoverage": { 45 | "atLeast": 100, 46 | "strict": true 47 | }, 48 | "type": "module", 49 | "version": "1.0.1", 50 | "xo": { 51 | "prettier": true, 52 | "rules": { 53 | "capitalized-comments": "off", 54 | "max-depth": "off", 55 | "unicorn/prefer-code-point": "off", 56 | "unicorn/prefer-switch": "off" 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-attribute-sort/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-no-void-children/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-no-void-children/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "html-void-elements": "^3.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0" 13 | }, 14 | "description": "remark-lint rule to check mdx jsx quotes", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "children", 27 | "closing", 28 | "empty", 29 | "jsx", 30 | "lint", 31 | "mdx", 32 | "remark", 33 | "remark-lint", 34 | "remark-lint-rule", 35 | "rule", 36 | "self", 37 | "void" 38 | ], 39 | "license": "MIT", 40 | "name": "remark-lint-mdx-jsx-no-void-children", 41 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-mdx-jsx-no-void-children", 42 | "scripts": {}, 43 | "sideEffects": false, 44 | "typeCoverage": { 45 | "atLeast": 100, 46 | "strict": true 47 | }, 48 | "type": "module", 49 | "version": "1.0.1", 50 | "xo": { 51 | "prettier": true, 52 | "rules": { 53 | "capitalized-comments": "off", 54 | "unicorn/prefer-code-point": "off", 55 | "unicorn/prefer-switch": "off" 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-no-void-children/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-quote-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-quote-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-mdx": "^3.0.0", 10 | "micromark-util-character": "^2.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0", 14 | "vfile-message": "^4.0.0" 15 | }, 16 | "description": "remark-lint rule to check mdx jsx quotes", 17 | "exports": "./index.js", 18 | "files": [ 19 | "index.d.ts", 20 | "index.d.ts.map", 21 | "index.js" 22 | ], 23 | "funding": { 24 | "type": "opencollective", 25 | "url": "https://opencollective.com/unified" 26 | }, 27 | "keywords": [ 28 | "attribute", 29 | "jsx", 30 | "lint", 31 | "mdx", 32 | "quote", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "rule" 37 | ], 38 | "license": "MIT", 39 | "name": "remark-lint-mdx-jsx-quote-style", 40 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-mdx-jsx-quote-style", 41 | "scripts": {}, 42 | "sideEffects": false, 43 | "typeCoverage": { 44 | "atLeast": 100, 45 | "strict": true 46 | }, 47 | "type": "module", 48 | "version": "1.0.1", 49 | "xo": { 50 | "prettier": true, 51 | "rules": { 52 | "capitalized-comments": "off", 53 | "unicorn/prefer-code-point": "off", 54 | "unicorn/prefer-switch": "off" 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-quote-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-self-close/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-self-close/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-mdx": "^3.0.0", 10 | "micromark-util-character": "^2.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to check that self-closing tags are used when possible", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "close", 28 | "jsx", 29 | "lint", 30 | "mdx", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule", 35 | "self", 36 | "void" 37 | ], 38 | "license": "MIT", 39 | "name": "remark-lint-mdx-jsx-self-close", 40 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-mdx-jsx-self-close", 41 | "scripts": {}, 42 | "sideEffects": false, 43 | "typeCoverage": { 44 | "atLeast": 100, 45 | "strict": true 46 | }, 47 | "type": "module", 48 | "version": "1.0.1", 49 | "xo": { 50 | "prettier": true, 51 | "rules": { 52 | "capitalized-comments": "off", 53 | "unicorn/prefer-code-point": "off", 54 | "unicorn/prefer-switch": "off" 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-self-close/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-shorthand-attribute/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-shorthand-attribute/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-mdx": "^3.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-visit-parents": "^6.0.0" 12 | }, 13 | "description": "remark-lint rule to check that shorthand attributes are used in MDX JSX", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js" 19 | ], 20 | "funding": { 21 | "type": "opencollective", 22 | "url": "https://opencollective.com/unified" 23 | }, 24 | "keywords": [ 25 | "attribute", 26 | "jsx", 27 | "lint", 28 | "mdx", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule", 33 | "shorthand" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-mdx-jsx-shorthand-attribute", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-mdx-jsx-shorthand-attribute", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "1.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-code-point": "off", 51 | "unicorn/prefer-switch": "off" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-shorthand-attribute/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-unique-attribute-name/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-unique-attribute-name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-mdx": "^3.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-visit-parents": "^6.0.0", 12 | "vfile-message": "^4.0.0" 13 | }, 14 | "description": "remark-lint rule to check that mdx jsx attributes are unique", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "attribute", 27 | "jsx", 28 | "lint", 29 | "mdx", 30 | "name", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule", 35 | "unique" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-mdx-jsx-unique-attribute-name", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-mdx-jsx-unique-attribute-name", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "1.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off", 52 | "unicorn/prefer-code-point": "off", 53 | "unicorn/prefer-switch": "off" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /packages/remark-lint-mdx-jsx-unique-attribute-name/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-media-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-media-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-visit-parents": "^6.0.0" 11 | }, 12 | "description": "remark-lint rule to check whether references or resources are used", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "image", 25 | "link", 26 | "lint", 27 | "media", 28 | "reference", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "resource", 33 | "rule", 34 | "style" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-media-style", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-media-style", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "1.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off", 51 | "complexity": "off", 52 | "logical-assignment-operators": "off" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /packages/remark-lint-media-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-blockquote-without-marker/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-blockquote-without-marker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-directive": "^3.0.0", 11 | "mdast-util-phrasing": "^4.0.0", 12 | "pluralize": "^8.0.0", 13 | "unified-lint-rule": "^3.0.0", 14 | "unist-util-position": "^5.0.0", 15 | "unist-util-visit-parents": "^6.0.0", 16 | "vfile-location": "^5.0.0" 17 | }, 18 | "description": "remark-lint rule to warn when block quotes have blank lines without markers", 19 | "exports": "./index.js", 20 | "files": [ 21 | "index.d.ts", 22 | "index.d.ts.map", 23 | "index.js" 24 | ], 25 | "funding": { 26 | "type": "opencollective", 27 | "url": "https://opencollective.com/unified" 28 | }, 29 | "keywords": [ 30 | "blockquote", 31 | "caret", 32 | "lint", 33 | "marker", 34 | "remark", 35 | "remark-lint", 36 | "remark-lint-rule", 37 | "rule" 38 | ], 39 | "license": "MIT", 40 | "name": "remark-lint-no-blockquote-without-marker", 41 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-blockquote-without-marker", 42 | "scripts": {}, 43 | "sideEffects": false, 44 | "typeCoverage": { 45 | "atLeast": 100, 46 | "strict": true 47 | }, 48 | "type": "module", 49 | "version": "6.0.1", 50 | "xo": { 51 | "prettier": true, 52 | "rules": { 53 | "capitalized-comments": "off", 54 | "unicorn/prefer-code-point": "off" 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /packages/remark-lint-no-blockquote-without-marker/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-consecutive-blank-lines/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-consecutive-blank-lines/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-directive": "^3.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "mdast-util-phrasing": "^4.0.0", 12 | "pluralize": "^8.0.0", 13 | "unified-lint-rule": "^3.0.0", 14 | "unist-util-position": "^5.0.0", 15 | "unist-util-visit-parents": "^6.0.0" 16 | }, 17 | "description": "remark-lint rule to warn for too many consecutive blank lines", 18 | "exports": "./index.js", 19 | "files": [ 20 | "index.d.ts", 21 | "index.d.ts.map", 22 | "index.js" 23 | ], 24 | "funding": { 25 | "type": "opencollective", 26 | "url": "https://opencollective.com/unified" 27 | }, 28 | "keywords": [ 29 | "blank", 30 | "lines", 31 | "lint", 32 | "remark", 33 | "remark-lint", 34 | "remark-lint-rule", 35 | "rule" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-no-consecutive-blank-lines", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-consecutive-blank-lines", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "5.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off", 52 | "unicorn/prefer-at": "off", 53 | "unicorn/prefer-set-has": "off" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /packages/remark-lint-no-consecutive-blank-lines/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-defined-urls/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-defined-urls/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-phrasing": "^4.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn on definitions that define the same urls", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "definition", 28 | "duplicate", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule", 34 | "url" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-no-duplicate-defined-urls", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-duplicate-defined-urls", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "3.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-defined-urls/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-definitions/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-definitions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-phrasing": "^4.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn on duplicate definitions", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "definition", 28 | "duplicate", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-no-duplicate-definitions", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-duplicate-definitions", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-definitions/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-headings-in-section/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-headings-in-section/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "mdast-util-to-string": "^4.0.0", 12 | "unified-lint-rule": "^3.0.0", 13 | "unist-util-visit-parents": "^6.0.0", 14 | "vfile-message": "^4.0.0" 15 | }, 16 | "description": "remark-lint rule to warn on duplicate headings in a section", 17 | "exports": "./index.js", 18 | "files": [ 19 | "index.d.ts", 20 | "index.d.ts.map", 21 | "index.js" 22 | ], 23 | "funding": { 24 | "type": "opencollective", 25 | "url": "https://opencollective.com/unified" 26 | }, 27 | "keywords": [ 28 | "duplicate", 29 | "heading", 30 | "lint", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule", 35 | "section" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-no-duplicate-headings-in-section", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-duplicate-headings-in-section", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "4.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off", 52 | "logical-assignment-operators": "off" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-headings-in-section/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-headings/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-headings/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "mdast-util-to-string": "^4.0.0", 12 | "unified-lint-rule": "^3.0.0", 13 | "unist-util-visit-parents": "^6.0.0", 14 | "vfile-message": "^4.0.0" 15 | }, 16 | "description": "remark-lint rule to warn on duplicate headings", 17 | "exports": "./index.js", 18 | "files": [ 19 | "index.d.ts", 20 | "index.d.ts.map", 21 | "index.js" 22 | ], 23 | "funding": { 24 | "type": "opencollective", 25 | "url": "https://opencollective.com/unified" 26 | }, 27 | "keywords": [ 28 | "duplicate", 29 | "heading", 30 | "lint", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-no-duplicate-headings", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-duplicate-headings", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-duplicate-headings/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-emphasis-as-heading/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-emphasis-as-heading/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-visit-parents": "^6.0.0" 12 | }, 13 | "description": "remark-lint rule to warn when emphasis or importance is used instead of a heading", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js" 19 | ], 20 | "funding": { 21 | "type": "opencollective", 22 | "url": "https://opencollective.com/unified" 23 | }, 24 | "keywords": [ 25 | "emphasis", 26 | "heading", 27 | "lint", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule" 32 | ], 33 | "license": "MIT", 34 | "name": "remark-lint-no-emphasis-as-heading", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-emphasis-as-heading", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "4.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /packages/remark-lint-no-emphasis-as-heading/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-empty-url/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-empty-url/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-visit-parents": "^6.0.0" 11 | }, 12 | "description": "remark-lint rule to warn on empty URLs in links and images", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "empty", 25 | "image", 26 | "link", 27 | "lint", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule", 32 | "url" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint-no-empty-url", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-empty-url", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "4.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /packages/remark-lint-no-empty-url/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-articles/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-articles/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark-lint rule to warn when file names start with `a`, `the`, and such. 3 | * 4 | * ## What is this? 5 | * 6 | * This package checks file names. 7 | * 8 | * ## When should I use this? 9 | * 10 | * You can use this package to check that file names are consistent. 11 | * 12 | * ## API 13 | * 14 | * ### `unified().use(remarkLintNoFileNameArticles)` 15 | * 16 | * Warn when file names start with `a`, `the`, and such. 17 | * 18 | * ###### Parameters 19 | * 20 | * There are no options. 21 | * 22 | * ###### Returns 23 | * 24 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 25 | * 26 | * [api-remark-lint-no-file-name-articles]: #unifieduseremarklintnofilenamearticles 27 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 28 | * 29 | * @module no-file-name-articles 30 | * @author Titus Wormer 31 | * @copyright Titus Wormer 32 | * @license MIT 33 | * 34 | * @example 35 | * {"name": "title.md"} 36 | * 37 | * @example 38 | * {"label": "output", "name": "a-title.md", "positionless": true} 39 | * 40 | * 1:1: Unexpected file name starting with `a`, remove it 41 | * 42 | * @example 43 | * {"label": "output", "name": "the-title.md", "positionless": true} 44 | * 45 | * 1:1: Unexpected file name starting with `the`, remove it 46 | * 47 | * @example 48 | * {"label": "output", "name": "an-article.md", "positionless": true} 49 | * 50 | * 1:1: Unexpected file name starting with `an`, remove it 51 | */ 52 | 53 | /** 54 | * @import {Root} from 'mdast' 55 | */ 56 | 57 | import {lintRule} from 'unified-lint-rule' 58 | 59 | const remarkLintNoFileNameArticles = lintRule( 60 | { 61 | origin: 'remark-lint:no-file-name-articles', 62 | url: 'https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-articles#readme' 63 | }, 64 | /** 65 | * @param {Root} _ 66 | * Tree. 67 | * @returns {undefined} 68 | * Nothing. 69 | */ 70 | function (_, file) { 71 | const match = file.stem && file.stem.match(/^(?:the|teh|an?)\b/i) 72 | 73 | if (match) { 74 | file.message( 75 | 'Unexpected file name starting with `' + match[0] + '`, remove it' 76 | ) 77 | } 78 | } 79 | ) 80 | 81 | export default remarkLintNoFileNameArticles 82 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-articles/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0" 10 | }, 11 | "description": "remark-lint rule to warn when file name start with an article", 12 | "exports": "./index.js", 13 | "files": [ 14 | "index.d.ts", 15 | "index.d.ts.map", 16 | "index.js" 17 | ], 18 | "funding": { 19 | "type": "opencollective", 20 | "url": "https://opencollective.com/unified" 21 | }, 22 | "keywords": [ 23 | "article", 24 | "basename", 25 | "file", 26 | "lint", 27 | "name", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule" 32 | ], 33 | "license": "MIT", 34 | "name": "remark-lint-no-file-name-articles", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-articles", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "3.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-articles/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-consecutive-dashes/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-consecutive-dashes/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark-lint rule to warn when file names contain consecutive dashes. 3 | * 4 | * ## What is this? 5 | * 6 | * This package checks file names. 7 | * 8 | * ## When should I use this? 9 | * 10 | * You can use this package to check that file names are consistent. 11 | * 12 | * ## API 13 | * 14 | * ### `unified().use(remarkLintNoFileNameConsecutiveDashes)` 15 | * 16 | * Warn when file names contain consecutive dashes. 17 | * 18 | * ###### Parameters 19 | * 20 | * There are no options. 21 | * 22 | * ###### Returns 23 | * 24 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 25 | * 26 | * [api-remark-lint-no-file-name-consecutive-dashes]: #unifieduseremarklintnofilenameconsecutivedashes 27 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 28 | * 29 | * @module no-file-name-consecutive-dashes 30 | * @author Titus Wormer 31 | * @copyright Titus Wormer 32 | * @license MIT 33 | * 34 | * @example 35 | * {"name": "plug-ins.md"} 36 | * 37 | * @example 38 | * {"name": "plug--ins.md", "label": "output", "positionless": true} 39 | * 40 | * 1:1: Unexpected consecutive dashes in a file name, expected `-` 41 | */ 42 | 43 | /** 44 | * @import {Root} from 'mdast' 45 | */ 46 | 47 | import {lintRule} from 'unified-lint-rule' 48 | 49 | const remarkLintNoFileNameConsecutiveDashes = lintRule( 50 | { 51 | origin: 'remark-lint:no-file-name-consecutive-dashes', 52 | url: 'https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-consecutive-dashes#readme' 53 | }, 54 | /** 55 | * @param {Root} _ 56 | * Tree. 57 | * @returns {undefined} 58 | * Nothing. 59 | */ 60 | function (_, file) { 61 | if (file.stem && /-{2,}/.test(file.stem)) { 62 | file.message('Unexpected consecutive dashes in a file name, expected `-`') 63 | } 64 | } 65 | ) 66 | 67 | export default remarkLintNoFileNameConsecutiveDashes 68 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-consecutive-dashes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0" 10 | }, 11 | "description": "remark-lint rule to warn when file names contain consecutive dashes", 12 | "exports": "./index.js", 13 | "files": [ 14 | "index.d.ts", 15 | "index.d.ts.map", 16 | "index.js" 17 | ], 18 | "funding": { 19 | "type": "opencollective", 20 | "url": "https://opencollective.com/unified" 21 | }, 22 | "keywords": [ 23 | "basename", 24 | "dash", 25 | "file", 26 | "hyphen", 27 | "lint", 28 | "name", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint-no-file-name-consecutive-dashes", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-consecutive-dashes", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "3.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-consecutive-dashes/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-irregular-characters/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-irregular-characters/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0" 10 | }, 11 | "description": "remark-lint rule to warn when file names contain irregular characters", 12 | "exports": "./index.js", 13 | "files": [ 14 | "index.d.ts", 15 | "index.d.ts.map", 16 | "index.js" 17 | ], 18 | "funding": { 19 | "type": "opencollective", 20 | "url": "https://opencollective.com/unified" 21 | }, 22 | "keywords": [ 23 | "character", 24 | "file", 25 | "irregular", 26 | "lint", 27 | "name", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule" 32 | ], 33 | "license": "MIT", 34 | "name": "remark-lint-no-file-name-irregular-characters", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-irregular-characters", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "3.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-irregular-characters/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-mixed-case/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-mixed-case/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark-lint rule to warn when file names case is inconsistent. 3 | * 4 | * ## What is this? 5 | * 6 | * This package checks file names. 7 | * 8 | * ## When should I use this? 9 | * 10 | * You can use this package to check that file names are consistent (either 11 | * lowercase or uppercase). 12 | * 13 | * ## API 14 | * 15 | * ### `unified().use(remarkLintNoFileNameMixedCase)` 16 | * 17 | * Warn when file names case is inconsistent. 18 | * 19 | * ###### Parameters 20 | * 21 | * There are no options. 22 | * 23 | * ###### Returns 24 | * 25 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 26 | * 27 | * [api-remark-lint-no-file-name-mixed-case]: #unifieduseremarklintnofilenamemixedcase 28 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 29 | * 30 | * @module no-file-name-mixed-case 31 | * @author Titus Wormer 32 | * @copyright Titus Wormer 33 | * @license MIT 34 | * 35 | * @example 36 | * {"name": "MERCURY.md"} 37 | * 38 | * @example 39 | * {"name": "mercury.md"} 40 | * 41 | * @example 42 | * {"label": "output", "name": "Mercury.md", "positionless": true} 43 | * 44 | * 1:1: Unexpected mixed case in file name, expected either lowercase or uppercase 45 | */ 46 | 47 | /** 48 | * @import {Root} from 'mdast' 49 | */ 50 | 51 | import {lintRule} from 'unified-lint-rule' 52 | 53 | const remarkLintNofileNameMixedCase = lintRule( 54 | { 55 | origin: 'remark-lint:no-file-name-mixed-case', 56 | url: 'https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-mixed-case#readme' 57 | }, 58 | /** 59 | * @param {Root} _ 60 | * Tree. 61 | * @returns {undefined} 62 | * Nothing. 63 | */ 64 | function (_, file) { 65 | const name = file.stem 66 | 67 | if (name && !(name === name.toLowerCase() || name === name.toUpperCase())) { 68 | file.message( 69 | 'Unexpected mixed case in file name, expected either lowercase or uppercase' 70 | ) 71 | } 72 | } 73 | ) 74 | 75 | export default remarkLintNofileNameMixedCase 76 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-mixed-case/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0" 10 | }, 11 | "description": "remark-lint rule to warn when file names use mixed case", 12 | "exports": "./index.js", 13 | "files": [ 14 | "index.d.ts", 15 | "index.d.ts.map", 16 | "index.js" 17 | ], 18 | "funding": { 19 | "type": "opencollective", 20 | "url": "https://opencollective.com/unified" 21 | }, 22 | "keywords": [ 23 | "case", 24 | "file", 25 | "lint", 26 | "name", 27 | "remark", 28 | "remark-lint", 29 | "remark-lint-rule", 30 | "rule" 31 | ], 32 | "license": "MIT", 33 | "name": "remark-lint-no-file-name-mixed-case", 34 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-mixed-case", 35 | "scripts": {}, 36 | "sideEffects": false, 37 | "typeCoverage": { 38 | "atLeast": 100, 39 | "strict": true 40 | }, 41 | "type": "module", 42 | "version": "3.0.1", 43 | "xo": { 44 | "prettier": true, 45 | "rules": { 46 | "capitalized-comments": "off" 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-mixed-case/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-outer-dashes/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-outer-dashes/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark-lint rule to warn when file names start or end with dashes. 3 | * 4 | * ## What is this? 5 | * 6 | * This package checks file names. 7 | * 8 | * ## When should I use this? 9 | * 10 | * You can use this package to check that file names are consistent. 11 | * 12 | * ## API 13 | * 14 | * ### `unified().use(remarkLintNoFileNameOuterDashes)` 15 | * 16 | * Warn when file names start or end with dashes. 17 | * 18 | * ###### Parameters 19 | * 20 | * There are no options. 21 | * 22 | * ###### Returns 23 | * 24 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 25 | * 26 | * [api-remark-lint-no-file-name-outer-dashes]: #unifieduseremarklintnofilenameouterdashes 27 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 28 | * 29 | * @module no-file-name-outer-dashes 30 | * @author Titus Wormer 31 | * @copyright Titus Wormer 32 | * @license MIT 33 | * 34 | * @example 35 | * {"name": "mercury-and-venus.md"} 36 | * 37 | * @example 38 | * {"label": "output", "name": "-mercury.md", "positionless": true} 39 | * 40 | * 1:1: Unexpected initial or final dashes in file name, expected dashes to join words 41 | * 42 | * @example 43 | * {"label": "output", "name": "venus-.md", "positionless": true} 44 | * 45 | * 1:1: Unexpected initial or final dashes in file name, expected dashes to join words 46 | */ 47 | 48 | /** 49 | * @import {Root} from 'mdast' 50 | */ 51 | 52 | import {lintRule} from 'unified-lint-rule' 53 | 54 | const remarkLintNofileNameOuterDashes = lintRule( 55 | { 56 | origin: 'remark-lint:no-file-name-outer-dashes', 57 | url: 'https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-outer-dashes#readme' 58 | }, 59 | /** 60 | * @param {Root} _ 61 | * Tree. 62 | * @returns {undefined} 63 | * Nothing. 64 | */ 65 | function (_, file) { 66 | if (file.stem && /^-|-$/.test(file.stem)) { 67 | file.message( 68 | 'Unexpected initial or final dashes in file name, expected dashes to join words' 69 | ) 70 | } 71 | } 72 | ) 73 | 74 | export default remarkLintNofileNameOuterDashes 75 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-outer-dashes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0" 10 | }, 11 | "description": "remark-lint rule to warn when file names contain initial or final dashes", 12 | "exports": "./index.js", 13 | "files": [ 14 | "index.d.ts", 15 | "index.d.ts.map", 16 | "index.js" 17 | ], 18 | "funding": { 19 | "type": "opencollective", 20 | "url": "https://opencollective.com/unified" 21 | }, 22 | "keywords": [ 23 | "dash", 24 | "file", 25 | "hyphen", 26 | "lint", 27 | "name", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule" 32 | ], 33 | "license": "MIT", 34 | "name": "remark-lint-no-file-name-outer-dashes", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-outer-dashes", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "3.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /packages/remark-lint-no-file-name-outer-dashes/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-content-indent/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-content-indent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "pluralize": "^8.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when heading content is indented", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "content", 28 | "heading", 29 | "indent", 30 | "lint", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-no-heading-content-indent", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-heading-content-indent", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "5.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off", 51 | "unicorn/prefer-at": "off", 52 | "unicorn/prefer-code-point": "off" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-content-indent/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-indent/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-indent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "pluralize": "^8.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when headings are indented", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "heading", 28 | "indent", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-no-heading-indent", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-heading-indent", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "5.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-at": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-indent/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-like-paragraph/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-like-paragraph/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "pluralize": "^8.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to for too many hashes (h7+ “headings”)", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "heading", 28 | "lint", 29 | "paragraph", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-no-heading-like-paragraph", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-heading-like-paragraph", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-code-point": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-like-paragraph/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-punctuation/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-punctuation/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-mdx": "^3.0.0", 10 | "mdast-util-to-string": "^4.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0" 13 | }, 14 | "description": "remark-lint rule to warn when headings end in illegal characters", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "character", 27 | "heading", 28 | "lint", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint-no-heading-punctuation", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-heading-punctuation", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "4.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off", 49 | "unicorn/prefer-at": "off" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /packages/remark-lint-no-heading-punctuation/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-hidden-table-cell/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-hidden-table-cell/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark-lint rule to warn for superfluous table cells. 3 | * 4 | * ## What is this? 5 | * 6 | * This package checks that all table cells are rendered. 7 | * 8 | * ## When should I use this? 9 | * 10 | * You can use this package to check that table cells are rendered. 11 | * 12 | * ## API 13 | * 14 | * ### `unified().use(remarkLintNoHiddenTableCell)` 15 | * 16 | * Warn for superfluous table cells. 17 | * 18 | * ###### Parameters 19 | * 20 | * There are no parameters. 21 | * 22 | * ###### Returns 23 | * 24 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 25 | * 26 | * [api-remark-lint-no-hidden-table-cell]: #unifieduseremarklintnohiddentablecell 27 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 28 | * 29 | * @module no-hidden-table-cell 30 | * @author Titus Wormer 31 | * @copyright Titus Wormer 32 | * @license MIT 33 | * 34 | * @example 35 | * {"gfm": true, "name": "ok.md"} 36 | * 37 | * | Planet | Mean anomaly (°) | 38 | * | :- | -: | 39 | * | Mercury | 174 796 | 40 | * 41 | * @example 42 | * {"gfm": true, "label": "input", "name": "not-ok.md"} 43 | * 44 | * | Planet | Symbol | Satellites | 45 | * | :- | - | - | 46 | * | Venus | ♀ | 47 | * | Earth | ♁ | 1 | 48 | * | Mars | ♂ | 2 | 19 412 | 49 | * @example 50 | * {"gfm": true, "label": "output", "name": "not-ok.md"} 51 | * 52 | * 5:16-5:26: Unexpected hidden table cell, expected as many cells in body rows as in the head row 53 | */ 54 | 55 | /** 56 | * @import {Root} from 'mdast' 57 | */ 58 | 59 | import {lintRule} from 'unified-lint-rule' 60 | import {visitParents} from 'unist-util-visit-parents' 61 | 62 | const remarkLintNoHiddenTableCell = lintRule( 63 | { 64 | origin: 'remark-lint:no-hidden-table-cell', 65 | url: 'https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-hidden-table-cell#readme' 66 | }, 67 | /** 68 | * @param {Root} tree 69 | * Tree. 70 | * @returns {undefined} 71 | * Nothing. 72 | */ 73 | function (tree, file) { 74 | visitParents(tree, 'tableCell', function (node, parents) { 75 | const row = parents.at(-1) 76 | const table = parents.at(-2) 77 | 78 | if (row && table && row.type === 'tableRow' && table.type === 'table') { 79 | const index = row.children.indexOf(node) 80 | 81 | if (table.align && index >= table.align.length && node.position) { 82 | file.message( 83 | 'Unexpected hidden table cell, expected as many cells in body rows as in the head row', 84 | {ancestors: [...parents, node], place: node.position} 85 | ) 86 | } 87 | } 88 | }) 89 | } 90 | ) 91 | 92 | export default remarkLintNoHiddenTableCell 93 | -------------------------------------------------------------------------------- /packages/remark-lint-no-hidden-table-cell/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-visit-parents": "^6.0.0" 11 | }, 12 | "description": "remark-lint rule to check superfluous table cells", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "align", 25 | "cell", 26 | "gfm", 27 | "github", 28 | "lint", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "row", 33 | "rule", 34 | "table" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-no-hidden-table-cell", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-hidden-table-cell", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "1.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-hidden-table-cell/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-html/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-html/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-visit-parents": "^6.0.0" 11 | }, 12 | "description": "remark-lint rule to warn when HTML nodes are used", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "html", 25 | "lint", 26 | "remark", 27 | "remark-lint", 28 | "remark-lint-rule", 29 | "rule" 30 | ], 31 | "license": "MIT", 32 | "name": "remark-lint-no-html", 33 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-html", 34 | "scripts": {}, 35 | "sideEffects": false, 36 | "typeCoverage": { 37 | "atLeast": 100, 38 | "strict": true 39 | }, 40 | "type": "module", 41 | "version": "4.0.1", 42 | "xo": { 43 | "prettier": true, 44 | "rules": { 45 | "capitalized-comments": "off" 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /packages/remark-lint-no-html/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-literal-urls/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-literal-urls/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-to-string": "^4.0.0", 10 | "micromark-util-character": "^2.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when URLs without angle brackets are used", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "lint", 28 | "literal", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule", 33 | "url" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-no-literal-urls", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-literal-urls", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-at": "off", 51 | "unicorn/prefer-code-point": "off", 52 | "unicorn/prefer-switch": "off" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /packages/remark-lint-no-literal-urls/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-missing-blank-lines/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-missing-blank-lines/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-directive": "^3.0.0", 10 | "mdast-util-math": "^3.0.0", 11 | "mdast-util-mdx": "^3.0.0", 12 | "mdast-util-phrasing": "^4.0.0", 13 | "unified-lint-rule": "^3.0.0", 14 | "unist-util-position": "^5.0.0", 15 | "unist-util-visit-parents": "^6.0.0" 16 | }, 17 | "description": "remark-lint rule to warn when missing blank lines", 18 | "exports": "./index.js", 19 | "files": [ 20 | "index.d.ts", 21 | "index.d.ts.map", 22 | "index.js" 23 | ], 24 | "funding": { 25 | "type": "opencollective", 26 | "url": "https://opencollective.com/unified" 27 | }, 28 | "keywords": [ 29 | "blank", 30 | "line", 31 | "lint", 32 | "remark", 33 | "remark-lint", 34 | "remark-lint-rule", 35 | "rule" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-no-missing-blank-lines", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-missing-blank-lines", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "4.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off", 52 | "unicorn/prefer-at": "off" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /packages/remark-lint-no-missing-blank-lines/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-multiple-toplevel-headings/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-multiple-toplevel-headings/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-mdx": "^3.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when multiple top level headings are used", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "heading", 28 | "lint", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule", 33 | "top-level" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-no-multiple-toplevel-headings", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-multiple-toplevel-headings", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off", 50 | "unicorn/prefer-default-parameters": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-multiple-toplevel-headings/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-paragraph-content-indent/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-paragraph-content-indent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "mdast-util-phrasing": "^4.0.0", 11 | "pluralize": "^8.0.0", 12 | "unified-lint-rule": "^3.0.0", 13 | "unist-util-position": "^5.0.0", 14 | "unist-util-visit-parents": "^6.0.0", 15 | "vfile-location": "^5.0.0" 16 | }, 17 | "description": "remark-lint rule to warn when the content in paragraphs are indented", 18 | "exports": "./index.js", 19 | "files": [ 20 | "index.d.ts", 21 | "index.d.ts.map", 22 | "index.js" 23 | ], 24 | "funding": { 25 | "type": "opencollective", 26 | "url": "https://opencollective.com/unified" 27 | }, 28 | "keywords": [ 29 | "content", 30 | "indent", 31 | "lint", 32 | "paragraph", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "rule" 37 | ], 38 | "license": "MIT", 39 | "name": "remark-lint-no-paragraph-content-indent", 40 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-paragraph-content-indent", 41 | "scripts": {}, 42 | "sideEffects": false, 43 | "typeCoverage": { 44 | "atLeast": 100, 45 | "strict": true 46 | }, 47 | "type": "module", 48 | "version": "5.0.1", 49 | "xo": { 50 | "prettier": true, 51 | "rules": { 52 | "capitalized-comments": "off", 53 | "complexity": "off", 54 | "unicorn/prefer-code-point": "off", 55 | "unicorn/prefer-switch": "off" 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /packages/remark-lint-no-paragraph-content-indent/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-reference-like-url/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-reference-like-url/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when URLs are also defined identifiers", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "definition", 28 | "lint", 29 | "referece", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule", 34 | "url" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-no-reference-like-url", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-reference-like-url", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-reference-like-url/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shell-dollars/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shell-dollars/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "collapse-white-space": "^2.0.0", 10 | "mdast-util-phrasing": "^4.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-visit-parents": "^6.0.0" 13 | }, 14 | "description": "remark-lint rule to warn when shell code is prefixed by dollars", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "dollar", 27 | "lint", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule", 32 | "shel" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint-no-shell-dollars", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shell-dollars", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "4.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off", 49 | "unicorn/prefer-code-point": "off" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shell-dollars/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shortcut-reference-image/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shortcut-reference-image/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark-lint rule to warn when shortcut reference images are used. 3 | * 4 | * ## What is this? 5 | * 6 | * This package checks that collapsed or full reference images are used. 7 | * 8 | * ## When should I use this? 9 | * 10 | * You can use this package to check that references are consistent. 11 | * 12 | * ## API 13 | * 14 | * ### `unified().use(remarkLintNoShortcutReferenceImage)` 15 | * 16 | * Warn when shortcut reference images are used. 17 | * 18 | * ###### Parameters 19 | * 20 | * There are no options. 21 | * 22 | * ###### Returns 23 | * 24 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 25 | * 26 | * ## Recommendation 27 | * 28 | * Shortcut references use an implicit style that looks a lot like something 29 | * that could occur as plain text instead of syntax. 30 | * In some cases, 31 | * plain text is intended instead of an image. 32 | * So it’s recommended to use collapsed or full references instead. 33 | * 34 | * [api-remark-lint-no-shortcut-reference-image]: #unifieduseremarklintnoshortcutreferenceimage 35 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 36 | * 37 | * @module no-shortcut-reference-image 38 | * @author Titus Wormer 39 | * @copyright Titus Wormer 40 | * @license MIT 41 | * 42 | * @example 43 | * {"name": "ok.md"} 44 | * 45 | * ![Mercury][] 46 | * 47 | * [mercury]: /mercury.png 48 | * 49 | * @example 50 | * {"label": "input", "name": "not-ok.md"} 51 | * 52 | * ![Mercury] 53 | * 54 | * [mercury]: /mercury.png 55 | * @example 56 | * {"label": "output", "name": "not-ok.md"} 57 | * 58 | * 1:1-1:11: Unexpected shortcut reference image (`![text]`), expected collapsed reference (`![text][]`) 59 | */ 60 | 61 | /** 62 | * @import {Root} from 'mdast' 63 | */ 64 | 65 | import {lintRule} from 'unified-lint-rule' 66 | import {visitParents} from 'unist-util-visit-parents' 67 | 68 | const remarkLintNoShortcutReferenceImage = lintRule( 69 | { 70 | origin: 'remark-lint:no-shortcut-reference-image', 71 | url: 'https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shortcut-reference-image#readme' 72 | }, 73 | /** 74 | * @param {Root} tree 75 | * Tree. 76 | * @returns {undefined} 77 | * Nothing. 78 | */ 79 | function (tree, file) { 80 | visitParents(tree, 'imageReference', function (node, parents) { 81 | if (node.position && node.referenceType === 'shortcut') { 82 | file.message( 83 | 'Unexpected shortcut reference image (`![text]`), expected collapsed reference (`![text][]`)', 84 | {ancestors: [...parents, node], place: node.position} 85 | ) 86 | } 87 | }) 88 | } 89 | ) 90 | 91 | export default remarkLintNoShortcutReferenceImage 92 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shortcut-reference-image/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-visit-parents": "^6.0.0" 11 | }, 12 | "description": "remark-lint rule to warn when shortcut reference images are used", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "image", 25 | "lint", 26 | "reference", 27 | "remark", 28 | "remark-lint", 29 | "remark-lint-rule", 30 | "rule", 31 | "shortcut" 32 | ], 33 | "license": "MIT", 34 | "name": "remark-lint-no-shortcut-reference-image", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shortcut-reference-image", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "4.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shortcut-reference-image/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shortcut-reference-link/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shortcut-reference-link/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark-lint rule to warn when shortcut reference links are used. 3 | * 4 | * ## What is this? 5 | * 6 | * This package checks that collapsed or full reference links are used. 7 | * 8 | * ## When should I use this? 9 | * 10 | * You can use this package to check that references are consistent. 11 | * 12 | * ## API 13 | * 14 | * ### `unified().use(remarkLintNoShortcutReferenceLink)` 15 | * 16 | * Warn when shortcut reference links are used. 17 | * 18 | * ###### Parameters 19 | * 20 | * There are no options. 21 | * 22 | * ###### Returns 23 | * 24 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 25 | * 26 | * ## Recommendation 27 | * 28 | * Shortcut references use an implicit style that looks a lot like something 29 | * that could occur as plain text instead of syntax. 30 | * In some cases, 31 | * plain text is intended instead of a link. 32 | * So it’s recommended to use collapsed or full references instead. 33 | * 34 | * [api-remark-lint-no-shortcut-reference-link]: #unifieduseremarklintnoshortcutreferencelink 35 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 36 | * 37 | * @module no-shortcut-reference-link 38 | * @author Titus Wormer 39 | * @copyright Titus Wormer 40 | * @license MIT 41 | * 42 | * @example 43 | * {"name": "ok.md"} 44 | * 45 | * [Mercury][] 46 | * 47 | * [mercury]: https://example.com/mercury/ 48 | * 49 | * @example 50 | * {"label": "input", "name": "not-ok.md"} 51 | * 52 | * [Mercury] 53 | * 54 | * [mercury]: https://example.com/mercury/ 55 | * @example 56 | * {"label": "output", "name": "not-ok.md"} 57 | * 58 | * 1:1-1:10: Unexpected shortcut reference link (`[text]`), expected collapsed reference (`[text][]`) 59 | */ 60 | 61 | /** 62 | * @import {Root} from 'mdast' 63 | */ 64 | 65 | import {lintRule} from 'unified-lint-rule' 66 | import {visitParents} from 'unist-util-visit-parents' 67 | 68 | const remarkLintNoShortcutReferenceLink = lintRule( 69 | { 70 | origin: 'remark-lint:no-shortcut-reference-link', 71 | url: 'https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shortcut-reference-link#readme' 72 | }, 73 | /** 74 | * @param {Root} tree 75 | * Tree. 76 | * @returns {undefined} 77 | * Nothing. 78 | */ 79 | function (tree, file) { 80 | visitParents(tree, 'linkReference', function (node, parents) { 81 | if (node.position && node.referenceType === 'shortcut') { 82 | file.message( 83 | 'Unexpected shortcut reference link (`[text]`), expected collapsed reference (`[text][]`)', 84 | {ancestors: [...parents, node], place: node.position} 85 | ) 86 | } 87 | }) 88 | } 89 | ) 90 | 91 | export default remarkLintNoShortcutReferenceLink 92 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shortcut-reference-link/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-visit-parents": "^6.0.0" 11 | }, 12 | "description": "remark-lint rule to warn when shortcut reference links are used", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "link", 25 | "lint", 26 | "reference", 27 | "remark", 28 | "remark-lint", 29 | "remark-lint-rule", 30 | "rule", 31 | "shortcut" 32 | ], 33 | "license": "MIT", 34 | "name": "remark-lint-no-shortcut-reference-link", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shortcut-reference-link", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "4.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /packages/remark-lint-no-shortcut-reference-link/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-table-indentation/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-table-indentation/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "pluralize": "^8.0.0", 11 | "mdast-util-phrasing": "^4.0.0", 12 | "unified-lint-rule": "^3.0.0", 13 | "unist-util-position": "^5.0.0", 14 | "unist-util-visit-parents": "^6.0.0", 15 | "vfile-location": "^5.0.0" 16 | }, 17 | "description": "remark-lint rule to warn when tables are indented", 18 | "exports": "./index.js", 19 | "files": [ 20 | "index.d.ts", 21 | "index.d.ts.map", 22 | "index.js" 23 | ], 24 | "funding": { 25 | "type": "opencollective", 26 | "url": "https://opencollective.com/unified" 27 | }, 28 | "keywords": [ 29 | "indent", 30 | "lint", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule", 35 | "table" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-no-table-indentation", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-table-indentation", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "5.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off", 52 | "complexity": "off", 53 | "unicorn/prefer-code-point": "off", 54 | "unicorn/prefer-switch": "off" 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /packages/remark-lint-no-table-indentation/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-tabs/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-tabs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "vfile-location": "^5.0.0" 11 | }, 12 | "description": "remark-lint rule to warn when hard tabs are used instead of spaces", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "lint", 25 | "remark", 26 | "remark-lint", 27 | "remark-lint-rule", 28 | "rule", 29 | "tab" 30 | ], 31 | "license": "MIT", 32 | "name": "remark-lint-no-tabs", 33 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-tabs", 34 | "scripts": {}, 35 | "sideEffects": false, 36 | "typeCoverage": { 37 | "atLeast": 100, 38 | "strict": true 39 | }, 40 | "type": "module", 41 | "version": "4.0.1", 42 | "xo": { 43 | "prettier": true, 44 | "rules": { 45 | "capitalized-comments": "off" 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /packages/remark-lint-no-tabs/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-undefined-references/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-undefined-references/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Merlijn Vos ", 6 | "Murderlon ", 7 | "Titus Wormer " 8 | ], 9 | "dependencies": { 10 | "@types/mdast": "^4.0.0", 11 | "collapse-white-space": "^2.0.0", 12 | "devlop": "^1.0.0", 13 | "micromark-util-normalize-identifier": "^2.0.0", 14 | "unified-lint-rule": "^3.0.0", 15 | "unist-util-position": "^5.0.0", 16 | "unist-util-visit-parents": "^6.0.0", 17 | "vfile-location": "^5.0.0" 18 | }, 19 | "description": "remark-lint rule to warn when references to undefined definitions are found", 20 | "exports": "./index.js", 21 | "files": [ 22 | "index.d.ts", 23 | "index.d.ts.map", 24 | "index.js" 25 | ], 26 | "funding": { 27 | "type": "opencollective", 28 | "url": "https://opencollective.com/unified" 29 | }, 30 | "keywords": [ 31 | "definition", 32 | "lint", 33 | "reference", 34 | "remark", 35 | "remark-lint", 36 | "remark-lint-rule", 37 | "rule" 38 | ], 39 | "license": "MIT", 40 | "name": "remark-lint-no-undefined-references", 41 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-undefined-references", 42 | "scripts": {}, 43 | "sideEffects": false, 44 | "typeCoverage": { 45 | "atLeast": 100, 46 | "strict": true 47 | }, 48 | "type": "module", 49 | "version": "5.0.2", 50 | "xo": { 51 | "prettier": true, 52 | "rules": { 53 | "capitalized-comments": "off", 54 | "complexity": "off", 55 | "max-depth": "off", 56 | "unicorn/prefer-at": "off", 57 | "unicorn/prefer-code-point": "off", 58 | "unicorn/prefer-string-replace-all": "off", 59 | "unicorn/prefer-switch": "off" 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /packages/remark-lint-no-undefined-references/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unneeded-full-reference-image/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unneeded-full-reference-image/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "micromark-util-normalize-identifier": "^2.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0", 12 | "unist-util-visit-parents": "^6.0.0" 13 | }, 14 | "description": "remark-lint rule to check that full reference images can be collapsed", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "collapsed", 27 | "full", 28 | "image", 29 | "lint", 30 | "reference", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-no-unneeded-full-reference-image", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-unneeded-full-reference-image", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unneeded-full-reference-image/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unneeded-full-reference-link/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unneeded-full-reference-link/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "micromark-util-normalize-identifier": "^2.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0", 12 | "unist-util-visit-parents": "^6.0.0" 13 | }, 14 | "description": "remark-lint rule to check that full reference links can be collapsed", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "collapsed", 27 | "full", 28 | "link", 29 | "lint", 30 | "reference", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-no-unneeded-full-reference-link", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-unneeded-full-reference-link", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unneeded-full-reference-link/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unused-definitions/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unused-definitions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "devlop": "^1.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-visit-parents": "^6.0.0" 12 | }, 13 | "description": "remark-lint rule to warn when unused definitions are found", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js" 19 | ], 20 | "funding": { 21 | "type": "opencollective", 22 | "url": "https://opencollective.com/unified" 23 | }, 24 | "keywords": [ 25 | "definition", 26 | "lint", 27 | "remark", 28 | "remark-lint", 29 | "remark-lint-rule", 30 | "rule" 31 | ], 32 | "license": "MIT", 33 | "name": "remark-lint-no-unused-definitions", 34 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-unused-definitions", 35 | "scripts": {}, 36 | "sideEffects": false, 37 | "typeCoverage": { 38 | "atLeast": 100, 39 | "strict": true 40 | }, 41 | "type": "module", 42 | "version": "4.0.2", 43 | "xo": { 44 | "prettier": true, 45 | "rules": { 46 | "capitalized-comments": "off" 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /packages/remark-lint-no-unused-definitions/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-ordered-list-marker-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-ordered-list-marker-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "micromark-util-character": "^2.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0", 14 | "vfile-message": "^4.0.0" 15 | }, 16 | "description": "remark-lint rule to warn when the markers of ordered lists violate a given style", 17 | "exports": "./index.js", 18 | "files": [ 19 | "index.d.ts", 20 | "index.d.ts.map", 21 | "index.js" 22 | ], 23 | "funding": { 24 | "type": "opencollective", 25 | "url": "https://opencollective.com/unified" 26 | }, 27 | "keywords": [ 28 | "lint", 29 | "list", 30 | "marker", 31 | "ordered", 32 | "remark", 33 | "remark-lint", 34 | "remark-lint-rule", 35 | "rule" 36 | ], 37 | "license": "MIT", 38 | "name": "remark-lint-ordered-list-marker-style", 39 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-style", 40 | "scripts": {}, 41 | "sideEffects": false, 42 | "typeCoverage": { 43 | "atLeast": 100, 44 | "strict": true 45 | }, 46 | "type": "module", 47 | "version": "4.0.1", 48 | "xo": { 49 | "prettier": true, 50 | "rules": { 51 | "capitalized-comments": "off", 52 | "unicorn/prefer-code-point": "off", 53 | "unicorn/prefer-string-replace-all": "off" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /packages/remark-lint-ordered-list-marker-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-ordered-list-marker-value/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-ordered-list-marker-value/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus ", 6 | "Titus Wormer " 7 | ], 8 | "dependencies": { 9 | "@types/mdast": "^4.0.0", 10 | "devlop": "^1.0.0", 11 | "mdast-util-phrasing": "^4.0.0", 12 | "micromark-util-character": "^2.0.0", 13 | "unified-lint-rule": "^3.0.0", 14 | "unist-util-position": "^5.0.0", 15 | "unist-util-visit-parents": "^6.0.0", 16 | "vfile-message": "^4.0.0" 17 | }, 18 | "description": "remark-lint rule to check the marker value of ordered lists", 19 | "exports": "./index.js", 20 | "files": [ 21 | "index.d.ts", 22 | "index.d.ts.map", 23 | "index.js" 24 | ], 25 | "funding": { 26 | "type": "opencollective", 27 | "url": "https://opencollective.com/unified" 28 | }, 29 | "keywords": [ 30 | "lint", 31 | "list", 32 | "marker", 33 | "ordered", 34 | "remark", 35 | "remark-lint", 36 | "remark-lint-rule", 37 | "rule" 38 | ], 39 | "license": "MIT", 40 | "name": "remark-lint-ordered-list-marker-value", 41 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-value", 42 | "scripts": {}, 43 | "sideEffects": false, 44 | "typeCoverage": { 45 | "atLeast": 100, 46 | "strict": true 47 | }, 48 | "type": "module", 49 | "version": "4.0.1", 50 | "xo": { 51 | "prettier": true, 52 | "rules": { 53 | "capitalized-comments": "off", 54 | "complexity": "off", 55 | "unicorn/prefer-code-point": "off", 56 | "unicorn/prefer-string-replace-all": "off" 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /packages/remark-lint-ordered-list-marker-value/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-rule-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-rule-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when horizontal rules violate a given style", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "break", 28 | "horizontal", 29 | "lint", 30 | "remark", 31 | "remark-lint", 32 | "remark-lint-rule", 33 | "rule", 34 | "thematic" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-rule-style", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-rule-style", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off" 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/remark-lint-rule-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-strikethrough-marker/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-strikethrough-marker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-position": "^5.0.0", 11 | "unist-util-visit-parents": "^6.0.0", 12 | "vfile-message": "^4.0.0" 13 | }, 14 | "description": "remark-lint rule to warn when strikethrough markers violate the given style", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "lint", 27 | "marker", 28 | "remark", 29 | "remark-lint", 30 | "remark-lint-rule", 31 | "rule", 32 | "strikethrough" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint-strikethrough-marker", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strikethrough-marker", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "3.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /packages/remark-lint-strikethrough-marker/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-strong-marker/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-strong-marker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "unified-lint-rule": "^3.0.0", 10 | "unist-util-position": "^5.0.0", 11 | "unist-util-visit-parents": "^6.0.0", 12 | "vfile-message": "^4.0.0" 13 | }, 14 | "description": "remark-lint rule to warn when importance (strong) markers violate the given style", 15 | "exports": "./index.js", 16 | "files": [ 17 | "index.d.ts", 18 | "index.d.ts.map", 19 | "index.js" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "importance", 27 | "lint", 28 | "marker", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "rule", 33 | "strong" 34 | ], 35 | "license": "MIT", 36 | "name": "remark-lint-strong-marker", 37 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strong-marker", 38 | "scripts": {}, 39 | "sideEffects": false, 40 | "typeCoverage": { 41 | "atLeast": 100, 42 | "strict": true 43 | }, 44 | "type": "module", 45 | "version": "4.0.1", 46 | "xo": { 47 | "prettier": true, 48 | "rules": { 49 | "capitalized-comments": "off" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /packages/remark-lint-strong-marker/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-table-cell-padding/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-table-cell-padding/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "@types/unist": "^3.0.0", 10 | "devlop": "^1.0.0", 11 | "mdast-util-phrasing": "^4.0.0", 12 | "pluralize": "^8.0.0", 13 | "unified-lint-rule": "^3.0.0", 14 | "unist-util-position": "^5.0.0", 15 | "unist-util-visit-parents": "^6.0.0", 16 | "vfile-message": "^4.0.0" 17 | }, 18 | "description": "remark-lint rule to warn when table cells are incorrectly padded", 19 | "exports": "./index.js", 20 | "files": [ 21 | "index.d.ts", 22 | "index.d.ts.map", 23 | "index.js" 24 | ], 25 | "funding": { 26 | "type": "opencollective", 27 | "url": "https://opencollective.com/unified" 28 | }, 29 | "keywords": [ 30 | "cell", 31 | "lint", 32 | "padding", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "rule", 37 | "table" 38 | ], 39 | "license": "MIT", 40 | "name": "remark-lint-table-cell-padding", 41 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-cell-padding", 42 | "scripts": {}, 43 | "sideEffects": false, 44 | "typeCoverage": { 45 | "atLeast": 100, 46 | "strict": true 47 | }, 48 | "type": "module", 49 | "version": "5.1.1", 50 | "xo": { 51 | "prettier": true, 52 | "rules": { 53 | "complexity": "off", 54 | "capitalized-comments": "off", 55 | "unicorn/explicit-length-check": "off", 56 | "unicorn/prefer-code-point": "off" 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /packages/remark-lint-table-cell-padding/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-table-pipe-alignment/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-table-pipe-alignment/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "@types/unist": "^3.0.0", 10 | "devlop": "^1.0.0", 11 | "mdast-util-phrasing": "^4.0.0", 12 | "pluralize": "^8.0.0", 13 | "unified-lint-rule": "^3.0.0", 14 | "unist-util-position": "^5.0.0", 15 | "unist-util-visit-parents": "^6.0.0" 16 | }, 17 | "description": "remark-lint rule to warn when table pipes are not aligned", 18 | "exports": "./index.js", 19 | "files": [ 20 | "index.d.ts", 21 | "index.d.ts.map", 22 | "index.js" 23 | ], 24 | "funding": { 25 | "type": "opencollective", 26 | "url": "https://opencollective.com/unified" 27 | }, 28 | "keywords": [ 29 | "align", 30 | "cell", 31 | "lint", 32 | "pipe", 33 | "remark", 34 | "remark-lint", 35 | "remark-lint-rule", 36 | "rule", 37 | "table" 38 | ], 39 | "license": "MIT", 40 | "name": "remark-lint-table-pipe-alignment", 41 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-pipe-alignment", 42 | "scripts": {}, 43 | "sideEffects": false, 44 | "typeCoverage": { 45 | "atLeast": 100, 46 | "strict": true 47 | }, 48 | "type": "module", 49 | "version": "4.1.1", 50 | "xo": { 51 | "prettier": true, 52 | "rules": { 53 | "complexity": "off", 54 | "capitalized-comments": "off", 55 | "unicorn/explicit-length-check": "off", 56 | "unicorn/prefer-code-point": "off" 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /packages/remark-lint-table-pipe-alignment/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-table-pipes/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-table-pipes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "@types/unist": "^3.0.0", 10 | "mdast-util-phrasing": "^4.0.0", 11 | "unified-lint-rule": "^3.0.0", 12 | "unist-util-position": "^5.0.0", 13 | "unist-util-visit-parents": "^6.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when table rows are not fenced with pipes", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "lint", 28 | "pipe", 29 | "remark", 30 | "remark-lint", 31 | "remark-lint-rule", 32 | "row", 33 | "rule", 34 | "table" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-table-pipes", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-pipes", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "5.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off", 51 | "unicorn/prefer-at": "off", 52 | "unicorn/prefer-code-point": "off", 53 | "unicorn/prefer-string-replace-all": "off", 54 | "unicorn/prefer-switch": "off" 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /packages/remark-lint-table-pipes/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint-unordered-list-marker-style/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint-unordered-list-marker-style/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "mdast-util-phrasing": "^4.0.0", 10 | "unified-lint-rule": "^3.0.0", 11 | "unist-util-position": "^5.0.0", 12 | "unist-util-visit-parents": "^6.0.0", 13 | "vfile-message": "^4.0.0" 14 | }, 15 | "description": "remark-lint rule to warn when markers of unordered lists violate a given style", 16 | "exports": "./index.js", 17 | "files": [ 18 | "index.d.ts", 19 | "index.d.ts.map", 20 | "index.js" 21 | ], 22 | "funding": { 23 | "type": "opencollective", 24 | "url": "https://opencollective.com/unified" 25 | }, 26 | "keywords": [ 27 | "lint", 28 | "list", 29 | "marker", 30 | "ordered", 31 | "remark", 32 | "remark-lint", 33 | "remark-lint-rule", 34 | "rule" 35 | ], 36 | "license": "MIT", 37 | "name": "remark-lint-unordered-list-marker-style", 38 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-unordered-list-marker-style", 39 | "scripts": {}, 40 | "sideEffects": false, 41 | "typeCoverage": { 42 | "atLeast": 100, 43 | "strict": true 44 | }, 45 | "type": "module", 46 | "version": "4.0.1", 47 | "xo": { 48 | "prettier": true, 49 | "rules": { 50 | "capitalized-comments": "off", 51 | "unicorn/prefer-code-point": "off" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/remark-lint-unordered-list-marker-style/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-lint/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-lint/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * remark plugin to support configuration comments for 3 | * remark-lint rules. 4 | * 5 | * ## What is this? 6 | * 7 | * This plugin adds support for configuration comments to control remark lint 8 | * rule messages. 9 | * 10 | * ## When should I use this? 11 | * 12 | * This project is useful when you’re using remark lint rules and want to let 13 | * authors ignore messages in certain cases. 14 | * This package is already included in all our presets. 15 | * If you’re building a preset yourself, you should include this package. 16 | * 17 | * ## API 18 | * 19 | * ### `unified().use(remarkLint)` 20 | * 21 | * Add support for configuration comments. 22 | * 23 | * See [Ignore warnings][mono-ignore] in the monorepo readme for how to use it. 24 | * 25 | * ###### Returns 26 | * 27 | * Transform ([`Transformer` from `unified`][github-unified-transformer]). 28 | * 29 | * [api-remark-lint]: #unifieduseremarklint 30 | * [github-unified-transformer]: https://github.com/unifiedjs/unified#transformer 31 | * [mono-ignore]: https://github.com/remarkjs/remark-lint#ignore-warnings 32 | */ 33 | 34 | /** 35 | * @import {Processor} from 'unified' 36 | */ 37 | 38 | import remarkMessageControl from 'remark-message-control' 39 | 40 | /** 41 | * The core plugin for `remark-lint`. 42 | * 43 | * This adds support for ignoring stuff from messages (``). 44 | * All rules are in their own packages and presets. 45 | * 46 | * @this {Processor} 47 | */ 48 | export default function remarkLint() { 49 | this.use(lintMessageControl) 50 | } 51 | 52 | /** 53 | * @returns 54 | * Transform. 55 | */ 56 | function lintMessageControl() { 57 | return remarkMessageControl({name: 'lint', source: 'remark-lint'}) 58 | } 59 | -------------------------------------------------------------------------------- /packages/remark-lint/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/mdast": "^4.0.0", 9 | "remark-message-control": "^8.0.0", 10 | "unified": "^11.0.0" 11 | }, 12 | "description": "remark plugin to lint Markdown code style", 13 | "exports": "./index.js", 14 | "files": [ 15 | "index.d.ts", 16 | "index.d.ts.map", 17 | "index.js" 18 | ], 19 | "funding": { 20 | "type": "opencollective", 21 | "url": "https://opencollective.com/unified" 22 | }, 23 | "keywords": [ 24 | "lint", 25 | "markdown", 26 | "mdast", 27 | "plugin", 28 | "remark", 29 | "remark-lint", 30 | "remark-plugin", 31 | "unified", 32 | "validate" 33 | ], 34 | "license": "MIT", 35 | "name": "remark-lint", 36 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint", 37 | "scripts": {}, 38 | "sideEffects": false, 39 | "typeCoverage": { 40 | "atLeast": 100, 41 | "strict": true 42 | }, 43 | "type": "module", 44 | "version": "10.0.1", 45 | "xo": { 46 | "prettier": true, 47 | "rules": { 48 | "capitalized-comments": "off" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /packages/remark-lint/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-consistent/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-consistent/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Preset of remark-lint rules to warn for inconsistencies. 3 | * 4 | * ## What is this? 5 | * 6 | * This package is a preset containing `remark-lint` rules. 7 | * Lint rules check markdown code style. 8 | * 9 | * ## When should I use this? 10 | * 11 | * You can use this package to check that markdown is consistent. 12 | * 13 | * ## API 14 | * 15 | * ### `unified().use(remarkPresetLintConsistent)` 16 | * 17 | * Check that markdown is consistent. 18 | * 19 | * You can reconfigure rules in the preset by using them afterwards with different 20 | * options. 21 | * 22 | * [api-remark-preset-lint-consistent]: #unifieduseremarkpresetlintconsistent 23 | */ 24 | 25 | /** 26 | * @import {Preset} from 'unified' 27 | */ 28 | 29 | import remarkLint from 'remark-lint' 30 | import remarkLintBlockquoteIndentation from 'remark-lint-blockquote-indentation' 31 | import remarkLintCheckboxCharacterStyle from 'remark-lint-checkbox-character-style' 32 | import remarkLintCodeBlockStyle from 'remark-lint-code-block-style' 33 | import remarkLintEmphasisMarker from 'remark-lint-emphasis-marker' 34 | import remarkLintFencedCodeMarker from 'remark-lint-fenced-code-marker' 35 | import remarkLintHeadingStyle from 'remark-lint-heading-style' 36 | import remarkLintLinkTitleStyle from 'remark-lint-link-title-style' 37 | import remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent' 38 | import remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style' 39 | import remarkLintOrderedListMarkerValue from 'remark-lint-ordered-list-marker-value' 40 | import remarkLintRuleStyle from 'remark-lint-rule-style' 41 | import remarkLintStrongMarker from 'remark-lint-strong-marker' 42 | import remarkLintTableCellPadding from 'remark-lint-table-cell-padding' 43 | 44 | // To do: next major: 45 | // * add `remark-lint-mdx-jsx-quote-style`. 46 | // * add `remark-lint-media-style` 47 | // * add `remark-lint-directive-quote-style` 48 | 49 | /** @type {Preset} */ 50 | const remarkPresetLintConsistent = { 51 | plugins: [ 52 | remarkLint, 53 | [remarkLintBlockquoteIndentation, 'consistent'], 54 | [remarkLintCheckboxCharacterStyle, 'consistent'], 55 | [remarkLintCodeBlockStyle, 'consistent'], 56 | [remarkLintEmphasisMarker, 'consistent'], 57 | [remarkLintFencedCodeMarker, 'consistent'], 58 | [remarkLintHeadingStyle, 'consistent'], 59 | [remarkLintLinkTitleStyle, 'consistent'], 60 | remarkLintListItemContentIndent, 61 | [remarkLintOrderedListMarkerStyle, 'consistent'], 62 | [remarkLintOrderedListMarkerValue, 'consistent'], 63 | [remarkLintRuleStyle, 'consistent'], 64 | [remarkLintStrongMarker, 'consistent'], 65 | [remarkLintTableCellPadding, 'consistent'] 66 | ] 67 | } 68 | 69 | export default remarkPresetLintConsistent 70 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-consistent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "remark-lint": "^10.0.0", 9 | "remark-lint-blockquote-indentation": "^4.0.0", 10 | "remark-lint-checkbox-character-style": "^5.0.0", 11 | "remark-lint-code-block-style": "^4.0.0", 12 | "remark-lint-emphasis-marker": "^4.0.0", 13 | "remark-lint-fenced-code-marker": "^4.0.0", 14 | "remark-lint-heading-style": "^4.0.0", 15 | "remark-lint-link-title-style": "^4.0.0", 16 | "remark-lint-list-item-content-indent": "^4.0.0", 17 | "remark-lint-ordered-list-marker-style": "^4.0.0", 18 | "remark-lint-ordered-list-marker-value": "^4.0.0", 19 | "remark-lint-rule-style": "^4.0.0", 20 | "remark-lint-strong-marker": "^4.0.0", 21 | "remark-lint-table-cell-padding": "^5.0.0", 22 | "unified": "^11.0.0" 23 | }, 24 | "description": "remark preset to configure remark-lint with rules that enforce consistency", 25 | "exports": "./index.js", 26 | "files": [ 27 | "index.d.ts", 28 | "index.d.ts.map", 29 | "index.js" 30 | ], 31 | "funding": { 32 | "type": "opencollective", 33 | "url": "https://opencollective.com/unified" 34 | }, 35 | "keywords": [ 36 | "consistency", 37 | "consistent", 38 | "preset", 39 | "remark", 40 | "remark-lint", 41 | "remark-preset" 42 | ], 43 | "license": "MIT", 44 | "name": "remark-preset-lint-consistent", 45 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-consistent", 46 | "scripts": {}, 47 | "sideEffects": false, 48 | "typeCoverage": { 49 | "atLeast": 100, 50 | "strict": true 51 | }, 52 | "type": "module", 53 | "version": "6.0.1", 54 | "xo": { 55 | "prettier": true, 56 | "rules": { 57 | "capitalized-comments": "off" 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-consistent/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-markdown-style-guide/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-markdown-style-guide/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-recommended/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-recommended/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Preset of remark-lint rules to warn for likely problems. 3 | * 4 | * ## What is this? 5 | * 6 | * This package is a preset containing `remark-lint` rules. 7 | * Lint rules check markdown code style. 8 | * 9 | * ## When should I use this? 10 | * 11 | * You can use this package to check that markdown follows some best practices. 12 | * 13 | * ## API 14 | * 15 | * ### `unified().use(remarkPresetLintRecommended)` 16 | * 17 | * Check that markdown follows some best practices. 18 | * 19 | * You can reconfigure rules in the preset by using them afterwards with different 20 | * options. 21 | * 22 | * [api-remark-preset-lint-recommended]: #unifieduseremarkpresetlintrecommended 23 | */ 24 | 25 | /** 26 | * @import {Preset} from 'unified' 27 | */ 28 | 29 | import remarkLint from 'remark-lint' 30 | import remarkLintFinalNewline from 'remark-lint-final-newline' 31 | import remarkLintHardBreakSpaces from 'remark-lint-hard-break-spaces' 32 | import remarkLintListItemBulletIndent from 'remark-lint-list-item-bullet-indent' 33 | import remarkLintListItemIndent from 'remark-lint-list-item-indent' 34 | import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker' 35 | import remarkLintNoDuplicateDefinitions from 'remark-lint-no-duplicate-definitions' 36 | import remarkLintNoHeadingContentIndent from 'remark-lint-no-heading-content-indent' 37 | import remarkLintNoLiteralUrls from 'remark-lint-no-literal-urls' 38 | import remarkLintNoShortcutReferenceImage from 'remark-lint-no-shortcut-reference-image' 39 | import remarkLintNoShortcutReferenceLink from 'remark-lint-no-shortcut-reference-link' 40 | import remarkLintNoUndefinedReferences from 'remark-lint-no-undefined-references' 41 | import remarkLintNoUnusedDefinitions from 'remark-lint-no-unused-definitions' 42 | import remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style' 43 | 44 | // To do: next major: 45 | // * add `remark-lint-fenced-code-flag` w/ GH check 46 | // * add `remark-lint-mdx-jsx-self-close` 47 | // * add `remark-lint-mdx-jsx-unique-attribute-name`. 48 | // * add `remark-lint-correct-media-syntax` 49 | // * add `remark-lint-no-hidden-table-cell` 50 | // * add `remark-lint-directive-unique-attribute-name` 51 | 52 | /** @type {Preset} */ 53 | const remarkPresetLintRecommended = { 54 | plugins: [ 55 | remarkLint, 56 | // Unix compatibility. 57 | remarkLintFinalNewline, 58 | // Rendering across vendors differs greatly if using other styles. 59 | remarkLintListItemBulletIndent, 60 | [remarkLintListItemIndent, 'one'], 61 | remarkLintNoBlockquoteWithoutMarker, 62 | remarkLintNoLiteralUrls, 63 | [remarkLintOrderedListMarkerStyle, '.'], 64 | // Mistakes. 65 | // To do: next major: change to `allowSpaces: false`. 66 | remarkLintHardBreakSpaces, 67 | remarkLintNoDuplicateDefinitions, 68 | remarkLintNoHeadingContentIndent, 69 | remarkLintNoShortcutReferenceImage, 70 | remarkLintNoShortcutReferenceLink, 71 | remarkLintNoUndefinedReferences, 72 | remarkLintNoUnusedDefinitions 73 | ] 74 | } 75 | 76 | export default remarkPresetLintRecommended 77 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-recommended/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "remark-lint": "^10.0.0", 9 | "remark-lint-final-newline": "^3.0.0", 10 | "remark-lint-hard-break-spaces": "^4.0.0", 11 | "remark-lint-list-item-bullet-indent": "^5.0.0", 12 | "remark-lint-list-item-indent": "^4.0.0", 13 | "remark-lint-no-blockquote-without-marker": "^6.0.0", 14 | "remark-lint-no-duplicate-definitions": "^4.0.0", 15 | "remark-lint-no-heading-content-indent": "^5.0.0", 16 | "remark-lint-no-literal-urls": "^4.0.0", 17 | "remark-lint-no-shortcut-reference-image": "^4.0.0", 18 | "remark-lint-no-shortcut-reference-link": "^4.0.0", 19 | "remark-lint-no-undefined-references": "^5.0.0", 20 | "remark-lint-no-unused-definitions": "^4.0.0", 21 | "remark-lint-ordered-list-marker-style": "^4.0.0", 22 | "unified": "^11.0.0" 23 | }, 24 | "description": "remark preset to configure remark-lint with rules that prevent mistakes or stuff that fails across vendors.", 25 | "exports": "./index.js", 26 | "files": [ 27 | "index.d.ts", 28 | "index.d.ts.map", 29 | "index.js" 30 | ], 31 | "funding": { 32 | "type": "opencollective", 33 | "url": "https://opencollective.com/unified" 34 | }, 35 | "keywords": [ 36 | "preset", 37 | "recommended", 38 | "remark", 39 | "remark-lint", 40 | "remark-preset" 41 | ], 42 | "license": "MIT", 43 | "name": "remark-preset-lint-recommended", 44 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-recommended", 45 | "scripts": {}, 46 | "sideEffects": false, 47 | "typeCoverage": { 48 | "atLeast": 100, 49 | "strict": true 50 | }, 51 | "type": "module", 52 | "version": "7.0.1", 53 | "xo": { 54 | "prettier": true, 55 | "rules": { 56 | "capitalized-comments": "off" 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /packages/remark-preset-lint-recommended/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/unified-lint-rule/.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /packages/unified-lint-rule/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Titus Wormer (https://wooorm.com)", 3 | "bugs": "https://github.com/remarkjs/remark-lint/issues", 4 | "contributors": [ 5 | "Titus Wormer " 6 | ], 7 | "dependencies": { 8 | "@types/unist": "^3.0.0", 9 | "trough": "^2.0.0", 10 | "unified": "^11.0.0", 11 | "vfile": "^6.0.0" 12 | }, 13 | "description": "unified plugin to make it a bit easier to create linting rules", 14 | "exports": "./index.js", 15 | "files": [ 16 | "index.d.ts", 17 | "index.d.ts.map", 18 | "index.js", 19 | "lib/" 20 | ], 21 | "funding": { 22 | "type": "opencollective", 23 | "url": "https://opencollective.com/unified" 24 | }, 25 | "keywords": [ 26 | "lint", 27 | "plugin", 28 | "remark-lint", 29 | "rule", 30 | "unified", 31 | "unified-plugin" 32 | ], 33 | "license": "MIT", 34 | "name": "unified-lint-rule", 35 | "repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/unified-lint-rule", 36 | "scripts": {}, 37 | "sideEffects": false, 38 | "typeCoverage": { 39 | "atLeast": 100, 40 | "strict": true 41 | }, 42 | "type": "module", 43 | "version": "3.0.1", 44 | "xo": { 45 | "prettier": true, 46 | "rules": { 47 | "capitalized-comments": "off", 48 | "unicorn/prefer-type-error": "off" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /packages/unified-lint-rule/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkjs/remark-lint/ae2f941d88551d0a1103e586495dec0f55469720/screenshot.png -------------------------------------------------------------------------------- /script/build-github-code-flag.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @import {Grammar} from '@wooorm/starry-night' 3 | */ 4 | 5 | /** 6 | * @typedef Info 7 | * @property {Array | undefined} extensionsWithDot 8 | * @property {Array | undefined} extensions 9 | * @property {Array} names 10 | */ 11 | 12 | import assert from 'node:assert/strict' 13 | import fs from 'node:fs/promises' 14 | import path from 'node:path' 15 | 16 | const languages = new URL( 17 | '../node_modules/@wooorm/starry-night/lang', 18 | import.meta.url 19 | ) 20 | 21 | const basenames = await fs.readdir(languages) 22 | /** @type {Array} */ 23 | const results = [] 24 | 25 | for (const basename of basenames) { 26 | const extname = path.extname(basename) 27 | const name = path.basename(basename, extname) 28 | 29 | if ( 30 | // Dotfile. 31 | !name || 32 | // Source map. 33 | extname === '.map' || 34 | // Types. 35 | extname === '.ts' 36 | ) { 37 | continue 38 | } 39 | 40 | assert(extname === '.js') // Should be a JS file. 41 | 42 | /** @type {{default: Grammar}} */ 43 | const module = await import('@wooorm/starry-night/' + name) 44 | const grammar = module.default 45 | const {extensions, extensionsWithDot, names} = grammar 46 | 47 | // Ignore if these scopes can only be used from other grammars. 48 | if (names.length === 0) { 49 | // Currently, nameless grammars are also w/o extensions. 50 | assert.equal(extensions.length, 0) 51 | assert(!extensionsWithDot) 52 | continue 53 | } 54 | 55 | results.push({ 56 | extensionsWithDot, 57 | extensions: extensions.length === 0 ? undefined : extensions, 58 | names 59 | }) 60 | } 61 | 62 | await fs.writeFile( 63 | new URL( 64 | '../packages/remark-lint-fenced-code-flag/github-linguist-info.js', 65 | import.meta.url 66 | ), 67 | [ 68 | '/**', 69 | ' * @typedef Info', 70 | ' * @property {Array} [extensionsWithDot]', 71 | ' * @property {Array} [extensions]', 72 | ' * @property {Array} names', 73 | ' */', 74 | '', 75 | '/** @type {Array} */', 76 | 'export const githubLinguistInfo = ' + 77 | JSON.stringify(results, undefined, 2), 78 | '' 79 | ].join('\n') 80 | ) 81 | -------------------------------------------------------------------------------- /script/build-packages.js: -------------------------------------------------------------------------------- 1 | import path from 'node:path' 2 | import {reporter} from 'vfile-reporter' 3 | import {compareFile} from 'vfile-sort' 4 | import {write} from 'to-vfile' 5 | import {plugins, presets} from './info.js' 6 | import {pipelinePackage} from './pipeline-package.js' 7 | 8 | const results = await Promise.all([ 9 | pipelinePackage('unified-lint-rule'), 10 | ...plugins.map(function (d) { 11 | return pipelinePackage(d.name) 12 | }), 13 | ...presets.map(function (d) { 14 | return pipelinePackage(d.name) 15 | }) 16 | ]) 17 | 18 | const files = results.flat() 19 | 20 | // Write files. 21 | const writable = files.filter(function (d) { 22 | return d.data.changed 23 | }) 24 | 25 | await Promise.all( 26 | writable.map(function (file) { 27 | file.stored = true 28 | return write(file) 29 | }) 30 | ) 31 | 32 | // Clean paths and report. 33 | for (const file of files) { 34 | file.path = path.relative(file.cwd, file.path) 35 | file.history = [file.path] 36 | } 37 | 38 | files.sort(compareFile) 39 | 40 | console.error(reporter(files)) 41 | -------------------------------------------------------------------------------- /script/plugin/list-of-plugins.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @import {ListItem, List, Root} from 'mdast' 3 | * @import {PackageJson} from 'type-fest' 4 | */ 5 | 6 | import assert from 'node:assert/strict' 7 | import fs from 'node:fs/promises' 8 | import structuredClone from '@ungap/structured-clone' 9 | import {zone} from 'mdast-zone' 10 | import {packagesUrl, plugins} from '../info.js' 11 | 12 | /** 13 | * List rules. 14 | * 15 | * @returns 16 | * Transform. 17 | */ 18 | export default function remarkListOfRules() { 19 | /** 20 | * Transform. 21 | * 22 | * @param {Root} tree 23 | * Tree. 24 | * @returns {Promise} 25 | * Nothing. 26 | */ 27 | return async function (tree) { 28 | /** 29 | * @type {Array} 30 | * List items. 31 | */ 32 | const items = await Promise.all( 33 | plugins.map(async function (info) { 34 | const packageUrl = new URL(info.name + '/', packagesUrl) 35 | /** @type {PackageJson} */ 36 | const pack = JSON.parse( 37 | String(await fs.readFile(new URL('package.json', packageUrl))) 38 | ) 39 | const description = String(pack.description || '').replace( 40 | /^remark-lint rule to ?/i, 41 | '' 42 | ) 43 | 44 | if (!info.ruleId) return 45 | 46 | assert(typeof pack.repository === 'string') 47 | 48 | return { 49 | type: 'listItem', 50 | spread: false, 51 | children: [ 52 | { 53 | type: 'paragraph', 54 | children: [ 55 | { 56 | type: 'link', 57 | url: pack.repository, 58 | children: [{type: 'inlineCode', value: info.name}] 59 | }, 60 | {type: 'text', value: ' — ' + description} 61 | ] 62 | } 63 | ] 64 | } 65 | }) 66 | ) 67 | 68 | /** @type {List} */ 69 | const list = { 70 | type: 'list', 71 | ordered: false, 72 | spread: false, 73 | // @ts-expect-error: filter is correct. 74 | children: items.filter(Boolean) 75 | } 76 | 77 | zone(tree, 'rules', function (start, _, end) { 78 | return [start, structuredClone(list), end] 79 | }) 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /script/plugin/list-of-presets.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @import {ListItem, List, Root} from 'mdast' 3 | * @import {PackageJson} from 'type-fest' 4 | */ 5 | 6 | import assert from 'node:assert/strict' 7 | import fs from 'node:fs/promises' 8 | import structuredClone from '@ungap/structured-clone' 9 | import {zone} from 'mdast-zone' 10 | import {packagesUrl, presets} from '../info.js' 11 | 12 | /** 13 | * @type {Array} 14 | * List items. 15 | */ 16 | const items = await Promise.all( 17 | presets.map(async function (info) { 18 | const packageUrl = new URL(info.name + '/', packagesUrl) 19 | /** @type {PackageJson} */ 20 | const pack = JSON.parse( 21 | await fs.readFile(new URL('package.json', packageUrl), 'utf8') 22 | ) 23 | 24 | const description = String(pack.description || '').replace( 25 | /^remark preset to configure remark-lint with ?/i, 26 | '' 27 | ) 28 | 29 | assert(typeof pack.repository === 'string') 30 | 31 | return { 32 | type: 'listItem', 33 | spread: false, 34 | children: [ 35 | { 36 | type: 'paragraph', 37 | children: [ 38 | { 39 | type: 'link', 40 | url: pack.repository, 41 | children: [{type: 'inlineCode', value: info.name}] 42 | }, 43 | {type: 'text', value: ' — ' + description} 44 | ] 45 | } 46 | ] 47 | } 48 | }) 49 | ) 50 | 51 | /** @type {List} */ 52 | const list = {type: 'list', ordered: false, spread: false, children: items} 53 | 54 | /** 55 | * List presets. 56 | * 57 | * @returns 58 | * Transform. 59 | */ 60 | export default function remarkListOfPresets() { 61 | /** 62 | * Transform. 63 | * 64 | * @param {Root} tree 65 | * Tree. 66 | * @returns {undefined} 67 | * Nothing. 68 | */ 69 | return function (tree) { 70 | zone(tree, 'presets', function (start, _, end) { 71 | return [start, structuredClone(list), end] 72 | }) 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "checkJs": true, 4 | "customConditions": ["development"], 5 | "declarationMap": true, 6 | "declaration": true, 7 | "emitDeclarationOnly": true, 8 | "exactOptionalPropertyTypes": true, 9 | "lib": ["dom", "es2022"], 10 | "module": "node16", 11 | "strict": true, 12 | "target": "es2022" 13 | }, 14 | "exclude": ["**/coverage/", "**/node_modules/"], 15 | "include": ["**/*.js"] 16 | } 17 | --------------------------------------------------------------------------------