Skip to content

Commit

Permalink
Merge branch 'main' into feat/vision-trans-serbian-latn
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekNonGeneric authored Oct 22, 2023
2 parents b056309 + 3c9b333 commit 0626d79
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .remarkrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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: [
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 0626d79

Please sign in to comment.