Skip to content

Commit

Permalink
Update to remark-cli version 11.0.0 (#66)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
svengreb authored Apr 26, 2023
1 parent a49a808 commit 57d2f2c
Show file tree
Hide file tree
Showing 34 changed files with 1,995 additions and 4,226 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ node_modules/
# ESLint automatically applies ignore pattern for "dotfiles" by default to prevent accidentally lint over paths like
# `.git` or any other critical paths.
!**/.eslintrc.js
!.remarkrc.js
!.remarkrc.mjs
9 changes: 3 additions & 6 deletions .remarkrc.js → .remarkrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
* @see https://github.com/remarkjs/remark-lint
* @see https://remark.js.org
*/
module.exports = {
plugins: [
"./packages/@svengreb/remark-preset-lint/index.js",
/* Disabled to suppress warnings about duplicate "Example" headings. */
["remark-lint-no-duplicate-headings", false],
],

export default {
plugins: ["./packages/@svengreb/remark-preset-lint/index.js"],
};
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
module.exports = {
"*.{json,yaml}": "prettier --check --ignore-unknown --no-editorconfig",
"*.js": ["eslint", "prettier --check --ignore-unknown --no-editorconfig"],
"*.{js,mjs}": ["eslint", "prettier --check --ignore-unknown --no-editorconfig"],
"*.md": ["remark --no-stdout", "prettier --check --ignore-unknown --no-editorconfig"],
".husky/pre-*": "prettier --check --ignore-unknown --no-editorconfig",
};
Loading

0 comments on commit 57d2f2c

Please # to comment.