Skip to content

Commit

Permalink
maint/dev ~ update Remark markdown-linting configuration and plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Feb 10, 2021
1 parent 3c58a5d commit 7c3c1b9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .remarkrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// spell-checker:ignore frontmatter retext
exports.plugins = [
require('remark-footnotes'),
// require('remark-frontmatter'),
[
require('remark-retext'),
require('unified')().use({
plugins: [
require('retext-english'),
require('retext-syntax-urls'),
// [require('retext-spell'), require('dictionary-en')],
[require('retext-sentence-spacing'), { preferred: 1 }],
require('retext-repeated-words'),
require('retext-passive'),
],
}),
],
'remark-preset-lint-consistent',
'remark-preset-lint-recommended',
'remark-preset-lint-markdown-style-guide',
['remark-lint-emphasis-marker', 'consistent'],
['remark-lint-file-extension', false],
['remark-lint-heading-increment', false],
['remark-lint-list-item-indent', 'mixed'],
['remark-lint-maximum-line-length', false],
['remark-lint-no-duplicate-headings', false],
['remark-lint-unordered-list-marker-style', 'consistent'],
];
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,23 @@
"prettier": "^2.1.1",
"remark-cli": "^9.0.0",
"remark-footnotes": "^3.0.0",
"remark-preset-lint-consistent": "^4.0.0",
"remark-preset-lint-markdown-style-guide": "^4.0.0",
"remark-preset-lint-recommended": "^5.0.0",
"remark-retext": "^4.0.0",
"retext-english": "^3.0.4",
"retext-passive": "^3.0.0",
"retext-repeated-words": "^3.0.0",
"retext-sentence-spacing": "^4.0.0",
"retext-syntax-urls": "^2.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.36.1",
"rollup-plugin-typescript2": "^0.29.0",
"shx": "^0.3.3",
"ts-node": "^9.0.0",
"tsd": "^0.14.0",
"typescript": "^4.1.3"
"typescript": "^4.1.3",
"unified": "^9.2.0"
},
"optionalDependencies": {},
"ava": {
Expand Down

0 comments on commit 7c3c1b9

Please sign in to comment.