From 3d0cdc914ca8d268af56e46299bb2b4c18507c49 Mon Sep 17 00:00:00 2001 From: oupala Date: Fri, 19 Jun 2020 02:12:13 +0200 Subject: feat: add remark-lint dependencies and script Add remark-lint dependencies as dev dependencies, and an npm script alias to launch markdown linting with `npm run markdownlint`. Signed-off-by: oupala --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index da8348f0..c6538255 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "test": "npm run-script eslint && npm run-script jsonlint && npm run-script mocha-suite", "eslint": "node_modules/.bin/eslint --max-warnings 0 lib public test app.js", "jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done", + "markdownlint": "remark .", "mocha-suite": "NODE_ENV=test CMD_DB_URL=\"sqlite::memory:\" mocha --exit", "standard": "echo 'standard is no longer being used, use `npm run eslint` instead!' && exit 1", "dev": "webpack --config webpack.dev.js --progress --colors --watch", @@ -193,6 +194,8 @@ "mocha": "^5.2.0", "mock-require": "^3.0.3", "optimize-css-assets-webpack-plugin": "^5.0.3", + "remark-cli": "^8.0.0", + "remark-preset-lint-markdown-style-guide": "^3.0.0", "script-loader": "^0.7.2", "string-loader": "^0.0.1", "style-loader": "^1.0.0", -- cgit v1.2.3