mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Add lint rules from eslint-plugin-node.
This commit is contained in:
parent
6525c36f1e
commit
e1eb81cd21
11 changed files with 61 additions and 19 deletions
|
@ -5,7 +5,6 @@
|
|||
const fs = require("fs");
|
||||
const os = require("os");
|
||||
const path = require("path");
|
||||
const { URL } = require("url");
|
||||
const { promisify } = require("util");
|
||||
const md = require("markdown-it")();
|
||||
const pluginInline = require("markdown-it-for-inline");
|
||||
|
@ -3946,6 +3945,16 @@ tape("customRulesLintJavaScript", (test) => {
|
|||
test.ifError(err);
|
||||
const expected = {
|
||||
"test/lint-javascript.md": [
|
||||
{
|
||||
"lineNumber": 8,
|
||||
"ruleNames": [ "lint-javascript" ],
|
||||
"ruleDescription": "Rule that lints JavaScript code",
|
||||
"ruleInformation": null,
|
||||
"errorDetail":
|
||||
"Definition for rule 'node/handle-callback-err' was not found.",
|
||||
"errorContext": "\"use strict\";",
|
||||
"errorRange": null
|
||||
},
|
||||
{
|
||||
"lineNumber": 10,
|
||||
"ruleNames": [ "lint-javascript" ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue