remark-preset-lint-consistent
Advanced tools
Comparing version 4.0.0 to 5.0.0
46
index.js
@@ -7,18 +7,34 @@ /** | ||
'use strict' | ||
import remarkLint from 'remark-lint' | ||
import remarkLintBlockquoteIndentation from 'remark-lint-blockquote-indentation' | ||
import remarkLintCheckboxCharacterStyle from 'remark-lint-checkbox-character-style' | ||
import remarkLintCodeBlockStyle from 'remark-lint-code-block-style' | ||
import remarkLintEmphasisMarker from 'remark-lint-emphasis-marker' | ||
import remarkLintFencedCodeMarker from 'remark-lint-fenced-code-marker' | ||
import remarkLintHeadingStyle from 'remark-lint-heading-style' | ||
import remarkLintLinkTitleStyle from 'remark-lint-link-title-style' | ||
import remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent' | ||
import remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style' | ||
import remarkLintRuleStyle from 'remark-lint-rule-style' | ||
import remarkLintStrongMarker from 'remark-lint-strong-marker' | ||
import remarkLintTableCellPadding from 'remark-lint-table-cell-padding' | ||
module.exports.plugins = [ | ||
require('remark-lint'), | ||
[require('remark-lint-blockquote-indentation'), 'consistent'], | ||
[require('remark-lint-checkbox-character-style'), 'consistent'], | ||
[require('remark-lint-code-block-style'), 'consistent'], | ||
[require('remark-lint-emphasis-marker'), 'consistent'], | ||
[require('remark-lint-fenced-code-marker'), 'consistent'], | ||
[require('remark-lint-heading-style'), 'consistent'], | ||
[require('remark-lint-link-title-style'), 'consistent'], | ||
require('remark-lint-list-item-content-indent'), | ||
[require('remark-lint-ordered-list-marker-style'), 'consistent'], | ||
[require('remark-lint-rule-style'), 'consistent'], | ||
[require('remark-lint-strong-marker'), 'consistent'], | ||
[require('remark-lint-table-cell-padding'), 'consistent'] | ||
const plugins = [ | ||
remarkLint, | ||
[remarkLintBlockquoteIndentation, 'consistent'], | ||
[remarkLintCheckboxCharacterStyle, 'consistent'], | ||
[remarkLintCodeBlockStyle, 'consistent'], | ||
[remarkLintEmphasisMarker, 'consistent'], | ||
[remarkLintFencedCodeMarker, 'consistent'], | ||
[remarkLintHeadingStyle, 'consistent'], | ||
[remarkLintLinkTitleStyle, 'consistent'], | ||
remarkLintListItemContentIndent, | ||
[remarkLintOrderedListMarkerStyle, 'consistent'], | ||
[remarkLintRuleStyle, 'consistent'], | ||
[remarkLintStrongMarker, 'consistent'], | ||
[remarkLintTableCellPadding, 'consistent'] | ||
] | ||
const remarkPresetLintConsistent = {plugins} | ||
export default remarkPresetLintConsistent |
{ | ||
"name": "remark-preset-lint-consistent", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "remark preset to configure remark-lint with rules that enforce consistency", | ||
@@ -23,21 +23,37 @@ "license": "MIT", | ||
], | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.d.ts", | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"remark-lint": "^8.0.0", | ||
"remark-lint-blockquote-indentation": "^2.0.0", | ||
"remark-lint-checkbox-character-style": "^3.0.0", | ||
"remark-lint-code-block-style": "^2.0.0", | ||
"remark-lint-emphasis-marker": "^2.0.0", | ||
"remark-lint-fenced-code-marker": "^2.0.0", | ||
"remark-lint-heading-style": "^2.0.0", | ||
"remark-lint-link-title-style": "^2.0.0", | ||
"remark-lint-list-item-content-indent": "^2.0.0", | ||
"remark-lint-ordered-list-marker-style": "^2.0.0", | ||
"remark-lint-rule-style": "^2.0.0", | ||
"remark-lint-strong-marker": "^2.0.0", | ||
"remark-lint-table-cell-padding": "^3.0.0" | ||
"@types/mdast": "^3.0.0", | ||
"remark-lint": "^9.0.0", | ||
"remark-lint-blockquote-indentation": "^3.0.0", | ||
"remark-lint-checkbox-character-style": "^4.0.0", | ||
"remark-lint-code-block-style": "^3.0.0", | ||
"remark-lint-emphasis-marker": "^3.0.0", | ||
"remark-lint-fenced-code-marker": "^3.0.0", | ||
"remark-lint-heading-style": "^3.0.0", | ||
"remark-lint-link-title-style": "^3.0.0", | ||
"remark-lint-list-item-content-indent": "^3.0.0", | ||
"remark-lint-ordered-list-marker-style": "^3.0.0", | ||
"remark-lint-rule-style": "^3.0.0", | ||
"remark-lint-strong-marker": "^3.0.0", | ||
"remark-lint-table-cell-padding": "^4.0.0", | ||
"unified": "^10.0.0" | ||
}, | ||
"xo": false | ||
"scripts": { | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage" | ||
}, | ||
"xo": false, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"detail": true, | ||
"strict": true, | ||
"ignoreCatch": true | ||
} | ||
} |
@@ -22,17 +22,20 @@ <!--This file is generated--> | ||
| - | - | | ||
| [`blockquote-indentation`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-blockquote-indentation) | `'consistent'` | | ||
| [`checkbox-character-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-checkbox-character-style) | `'consistent'` | | ||
| [`code-block-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-code-block-style) | `'consistent'` | | ||
| [`emphasis-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-emphasis-marker) | `'consistent'` | | ||
| [`fenced-code-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-fenced-code-marker) | `'consistent'` | | ||
| [`heading-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-heading-style) | `'consistent'` | | ||
| [`link-title-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-link-title-style) | `'consistent'` | | ||
| [`list-item-content-indent`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-content-indent) | | | ||
| [`ordered-list-marker-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-style) | `'consistent'` | | ||
| [`rule-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-rule-style) | `'consistent'` | | ||
| [`strong-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strong-marker) | `'consistent'` | | ||
| [`table-cell-padding`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-cell-padding) | `'consistent'` | | ||
| [`remark-lint-blockquote-indentation`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-blockquote-indentation) | `'consistent'` | | ||
| [`remark-lint-checkbox-character-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-checkbox-character-style) | `'consistent'` | | ||
| [`remark-lint-code-block-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-code-block-style) | `'consistent'` | | ||
| [`remark-lint-emphasis-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-emphasis-marker) | `'consistent'` | | ||
| [`remark-lint-fenced-code-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-fenced-code-marker) | `'consistent'` | | ||
| [`remark-lint-heading-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-heading-style) | `'consistent'` | | ||
| [`remark-lint-link-title-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-link-title-style) | `'consistent'` | | ||
| [`remark-lint-list-item-content-indent`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-content-indent) | | | ||
| [`remark-lint-ordered-list-marker-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-style) | `'consistent'` | | ||
| [`remark-lint-rule-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-rule-style) | `'consistent'` | | ||
| [`remark-lint-strong-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strong-marker) | `'consistent'` | | ||
| [`remark-lint-table-cell-padding`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-cell-padding) | `'consistent'` | | ||
## Install | ||
This package is [ESM only][esm]: | ||
Node 12+ is needed to use it and it must be `imported`ed instead of `required`d. | ||
[npm][]: | ||
@@ -44,2 +47,5 @@ | ||
This package exports no identifiers. | ||
The default export is `remarkPresetLintConsistent`. | ||
## Use | ||
@@ -66,9 +72,11 @@ | ||
```diff | ||
var remark = require('remark') | ||
var report = require('vfile-reporter') | ||
import {remark} from 'remark' | ||
import {reporter} from 'vfile-reporter' | ||
import remarkPresetLintConsistent from 'remark-preset-lint-consistent' | ||
remark() | ||
+ .use(require('remark-preset-lint-consistent')) | ||
.process('_Emphasis_ and **importance**', function (err, file) { | ||
console.error(report(err || file)) | ||
+ .use(remarkPresetLintConsistent) | ||
.process('_Emphasis_ and **importance**') | ||
.then((file) => { | ||
console.error(reporter(file)) | ||
}) | ||
@@ -91,5 +99,5 @@ ``` | ||
[build-badge]: https://img.shields.io/travis/remarkjs/remark-lint/main.svg | ||
[build-badge]: https://github.com/remarkjs/remark-lint/workflows/main/badge.svg | ||
[build]: https://travis-ci.org/remarkjs/remark-lint | ||
[build]: https://github.com/remarkjs/remark-lint/actions | ||
@@ -118,2 +126,4 @@ [coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-lint.svg | ||
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c | ||
[npm]: https://docs.npmjs.com/cli/install | ||
@@ -120,0 +130,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16731
4
259
137
Yes
15
1
+ Added@types/mdast@^3.0.0
+ Addedunified@^10.0.0
+ Added@types/debug@4.1.12(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Added@types/estree-jsx@1.0.5(transitive)
+ Added@types/hast@2.3.10(transitive)
+ Added@types/mdast@3.0.15(transitive)
+ Added@types/ms@0.7.34(transitive)
+ Addedbail@2.0.2(transitive)
+ Addedcharacter-entities@2.0.2(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddecode-named-character-reference@1.0.2(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addeddiff@5.2.0(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedis-buffer@2.0.5(transitive)
+ Addedis-plain-obj@4.1.0(transitive)
+ Addedkleur@4.1.5(transitive)
+ Addedlongest-streak@3.1.0(transitive)
+ Addedmdast-comment-marker@2.1.2(transitive)
+ Addedmdast-util-from-markdown@1.3.1(transitive)
+ Addedmdast-util-heading-style@2.0.1(transitive)
+ Addedmdast-util-mdx-expression@1.3.2(transitive)
+ Addedmdast-util-phrasing@3.0.1(transitive)
+ Addedmdast-util-to-markdown@1.5.0(transitive)
+ Addedmdast-util-to-string@3.2.0(transitive)
+ Addedmicromark@3.2.0(transitive)
+ Addedmicromark-core-commonmark@1.1.0(transitive)
+ Addedmicromark-factory-destination@1.1.0(transitive)
+ Addedmicromark-factory-label@1.1.0(transitive)
+ Addedmicromark-factory-space@1.1.0(transitive)
+ Addedmicromark-factory-title@1.1.0(transitive)
+ Addedmicromark-factory-whitespace@1.1.0(transitive)
+ Addedmicromark-util-character@1.2.0(transitive)
+ Addedmicromark-util-chunked@1.1.0(transitive)
+ Addedmicromark-util-classify-character@1.1.0(transitive)
+ Addedmicromark-util-combine-extensions@1.1.0(transitive)
+ Addedmicromark-util-decode-numeric-character-reference@1.1.0(transitive)
+ Addedmicromark-util-decode-string@1.1.0(transitive)
+ Addedmicromark-util-encode@1.1.0(transitive)
+ Addedmicromark-util-html-tag-name@1.2.0(transitive)
+ Addedmicromark-util-normalize-identifier@1.1.0(transitive)
+ Addedmicromark-util-resolve-all@1.1.0(transitive)
+ Addedmicromark-util-sanitize-uri@1.2.0(transitive)
+ Addedmicromark-util-subtokenize@1.1.0(transitive)
+ Addedmicromark-util-symbol@1.1.0(transitive)
+ Addedmicromark-util-types@1.1.0(transitive)
+ Addedmri@1.2.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedremark-lint@9.1.2(transitive)
+ Addedremark-lint-blockquote-indentation@3.1.2(transitive)
+ Addedremark-lint-checkbox-character-style@4.1.2(transitive)
+ Addedremark-lint-code-block-style@3.1.2(transitive)
+ Addedremark-lint-emphasis-marker@3.1.2(transitive)
+ Addedremark-lint-fenced-code-marker@3.1.2(transitive)
+ Addedremark-lint-heading-style@3.1.2(transitive)
+ Addedremark-lint-link-title-style@3.1.2(transitive)
+ Addedremark-lint-list-item-content-indent@3.1.2(transitive)
+ Addedremark-lint-ordered-list-marker-style@3.1.2(transitive)
+ Addedremark-lint-rule-style@3.1.2(transitive)
+ Addedremark-lint-strong-marker@3.1.2(transitive)
+ Addedremark-lint-table-cell-padding@4.1.3(transitive)
+ Addedremark-message-control@7.1.1(transitive)
+ Addedsade@1.8.1(transitive)
+ Addedtrough@2.2.0(transitive)
+ Addedunified@10.1.2(transitive)
+ Addedunified-lint-rule@2.1.2(transitive)
+ Addedunified-message-control@4.0.0(transitive)
+ Addedunist-util-generated@2.0.1(transitive)
+ Addedunist-util-is@5.2.1(transitive)
+ Addedunist-util-position@4.0.4(transitive)
+ Addedunist-util-stringify-position@3.0.3(transitive)
+ Addedunist-util-visit@3.1.04.1.2(transitive)
+ Addedunist-util-visit-parents@4.1.15.1.3(transitive)
+ Addeduvu@0.5.6(transitive)
+ Addedvfile@5.3.7(transitive)
+ Addedvfile-location@4.1.0(transitive)
+ Addedvfile-message@3.1.4(transitive)
+ Addedzwitch@2.0.4(transitive)
- Removedco@3.1.0(transitive)
- Removedmdast-comment-marker@1.1.2(transitive)
- Removedmdast-util-heading-style@1.0.6(transitive)
- Removedmdast-util-to-string@1.1.0(transitive)
- Removedremark-lint@8.0.0(transitive)
- Removedremark-lint-blockquote-indentation@2.0.1(transitive)
- Removedremark-lint-checkbox-character-style@3.0.0(transitive)
- Removedremark-lint-code-block-style@2.0.1(transitive)
- Removedremark-lint-emphasis-marker@2.0.1(transitive)
- Removedremark-lint-fenced-code-marker@2.0.1(transitive)
- Removedremark-lint-heading-style@2.0.1(transitive)
- Removedremark-lint-link-title-style@2.0.1(transitive)
- Removedremark-lint-list-item-content-indent@2.0.1(transitive)
- Removedremark-lint-ordered-list-marker-style@2.0.1(transitive)
- Removedremark-lint-rule-style@2.0.1(transitive)
- Removedremark-lint-strong-marker@2.0.1(transitive)
- Removedremark-lint-table-cell-padding@3.0.0(transitive)
- Removedremark-message-control@6.0.0(transitive)
- Removedsliced@1.0.1(transitive)
- Removedunified-lint-rule@1.0.6(transitive)
- Removedunified-message-control@3.0.3(transitive)
- Removedunist-util-generated@1.1.6(transitive)
- Removedunist-util-is@4.1.0(transitive)
- Removedunist-util-position@3.1.0(transitive)
- Removedunist-util-visit@2.0.3(transitive)
- Removedunist-util-visit-parents@3.1.1(transitive)
- Removedvfile-location@3.2.0(transitive)
- Removedwrapped@1.0.1(transitive)
Updatedremark-lint@^9.0.0