From 3c9b333cb03ee0c97fd5df5b7c7b14301ffac334 Mon Sep 17 00:00:00 2001 From: Derek Lewis Date: Sun, 22 Oct 2023 04:54:24 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=F0=9F=94=A7=EF=BC=9Atoggle=20compr?= =?UTF-8?q?ehensive=20qty=20of=20natural=20language=20regs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Derek Lewis --- .remarkrc.mjs | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.remarkrc.mjs b/.remarkrc.mjs index 989d7658..4974ad43 100644 --- a/.remarkrc.mjs +++ b/.remarkrc.mjs @@ -2,9 +2,9 @@ // Requirements // ----------------------------------------------------------------------------- -import { readFileSync as fsReadFileSync } from 'node:fs'; +// import { readFileSync as fsReadFileSync } from 'node:fs'; import { unified } from 'unified'; -import strip from 'strip-comments'; +// import strip from 'strip-comments'; const infoStrings = [ 'ada', @@ -46,28 +46,28 @@ const infoStrings = [ 'yaml', ]; -const projectTerms = strip(fsReadFileSync('./project-terms.txt', 'utf8')); +// const projectTerms = strip(fsReadFileSync('./project-terms.txt', 'utf8')); -const naturalLanguage = unified().use([ - await import('retext-english'), - await import('retext-syntax-urls'), - await import('retext-equality'), - await import('retext-passive'), - await import('retext-profanities'), - [await import('retext-readability'), { age: 21, minWords: 8 }], - await import('retext-repeated-words'), - [ - await import('retext-simplify'), - { ignore: ['function', 'interface', 'maintain'] }, - ], - [await import('retext-sentence-spacing'), { preferred: 1 }], - await import('retext-syntax-mentions'), - [ - await import('retext-spell'), - { dictionary: await import('dictionary-en'), personal: projectTerms }, - ], - await import('retext-syntax-urls'), -]); +// const naturalLanguage = unified().use([ +// await import('retext-english'), +// await import('retext-syntax-urls'), +// await import('retext-equality'), +// await import('retext-passive'), +// await import('retext-profanities'), +// [await import('retext-readability'), { age: 21, minWords: 8 }], +// await import('retext-repeated-words'), +// [ +// await import('retext-simplify'), +// { ignore: ['function', 'interface', 'maintain'] }, +// ], +// [await import('retext-sentence-spacing'), { preferred: 1 }], +// await import('retext-syntax-mentions'), +// [ +// await import('retext-spell'), +// { dictionary: await import('dictionary-en'), personal: projectTerms }, +// ], +// await import('retext-syntax-urls'), +// ]); export default { plugins: [ @@ -101,7 +101,7 @@ export default { // await import("remark-lint-are-links-valid"), // await import("@sfdocs-internal/remark-lint-no-dead-url"), await import('remark-lint-no-duplicate-headings-in-section'), - [await import('remark-retext'), naturalLanguage], + // [await import('remark-retext'), naturalLanguage], // Disables all rules that conflict with Prettier. Leave this preset at the // bottom so that it can't be overridden.