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

remark-lint-code-block-syntax

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-lint-code-block-syntax

A remark-lint rule to check language syntax in a code block.

  • 0.11.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
129
decreased by-55.67%
Maintainers
0
Weekly downloads
 
Created
Source

npm node

remark-lint-code-block-syntax

A remark-lint rule to check language syntax in a code block.

Supported languages

  • JavaScript
  • JSON
  • JSONC
  • JSON5
  • YAML
  • CSS

Install

npm install remark-lint-code-block-syntax

Usage

Via a command-line argument:

$ remark --use remark-lint-code-block-syntax
docs/config.md
  32:1-32:4  warning  Invalid JSON: Unexpected token a in JSON at position 128  code-block-syntax  remark-lint

Via a configuration file:

{
  "plugins": ["remark-lint-code-block-syntax"]
}

Via JavaScript API:

import { reporter } from "vfile-reporter";
import { remark } from "remark";
import remarkLintCodeBlockSyntax from "remark-lint-code-block-syntax";

main();

async function main() {
  const code = `
\`\`\`js
const sum = 1 +;
\`\`\`
`;
  const file = await remark().use(remarkLintCodeBlockSyntax).process(code);
  console.error(reporter(file));
}

Development

This section is for developers or maintainers.

Releasing

  1. Check out the latest code on your local repository
  2. Run npm version <next_version>
  3. Run git push --follow-tags
  4. Start editing a new GitHub release
  5. Chose the new tag
  6. Click Generate release notes
  7. Remove trivial change items from the release notes
  8. Click Save draft
  9. Double-check the draft release
  10. Click Publish release if you find no problems (GitHub Actions will start publishing automatically)

Keywords

FAQs

Package last updated on 03 Sep 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

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