From 0d5ba8f6f695e7a401ab9bf6ed72127d984e3fc2 Mon Sep 17 00:00:00 2001 From: Chris Ayers Date: Mon, 2 Oct 2023 00:10:11 +0000 Subject: [PATCH] updated linter config --- .github/linters/.jscpd.json | 10 +++++++++ .github/linters/.markdown-lint.yml | 36 ++++++++++++++++++++++++++++++ slides/Slides.md | 10 ++++----- 3 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 .github/linters/.jscpd.json create mode 100644 .github/linters/.markdown-lint.yml diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json new file mode 100644 index 0000000..bf79c95 --- /dev/null +++ b/.github/linters/.jscpd.json @@ -0,0 +1,10 @@ +{ + "threshold": 5, + "reporters": [ + "consoleFull" + ], + "ignore": [ + "**/__snapshots__/**" + ], + "absolute": true +} \ No newline at end of file diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml new file mode 100644 index 0000000..024c94d --- /dev/null +++ b/.github/linters/.markdown-lint.yml @@ -0,0 +1,36 @@ +--- +########################### +########################### +## Markdown Linter rules ## +########################### +########################### + +# Linter rules doc: +# - https://github.com/DavidAnson/markdownlint +# +# Note: +# To comment out a single error: +# +# any violations you want +# +# + +############### +# Rules by id # +############### +MD004: false # Unordered list style +MD007: + indent: 2 # Unordered list indentation +MD013: + line_length: 400 # Line length 80 is far too short +MD024: false # Multiple headers with the same content +MD026: + punctuation: ".,;:!。,;:" # List of not allowed +MD029: false # Ordered list item prefix +MD033: false # Allow inline HTML +MD036: false # Emphasis used instead of a heading + +################# +# Rules by tags # +################# +blank_lines: false # Error on blank lines \ No newline at end of file diff --git a/slides/Slides.md b/slides/Slides.md index 2598873..49ad42f 100644 --- a/slides/Slides.md +++ b/slides/Slides.md @@ -55,11 +55,11 @@ Demo: [Online Parser](https://yaml-online-parser.appspot.com/)
-| Feature | Description | -| --- | --- | -| Lists | Start with a – | -| Key-Value | Key: value | -| Objects | Objects:
Properties of objects | +| Feature | Description | +| --------- | --------------------------------- | +| Lists | Start with a – | +| Key-Value | Key: value | +| Objects | Objects:
Properties of objects |