Skip to content

Commit 2a1b438

Browse files
committed
Update to remark-cli version 11.0.0
Update to the currently latest `remark-cli` major version `11` [1] which comes with minimal breaking changes and does not require any migration steps. This includes updates to the used packages, including... - `remark-footnotes` [6] - `^1.0.0` → major version `4` [8] - Now supports ESM [5]. - `remark-frontmatter` [7] - `^1.0.0` → major version `4` [9] - Now supports ESM [5]. - `remark-gfm` [1] - `^1.0.0` → major version `3` [3] - Now supports ESM [5]. - Added support for GFM footnotes [4]. - `remark-lint` [10] - `^8.0.0` → major version `9` [11] - Now supports ESM [5]. The following plugins have also been updated and now support ESM [5]: - `remark-lint-blockquote-indentation` - `remark-lint-checkbox-character-style` - `remark-lint-checkbox-content-indent` - `remark-lint-code-block-style` - `remark-lint-definition-case` - `remark-lint-definition-spacing` - `remark-lint-emphasis-marker` - `remark-lint-fenced-code-flag` - `remark-lint-fenced-code-marker` - `remark-lint-file-extension` - `remark-lint-final-definition` - `remark-lint-final-newline` - `remark-lint-first-heading-level` - `remark-lint-hard-break-spaces` - `remark-lint-heading-increment` - `remark-lint-heading-style` - `remark-lint-linebreak-style` - `remark-lint-link-title-style` - `remark-lint-list-item-bullet-indent` - `remark-lint-list-item-content-indent` - `remark-lint-list-item-indent` - `remark-lint-list-item-spacing` - `remark-lint-maximum-heading-length` - `remark-lint-maximum-line-length` - `remark-lint-no-auto-link-without-protocol` - `remark-lint-no-blockquote-without-marker` - `remark-lint-no-consecutive-blank-lines` - `remark-lint-no-duplicate-defined-urls` - `remark-lint-no-duplicate-definitions` - `remark-lint-no-duplicate-headings-in-section` - `remark-lint-no-duplicate-headings` - `remark-lint-no-emphasis-as-heading` - `remark-lint-no-empty-url` - `remark-lint-no-file-name-articles` - `remark-lint-no-file-name-consecutive-dashes` - `remark-lint-no-file-name-irregular-characters` - `remark-lint-no-file-name-mixed-case` - `remark-lint-no-file-name-outer-dashes` - `remark-lint-no-heading-content-indent` - `remark-lint-no-heading-indent` - `remark-lint-no-heading-like-paragraph` - `remark-lint-no-heading-punctuation` - `remark-lint-no-html` - `remark-lint-no-inline-padding` - `remark-lint-no-literal-urls` - `remark-lint-no-missing-blank-lines` - `remark-lint-no-multiple-toplevel-headings` - `remark-lint-no-paragraph-content-indent` - `remark-lint-no-reference-like-url` - `remark-lint-no-shell-dollars` - `remark-lint-no-shortcut-reference-image` - `remark-lint-no-shortcut-reference-link` - `remark-lint-no-table-indentation` - `remark-lint-no-tabs` - `remark-lint-no-undefined-references` - `remark-lint-no-unneeded-full-reference-image` - `remark-lint-no-unneeded-full-reference-link` - `remark-lint-no-unused-definitions` - `remark-lint-ordered-list-marker-style` - `remark-lint-ordered-list-marker-value` - `remark-lint-rule-style` - `remark-lint-strikethrough-marker` - `remark-lint-strong-marker` - `remark-lint-table-cell-padding` - `remark-lint-table-pipe-alignment` - `remark-lint-table-pipes` - `remark-lint-unordered-list-marker-style` [1]: https://github.com/remarkjs/remark/releases/tag/remark-cli%4011.0.0 [2]: https://github.com/remarkjs/remark-gfm [3]: https://github.com/remarkjs/remark-gfm/releases/tag/3.0.0 [4]: https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields [5]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [6]: https://github.com/remarkjs/remark-footnotes [7]: https://github.com/remarkjs/remark-frontmatter [8]: https://github.com/remarkjs/remark-footnotes/releases/tag/4.0.0 [9]: https://github.com/remarkjs/remark-frontmatter/releases/tag/4.0.0 [10]: https://github.com/remarkjs/remark-lint [11]: https://github.com/remarkjs/remark-frontmatter/releases/tag/9.0.0 GH-65
1 parent a49a808 commit 2a1b438

34 files changed

+1995
-4226
lines changed

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ node_modules/
1111
# ESLint automatically applies ignore pattern for "dotfiles" by default to prevent accidentally lint over paths like
1212
# `.git` or any other critical paths.
1313
!**/.eslintrc.js
14-
!.remarkrc.js
14+
!.remarkrc.mjs

.remarkrc.js renamed to .remarkrc.mjs

+3-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
* @see https://github.com/remarkjs/remark-lint
99
* @see https://remark.js.org
1010
*/
11-
module.exports = {
12-
plugins: [
13-
"./packages/@svengreb/remark-preset-lint/index.js",
14-
/* Disabled to suppress warnings about duplicate "Example" headings. */
15-
["remark-lint-no-duplicate-headings", false],
16-
],
11+
12+
export default {
13+
plugins: ["./packages/@svengreb/remark-preset-lint/index.js"],
1714
};

lint-staged.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
module.exports = {
1111
"*.{json,yaml}": "prettier --check --ignore-unknown --no-editorconfig",
12-
"*.js": ["eslint", "prettier --check --ignore-unknown --no-editorconfig"],
12+
"*.{js,mjs}": ["eslint", "prettier --check --ignore-unknown --no-editorconfig"],
1313
"*.md": ["remark --no-stdout", "prettier --check --ignore-unknown --no-editorconfig"],
1414
".husky/pre-*": "prettier --check --ignore-unknown --no-editorconfig",
1515
};

0 commit comments

Comments
 (0)