From a058fe7d1ff0900fbb22729028a459adaead9a0f Mon Sep 17 00:00:00 2001 From: Pixelastic Date: Fri, 24 Aug 2018 13:25:14 +0200 Subject: [PATCH] Update pretier fix --- docs/.prettierrc.js | 12 ------------ docs/.prettierrc.markdown.js | 5 +++++ docs/scripts/lint-md-fix | 19 +++++++++++-------- 3 files changed, 16 insertions(+), 20 deletions(-) delete mode 100644 docs/.prettierrc.js create mode 100644 docs/.prettierrc.markdown.js diff --git a/docs/.prettierrc.js b/docs/.prettierrc.js deleted file mode 100644 index c4d61bfd..00000000 --- a/docs/.prettierrc.js +++ /dev/null @@ -1,12 +0,0 @@ -/* eslint-disable import/no-commonjs */ -module.exports = { - overrides: [ - { - files: '*.md', - options: { - printWidth: 80, - parser: 'markdown', - }, - }, - ], -}; diff --git a/docs/.prettierrc.markdown.js b/docs/.prettierrc.markdown.js new file mode 100644 index 00000000..247dc093 --- /dev/null +++ b/docs/.prettierrc.markdown.js @@ -0,0 +1,5 @@ +/* eslint-disable import/no-commonjs */ +module.exports = { + parser: 'markdown', + printWidth: 80, +}; diff --git a/docs/scripts/lint-md-fix b/docs/scripts/lint-md-fix index 93f681d2..029d600d 100755 --- a/docs/scripts/lint-md-fix +++ b/docs/scripts/lint-md-fix @@ -1,11 +1,14 @@ #!/usr/bin/env sh -REMARK_MODE=fix \ - remark \ - --quiet \ - ./src/*.md \ - --output +# REMARK_MODE=fix \ +# remark \ +# --quiet \ +# ./src/*.md \ +# --output -textlint \ - --fix \ - ./src/*.md +# textlint \ +# --fix \ +# ./src/*.md + +prettier \ + --config ./.prettierrc.markdown.js