remark-lint-code-block-syntax
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -65,3 +65,3 @@ "use strict"; | ||
try { | ||
yaml.safeLoad(code); | ||
yaml.load(code); | ||
return null; | ||
@@ -68,0 +68,0 @@ } catch (e) { |
@@ -65,3 +65,3 @@ "use strict"; | ||
message: | ||
"Invalid YAML: can not read a block mapping entry; a multiline key may not be an implicit key at line 3, column 1:", | ||
"Invalid YAML: can not read a block mapping entry; a multiline key may not be an implicit key (3:1)", | ||
ruleId: "code-block-syntax", | ||
@@ -68,0 +68,0 @@ source: "remark-lint", |
{ | ||
"name": "remark-lint-code-block-syntax", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "A remark-lint rule to check language syntax in a code block.", | ||
@@ -18,7 +18,9 @@ "author": "Masafumi Koba", | ||
"scripts": { | ||
"test": "jest" | ||
"test": "jest", | ||
"lint": "npx eslint . && npx prettier --check .", | ||
"format": "npx prettier --write ." | ||
}, | ||
"dependencies": { | ||
"esprima": "^4.0.1", | ||
"js-yaml": "^3.13.1", | ||
"js-yaml": "^4.0.0", | ||
"unified-lint-rule": "^1.0.5", | ||
@@ -29,4 +31,4 @@ "unist-util-visit": "^2.0.2" | ||
"jest": "^26.0.1", | ||
"remark": "^12.0.0" | ||
"remark": "^13.0.0" | ||
} | ||
} |
@@ -0,1 +1,3 @@ | ||
[![npm](https://img.shields.io/npm/v/remark-lint-code-block-syntax?style=flat-square)](https://www.npmjs.com/package/remark-lint-code-block-syntax) | ||
# remark-lint-code-block-syntax | ||
@@ -5,6 +7,12 @@ | ||
## Supported languages | ||
- JavaScript | ||
- JSON | ||
- YAML | ||
## Install | ||
```console | ||
$ npm install remark remark-lint-code-block-syntax | ||
$ npm install remark-lint-code-block-syntax | ||
``` | ||
@@ -11,0 +19,0 @@ |
Sorry, the diff of this file is not supported yet
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
7342
11
141
26
+ Addedargparse@2.0.1(transitive)
+ Addedjs-yaml@4.1.0(transitive)
- Removedargparse@1.0.10(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedsprintf-js@1.0.3(transitive)
Updatedjs-yaml@^4.0.0