From f7a5177f6f08fa3d8c6dfab851737670ed9a1246 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 12 Nov 2018 11:37:37 +0100 Subject: [PATCH] setup markdownlint --- .editorconfig | 2 +- .markdownlint.json | 15 +++++++++++++++ package.json | 4 ++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .markdownlint.json diff --git a/.editorconfig b/.editorconfig index 85216e5f..1766ef16 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,5 +8,5 @@ indent_style = space insert_final_newline = true trim_trailing_whitespace = true -[*.{json,yml,yaml}] +[*.{json,yml,yaml,md}] indent_size = 2 diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 00000000..baa3192e --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,15 @@ +{ + "default": true, + "whitespace": false, + "line-length": false, + "ul-start-left": false, + "ul-indent": false, + "no-inline-html": false, + "no-bare-urls": false, + "first-line-h1": false, + "first-heading-h1": false, + "blanks-around-fences": false, + "no-trailing-punctuation": false, + "ol-prefix": false, + "ul-style": { "style": "dash" } +} diff --git a/package.json b/package.json index 06b03a93..c18e7733 100755 --- a/package.json +++ b/package.json @@ -46,9 +46,11 @@ "ssr": "npm run build && serve -s public/", "format:js": "prettier --write 'src/**/*.{js,jsx}'", "format:css": "prettier-stylelint --write --quiet 'src/**/*.{css,scss}'", + "format:md": "prettier --write './content/**/*.md' --no-semi", "format": "run-p format:js format:css", "lint:js": "eslint ./gatsby-*.js && eslint ./src/**/*.{js,jsx}", "lint:css": "stylelint ./src/**/*.{css,scss}", + "lint:md": "markdownlint './content/**/*.md'", "lint": "run-p lint:js lint:css", "test": "npm run lint" }, @@ -59,9 +61,11 @@ "eslint-config-oceanprotocol": "^1.3.0", "eslint-config-prettier": "^3.1.0", "eslint-plugin-prettier": "^3.0.0", + "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.3", "prettier": "^1.15.1", "prettier-stylelint": "^0.4.2", + "stylelint": "^9.8.0", "stylelint-config-bigchaindb": "^1.2.1", "stylelint-config-css-modules": "^1.3.0", "stylelint-config-standard": "^18.2.0"