Socket
Book a DemoInstallSign in
Socket

@salesforcedevs/sfdocs-remark-lint-tabset

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/sfdocs-remark-lint-tabset

Validate the custom tab plugin syntax, properties and throw error/warning respectively

latest
npmnpm
Version
0.0.1
Version published
Maintainers
0
Created
Source

remark-lint-tabset

This Markdown plugin is designed to validate the correct usage of the tabset and tab directive in Markdown files.

Why/What

We have build custom plugin to auther the tab as part of LWC2.0. This plugin ensures proper usage of the tabs feature in markdown by performing the following validations:

  • Correct Syntax Delimiters: Verifies that tabset uses :::::: and each tab uses ::::: as required.

  • Matching Tab Count: Ensures the number of tab sections matches the number of tab labels defined in the tabs property within the tabset.

  • Empty Tab Content: Checks that each tab section contains content, issuing a warning for any tabs left blank to prevent unintentional empty tabs.

  • Unique Tab Labels: Confirms that all tab labels in the tabs property are unique.

  • No Tabset After H2: Ensures that a tabset is not placed after an H2 heading to prevent disrupting the content flow on the page.

  • Correct Tabset Properties: Validates that all properties specified for the tabset are correct.

Install & build

yarn install && yarn build

Pubilsh

yarn publish

Please make sure to push your changes (version number & other changes) to git once publishing is complete.

Keywords

remark-lint-tabset

FAQs

Package last updated on 07 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts