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.