New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remark-lint-code-block-syntax

Package Overview
Dependencies
Maintainers
1
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 - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

7

index.js
import { lintRule } from "unified-lint-rule";
import { visit } from "unist-util-visit";
import { default as esprima } from "esprima";
import { default as swc } from "@swc/core";
import { default as yaml } from "js-yaml";

@@ -46,3 +46,6 @@

try {
esprima.parseScript(code);
swc.parseSync(code, {
syntax: "ecmascript",
target: "es2022",
});
return null;

@@ -49,0 +52,0 @@ } catch (e) {

{
"name": "remark-lint-code-block-syntax",
"version": "0.3.0",
"version": "0.4.0",
"description": "A remark-lint rule to check language syntax in a code block.",

@@ -36,3 +36,3 @@ "author": "Masafumi Koba",

"dependencies": {
"esprima": "^4.0.1",
"@swc/core": "^1.2.171",
"js-yaml": "^4.0.0",

@@ -56,4 +56,10 @@ "unified-lint-rule": "^2.0.0",

"jest": true
}
},
"ignorePatterns": [
"coverage",
"dist",
"tmp"
],
"reportUnusedDisableDirectives": true
}
}
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