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

markdownlint-cli2

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdownlint-cli2 - npm Package Compare versions

Comparing version 0.9.2 to 0.10.0

CHANGELOG.md

14

markdownlint-cli2.js

@@ -29,3 +29,3 @@ #!/usr/bin/env node

const packageName = "markdownlint-cli2";
const packageVersion = "0.9.2";
const packageVersion = "0.10.0";
const libraryName = "markdownlint";

@@ -954,5 +954,11 @@ const libraryVersion = markdownlintLibrary.getVersion();

if (showProgress) {
let fileCount = 0;
for (const dirInfo of dirInfos) {
fileCount += dirInfo.files.length;
const fileNames = dirInfos.flatMap((dirInfo) => {
const { files } = dirInfo;
return files.map((file) => pathPosix.relative(baseDir, file));
});
const fileCount = fileNames.length;
if (baseMarkdownlintOptions.showFound) {
fileNames.push("");
fileNames.sort();
logMessage(`Found:${fileNames.join("\n ")}`);
}

@@ -959,0 +965,0 @@ logMessage(`Linting: ${fileCount} file(s)`);

{
"name": "markdownlint-cli2",
"version": "0.9.2",
"version": "0.10.0",
"description": "A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the `markdownlint` library",

@@ -25,3 +25,3 @@ "author": {

"type": "git",
"url": "https://github.com/DavidAnson/markdownlint-cli2.git"
"url": "git+https://github.com/DavidAnson/markdownlint-cli2.git"
},

@@ -32,3 +32,3 @@ "bugs": "https://github.com/DavidAnson/markdownlint-cli2/issues",

"build-docker-image-rules": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker build -t davidanson/markdownlint-cli2-rules:v$VERSION -f docker/Dockerfile-rules --build-arg VERSION=v$VERSION --label org.opencontainers.image.version=v$VERSION .",
"ci": "npm-run-all --continue-on-error --parallel test-cover lint",
"ci": "npm-run-all --continue-on-error --parallel test-cover lint schema",
"docker-npm-install": "docker run --rm --tty --name npm-install --volume $PWD:/home/workdir --workdir /home/workdir --user node node:latest npm install",

@@ -40,8 +40,10 @@ "docker-npm-run-upgrade": "docker run --rm --tty --name npm-run-upgrade --volume $PWD:/home/workdir --workdir /home/workdir --user node node:latest npm run upgrade",

"publish-docker-image": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker buildx build --platform linux/arm64,linux/amd64 -t davidanson/markdownlint-cli2:v$VERSION -t davidanson/markdownlint-cli2:latest -f docker/Dockerfile --push .",
"schema": "cpy ./node_modules/markdownlint/schema/markdownlint-config-schema.json ./schema --flat",
"test": "ava --timeout=1m test/append-to-array-test.js test/fs-mock-test.js test/markdownlint-cli2-test.js test/markdownlint-cli2-test-exec.js test/markdownlint-cli2-test-fs.js test/markdownlint-cli2-test-main.js test/merge-options-test.js test/resolve-and-require-test.js",
"test-cover": "c8 --100 npm test -- --concurrency=1",
"test-docker-hub-image": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker image rm davidanson/markdownlint-cli2:v$VERSION davidanson/markdownlint-cli2:latest || true && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2:v$VERSION \"*.md\" && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2:latest \"*.md\"",
"test-docker-hub-image-rules": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker image rm davidanson/markdownlint-cli2-rules:v$VERSION davidanson/markdownlint-cli2-rules:latest || true && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2-rules:v$VERSION \"*.md\" && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2-rules:latest \"*.md\"",
"test-docker-image": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2:v$VERSION \"*.md\"",
"test-docker-image-rules": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2-rules:v$VERSION \"*.md\"",
"test-docker-hub-image": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker image rm davidanson/markdownlint-cli2:v$VERSION davidanson/markdownlint-cli2:latest || true && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2:v$VERSION \"*.md\" && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2:latest \"*.md\"",
"test-docker-hub-image-rules": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker image rm davidanson/markdownlint-cli2-rules:v$VERSION davidanson/markdownlint-cli2-rules:latest || true && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2-rules:v$VERSION \"*.md\" && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2-rules:latest \"*.md\"",
"test-cover": "c8 --100 npm test -- --concurrency=1",
"test-invoke-as-cli": "markdownlint-cli2 CHANGELOG.md",
"test-watch": "git ls-files | entr npm run test",

@@ -58,4 +60,6 @@ "update-snapshots": "ava --timeout=1m --update-snapshots test/markdownlint-cli2-test-exec.js test/markdownlint-cli2-test-fs.js test/markdownlint-cli2-test-main.js",

"append-to-array.js",
"CHANGELOG.md",
"export-markdownlint.js",
"export-markdownlint-helpers.js",
"LICENSE",
"markdownlint-cli2.js",

@@ -65,11 +69,14 @@ "markdownlint-cli2-config.js",

"merge-options.js",
"resolve-and-require.js"
"README.md",
"resolve-and-require.js",
"schema/markdownlint-cli2-config-schema.json",
"schema/markdownlint-config-schema.json"
],
"dependencies": {
"globby": "13.2.2",
"markdownlint": "0.30.0",
"markdownlint": "0.31.1",
"markdownlint-cli2-formatter-default": "0.0.4",
"micromatch": "4.0.5",
"strip-json-comments": "5.0.1",
"yaml": "2.3.1"
"yaml": "2.3.2"
},

@@ -81,5 +88,6 @@ "devDependencies": {

"cpy": "10.1.0",
"del": "7.0.0",
"eslint": "8.47.0",
"eslint-plugin-n": "16.0.2",
"cpy-cli": "5.0.0",
"del": "7.1.0",
"eslint": "8.49.0",
"eslint-plugin-n": "16.1.0",
"eslint-plugin-unicorn": "48.0.1",

@@ -96,3 +104,4 @@ "execa": "8.0.1",

"markdownlint-rule-titlecase": "0.1.0",
"npm-run-all": "4.1.5"
"npm-run-all": "4.1.5",
"tv4": "1.3.0"
},

@@ -99,0 +108,0 @@ "keywords": [

@@ -170,3 +170,3 @@ # markdownlint-cli2

```bash
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:v0.9.2 "**/*.md" "#node_modules"
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:v0.10.0 "**/*.md" "#node_modules"
```

@@ -188,3 +188,3 @@

```bash
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:v0.9.2 "**/*.md" "#node_modules"
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:v0.10.0 "**/*.md" "#node_modules"
```

@@ -198,3 +198,3 @@

> ```bash
> docker run -v $PWD:/workdir --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2:v0.9.2 "**/*.md" "#node_modules"
> docker run -v $PWD:/workdir --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2:v0.10.0 "**/*.md" "#node_modules"
> ```

@@ -326,2 +326,5 @@

- Search [`markdownlint-cli2-formatter` on npm][markdownlint-cli2-formatter]
- `showFound`: `Boolean` value to display the list of found files on `stdout`
- This top-level setting is valid **only** in the directory from which
`markdownlint-cli2` is run and **only** when `noProgress` has not been set
- When referencing a module via the `customRules`, `markdownItPlugins`, or

@@ -419,3 +422,3 @@ `outputFormatters` properties, each `String` identifier is passed to Node's

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.9.2
rev: v0.10.0
hooks:

@@ -422,0 +425,0 @@ - id: markdownlint-cli2

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