Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remark-preset-lint-recommended

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-preset-lint-recommended - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

74

index.d.ts
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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc