remark-preset-lint-recommended
Advanced tools
Comparing version 6.0.0 to 6.0.1
export default remarkPresetLintRecommended | ||
declare namespace remarkPresetLintRecommended { | ||
export {plugins} | ||
} | ||
declare const plugins: ( | ||
| ( | ||
| string | ||
| import('remark-lint/node_modules/unified').Plugin< | ||
| void[] | ||
| [ | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Label | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Severity | ||
| import('remark-lint-list-item-indent').Options | ||
| undefined | ||
] | ||
| [ | ||
( | ||
| boolean | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Label | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Severity | ||
), | ||
import('remark-lint-list-item-indent').Options | undefined | ||
], | ||
import('mdast').Root, | ||
import('mdast').Root | ||
> | ||
)[] | ||
| ( | ||
| string | ||
| import('remark-lint/node_modules/unified').Plugin< | ||
| void[] | ||
| [ | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Label | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Severity | ||
| import('remark-lint-ordered-list-marker-style').Options | ||
| undefined | ||
] | ||
| [ | ||
( | ||
| boolean | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Label | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Severity | ||
), | ||
( | ||
| import('remark-lint-ordered-list-marker-style').Options | ||
| undefined | ||
) | ||
], | ||
import('mdast').Root, | ||
import('mdast').Root | ||
> | ||
)[] | ||
| import('remark-lint/node_modules/unified').Plugin< | ||
| void[] | ||
| [ | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Label | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Severity | ||
| import('remark-lint-no-undefined-references').Options | ||
| undefined | ||
] | ||
| [ | ||
( | ||
| boolean | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Label | ||
| import('../remark-lint-final-newline/node_modules/unified-lint-rule').Severity | ||
), | ||
import('remark-lint-no-undefined-references').Options | undefined | ||
], | ||
import('mdast').Root, | ||
import('mdast').Root | ||
> | ||
)[] | ||
export type Preset = import('unified').Preset | ||
/** @type {Preset} */ | ||
declare const remarkPresetLintRecommended: Preset |
53
index.js
@@ -7,2 +7,6 @@ /** | ||
/** | ||
* @typedef {import('unified').Preset} Preset | ||
*/ | ||
import remarkLint from 'remark-lint' | ||
@@ -25,27 +29,28 @@ import remarkLintFinalNewline from 'remark-lint-final-newline' | ||
const plugins = [ | ||
remarkLint, | ||
// Unix compatibility. | ||
remarkLintFinalNewline, | ||
// Rendering across vendors differs greatly if using other styles. | ||
remarkLintListItemBulletIndent, | ||
[remarkLintListItemIndent, 'tab-size'], | ||
// Differs or unsupported across vendors. | ||
remarkLintNoAutoLinkWithoutProtocol, | ||
remarkLintNoBlockquoteWithoutMarker, | ||
remarkLintNoLiteralUrls, | ||
[remarkLintOrderedListMarkerStyle, '.'], | ||
// Mistakes. | ||
remarkLintHardBreakSpaces, | ||
remarkLintNoDuplicateDefinitions, | ||
remarkLintNoHeadingContentIndent, | ||
remarkLintNoInlinePadding, | ||
remarkLintNoShortcutReferenceImage, | ||
remarkLintNoShortcutReferenceLink, | ||
remarkLintNoUndefinedReferences, | ||
remarkLintNoUnusedDefinitions | ||
] | ||
/** @type {Preset} */ | ||
const remarkPresetLintRecommended = { | ||
plugins: [ | ||
remarkLint, | ||
// Unix compatibility. | ||
remarkLintFinalNewline, | ||
// Rendering across vendors differs greatly if using other styles. | ||
remarkLintListItemBulletIndent, | ||
[remarkLintListItemIndent, 'tab-size'], | ||
// Differs or unsupported across vendors. | ||
remarkLintNoAutoLinkWithoutProtocol, | ||
remarkLintNoBlockquoteWithoutMarker, | ||
remarkLintNoLiteralUrls, | ||
[remarkLintOrderedListMarkerStyle, '.'], | ||
// Mistakes. | ||
remarkLintHardBreakSpaces, | ||
remarkLintNoDuplicateDefinitions, | ||
remarkLintNoHeadingContentIndent, | ||
remarkLintNoInlinePadding, | ||
remarkLintNoShortcutReferenceImage, | ||
remarkLintNoShortcutReferenceLink, | ||
remarkLintNoUndefinedReferences, | ||
remarkLintNoUnusedDefinitions | ||
] | ||
} | ||
const remarkPresetLintRecommended = {plugins} | ||
export default remarkPresetLintRecommended |
{ | ||
"name": "remark-preset-lint-recommended", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "remark preset to configure remark-lint with rules that prevent mistakes or stuff that fails across vendors.", | ||
@@ -12,3 +12,7 @@ "license": "MIT", | ||
], | ||
"repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-recommended", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/remarkjs/remark-lint", | ||
"directory": "packages/remark-preset-lint-recommended" | ||
}, | ||
"bugs": "https://github.com/remarkjs/remark-lint/issues", | ||
@@ -15,0 +19,0 @@ "funding": { |
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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
9795
54