diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-28 04:53:08 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-28 04:53:08 +0000 |
commit | 315e0143f65da3485dcbcd2f6a3172a351618aec (patch) | |
tree | b713ae472cffab249c95917c6fb6d242d54e0a87 /.remarkrc.js | |
parent | Adding upstream version 1.18.1. (diff) | |
download | netdata-315e0143f65da3485dcbcd2f6a3172a351618aec.tar.xz netdata-315e0143f65da3485dcbcd2f6a3172a351618aec.zip |
Adding upstream version 1.19.0.upstream/1.19.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | .remarkrc.js | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/.remarkrc.js b/.remarkrc.js deleted file mode 100644 index a5d9d1280..000000000 --- a/.remarkrc.js +++ /dev/null @@ -1,121 +0,0 @@ -// Source: https://github.com/codacy/codacy-remark-lint/raw/master/.remarkrc.js - -const fs = require("fs"); -const path = require("path"); - -exports.settings = { - gfm: true, - commonmark: true, - looseTable: false, - spacedTable: false, - paddedTable: false, - fences: true, - rule: '-', - ruleRepetition: 3, - emphasis: "*", - strong: "*", - bullet: "-", - listItemIndent: 'tab', - incrementListMarker: true -}; - -const personalDictionaryPath = path.join(__dirname, ".dictionary"); -const personalDictionary = fs.existsSync(personalDictionaryPath) - ? { - personal: fs.readFileSync(personalDictionaryPath, "utf8") - } - : {}; - -const remarkPresetLintMarkdownStyleGuide = { - plugins: require("remark-preset-lint-markdown-style-guide").plugins.filter( - function(elem) { - return elem != require("remark-lint-no-duplicate-headings"); - } - ) -}; - -exports.plugins = [ - require("remark-preset-lint-consistent"), - require("remark-preset-lint-recommended"), - remarkPresetLintMarkdownStyleGuide, - [require("remark-lint-no-dead-urls"), { skipOffline: true }], - require("remark-lint-heading-whitespace"), - [require("remark-lint-maximum-line-length"), 120], - [require("remark-lint-maximum-heading-length"), 120], - [require("remark-lint-list-item-indent"), "tab-size"], - [require("remark-lint-list-item-spacing"), false], - [require("remark-lint-strong-marker"), "*"], - [require("remark-lint-emphasis-marker"), "_"], - [require("remark-lint-unordered-list-marker-style"), "-"], - [require("remark-lint-ordered-list-marker-style"), "."], - [require("remark-lint-ordered-list-marker-value"), "ordered"], - /*[ - require("remark-lint-write-good"), - [ - "warn", - { - passive: false, - illusion: true, - so: true, - thereIs: true, - weasel: true, - adverb: true, - tooWordy: true, - cliches: true, - eprime: false - } - ] - ],*/ - require("remark-validate-links"), - require("remark-frontmatter"), - /*[ - require("remark-retext"), - require("unified")().use({ - plugins: [ - require("retext-english"), - require("retext-syntax-urls"), - [ - require("retext-spell"), - { - ignoreLiteral: true, - dictionary: require("dictionary-en-us"), - ...personalDictionary - } - ], - [ - require("retext-sentence-spacing"), - { - preferred: 1 - } - ], - require("retext-repeated-words"), - require("retext-usage"), - require("retext-indefinite-article"), - require("retext-redundant-acronyms"), - [ - require("retext-contractions"), - { - straight: true, - allowLiteral: true - } - ], - require("retext-diacritics"), - [ - require("retext-quotes"), - { - preferred: "straight" - } - ], - require("retext-equality"), - require("retext-passive"), - require("retext-profanities"), - [ - require("retext-readability"), - { - age: 20 - } - ] - ] - }) - ]*/ -]; |