UNPKG

markdownlint

Version:

A Node.js style checker and lint tool for Markdown/CommonMark files.

120 lines 8.11 kB
{ "name": "markdownlint", "version": "0.41.0", "description": "A Node.js style checker and lint tool for Markdown/CommonMark files.", "type": "module", "exports": { ".": "./lib/exports.mjs", "./async": "./lib/exports-async.mjs", "./promise": "./lib/exports-promise.mjs", "./sync": "./lib/exports-sync.mjs", "./helpers": "./helpers/helpers.cjs", "./style/all": "./style/all.json", "./style/cirosantilli": "./style/cirosantilli.json", "./style/prettier": "./style/prettier.json", "./style/relaxed": "./style/relaxed.json" }, "imports": { "#node-imports": { "markdownlint-imports-browser": "./lib/node-imports-browser.mjs", "markdownlint-imports-node": "./lib/node-imports-node.mjs", "browser": "./lib/node-imports-browser.mjs", "default": "./lib/node-imports-node.mjs" } }, "types": "./lib/types.d.mts", "author": "David Anson (https://dlaa.me/)", "license": "MIT", "homepage": "https://github.com/DavidAnson/markdownlint", "repository": { "type": "git", "url": "git+https://github.com/DavidAnson/markdownlint.git" }, "bugs": "https://github.com/DavidAnson/markdownlint/issues", "funding": "https://github.com/sponsors/DavidAnson", "scripts": { "build-config": "npm run build-config-schema && npm run build-config-example", "build-config-example": "node schema/build-config-example.mjs", "build-config-schema": "node schema/build-config-schema.mjs", "build-declaration": "tsc --project ./declaration/tsconfig.json && node scripts/index.mjs copy dts/lib/exports.d.mts lib/exports.d.mts && node scripts/index.mjs copy dts/lib/exports-async.d.mts lib/exports-async.d.mts && node scripts/index.mjs copy dts/lib/exports-promise.d.mts lib/exports-promise.d.mts && node scripts/index.mjs copy dts/lib/exports-sync.d.mts lib/exports-sync.d.mts && node scripts/index.mjs copy dts/lib/markdownlint.d.mts lib/markdownlint.d.mts && node scripts/index.mjs copy dts/lib/resolve-module.d.cts lib/resolve-module.d.cts && node scripts/index.mjs remove dts", "build-demo": "node scripts/index.mjs copy node_modules/markdown-it/dist/markdown-it.min.js demo/markdown-it.min.js && cd demo && webpack --no-stats", "build-docs": "node doc-build/build-rules.mjs", "ci": "concurrently npm:build-demo npm:lint npm:serial-config-docs npm:serial-declaration npm:test && git diff --exit-code && echo PASS", "clone-test-repos-apache-airflow": "cd test-repos && git clone https://github.com/apache/airflow apache-airflow --depth 1 --no-tags --quiet", "clone-test-repos-dotnet-docs": "cd test-repos && git clone https://github.com/dotnet/docs dotnet-docs --depth 1 --no-tags --quiet", "clone-test-repos-electron-electron": "cd test-repos && git clone https://github.com/electron/electron electron-electron --depth 1 --no-tags --quiet && cd electron-electron && node ../../scripts/index.mjs delete package.json && npm install --no-save --ignore-scripts @electron/lint-roller", "clone-test-repos-eslint-eslint": "cd test-repos && git clone https://github.com/eslint/eslint eslint-eslint --depth 1 --no-tags --quiet", "clone-test-repos-mdn-content": "cd test-repos && git clone https://github.com/mdn/content mdn-content --depth 1 --no-tags --quiet", "clone-test-repos-mkdocs-mkdocs": "cd test-repos && git clone https://github.com/mkdocs/mkdocs mkdocs-mkdocs --depth 1 --no-tags --quiet", "clone-test-repos-mochajs-mocha": "cd test-repos && git clone https://github.com/mochajs/mocha mochajs-mocha --depth 1 --no-tags --quiet", "clone-test-repos-pi-hole-docs": "cd test-repos && git clone https://github.com/pi-hole/docs pi-hole-docs --depth 1 --no-tags --quiet", "clone-test-repos-v8-v8-dev": "cd test-repos && git clone https://github.com/v8/v8.dev v8-v8-dev --depth 1 --no-tags --quiet", "clone-test-repos-webhintio-hint": "cd test-repos && git clone https://github.com/webhintio/hint webhintio-hint --depth 1 --no-tags --quiet", "clone-test-repos-webpack-webpack-js-org": "cd test-repos && git clone https://github.com/webpack/webpack.js.org webpack-webpack-js-org --depth 1 --no-tags --quiet", "clone-test-repos": "mkdir test-repos && cd test-repos && npm run clone-test-repos-apache-airflow && npm run clone-test-repos-dotnet-docs && npm run clone-test-repos-electron-electron && npm run clone-test-repos-eslint-eslint && npm run clone-test-repos-mdn-content && npm run clone-test-repos-mkdocs-mkdocs && npm run clone-test-repos-mochajs-mocha && npm run clone-test-repos-pi-hole-docs && npm run clone-test-repos-v8-v8-dev && npm run clone-test-repos-webhintio-hint && npm run clone-test-repos-webpack-webpack-js-org", "example": "cd example && node standalone.mjs", "lint": "eslint --max-warnings 0", "lint-test-repos": "node --test test/markdownlint-test-repos-*.mjs", "serial-config-docs": "npm run build-config && npm run build-docs", "serial-declaration": "npm run build-declaration && npm run test-declaration", "test": "node --test --experimental-test-coverage --test-coverage-branches=100 --test-coverage-functions=100 --test-coverage-lines=100 --test-coverage-exclude=test/**/* test/markdownlint-test.mjs test/markdownlint-test-config.mjs test/markdownlint-test-custom-rules.mjs test/markdownlint-test-exports.mjs test/markdownlint-test-fixes.mjs test/markdownlint-test-helpers.mjs test/markdownlint-test-micromark.mjs test/markdownlint-test-project.mjs test/markdownlint-test-result-object.mjs test/markdownlint-test-scenarios.mjs test/parse-configuration-test.mjs test/resolve-module-test.mjs helpers/test.cjs", "test-declaration": "concurrently npm:test-declaration-cts npm:test-declaration-mts", "test-declaration-cts": "cd example/typescript && node ../../scripts/index.mjs copy type-check.ts type-check-commonjs.cts && tsc --project tsconfig.cts.json", "test-declaration-mts": "cd example/typescript && node ../../scripts/index.mjs copy type-check.ts type-check-nodenext.mts && tsc --project tsconfig.mts.json && node type-check-nodenext.mjs", "test-extra": "node --test test/markdownlint-test-extra-parse.mjs test/markdownlint-test-extra-type.mjs", "update-snapshots": "node --test --test-update-snapshots test/markdownlint-test-custom-rules.mjs test/markdownlint-test-exports.mjs test/markdownlint-test-micromark.mjs test/markdownlint-test-result-object.mjs test/markdownlint-test-scenarios.mjs", "update-snapshots-test-repos": "node --test --test-update-snapshots test/markdownlint-test-repos-*.mjs", "update-test-repos": "node scripts/index.mjs remove ./test-repos && npm run clone-test-repos && npm run update-snapshots-test-repos" }, "engines": { "node": ">=22" }, "dependencies": { "micromark": "4.0.2", "micromark-core-commonmark": "2.0.3", "micromark-extension-directive": "4.0.0", "micromark-extension-gfm-autolink-literal": "2.1.0", "micromark-extension-gfm-footnote": "2.1.0", "micromark-extension-gfm-table": "2.1.1", "micromark-extension-math": "3.1.0", "micromark-util-types": "2.0.2", "string-width": "8.2.1" }, "devDependencies": { "@eslint/js": "10.0.1", "@stylistic/eslint-plugin": "5.10.0", "@types/markdown-it": "14.1.2", "ajv": "8.20.0", "character-entities": "2.0.2", "concurrently": "10.0.3", "eslint": "10.4.1", "eslint-plugin-jsdoc": "63.0.2", "eslint-plugin-n": "18.1.0", "eslint-plugin-regexp": "3.1.0", "eslint-plugin-unicorn": "65.0.1", "gemoji": "8.1.0", "globby": "16.2.0", "js-yaml": "4.2.0", "json-schema-to-typescript": "15.0.4", "json-stringify-safe": "5.0.1", "jsonc-parser": "3.3.1", "markdown-it": "14.2.0", "markdown-it-for-inline": "2.0.1", "markdown-it-sub": "2.0.0", "markdown-it-sup": "2.0.0", "markdownlint-rule-extended-ascii": "0.2.1", "nano-spawn": "2.1.0", "terser-webpack-plugin": "5.6.1", "toml": "4.1.1", "typescript": "6.0.3", "webpack": "5.107.2", "webpack-cli": "7.0.3" }, "keywords": [ "markdown", "lint", "md", "CommonMark", "markdownlint" ] }