diff --git a/package.json b/package.json new file mode 100644 index 0000000..294d097 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "devDependencies": { + "markdownlint-cli": "^0.26.0", + "textlint": "^11.6.3", + "textlint-filter-rule-comments": "^1.2.2", + "textlint-filter-rule-whitelist": "^2.0.0", + "textlint-rule-terminology": "^2.1.4" + }, + "scripts": { + "test": "npm run lint-markdown && npm run lint-terminology", + "lint-terminology": "textlint ./README.md", + "lint-markdown": "markdownlint ./README.md --ignore node_modules", + "link-check": "find README -name \\*.md -exec markdown-link-check -c markdown-link-check-config.json 1> log 2> err {} \\; && if [ -e err ] && grep -q \"ERROR:\" err ; then exit 113 ; else echo -e \"All good\"; fi" + } + } \ No newline at end of file