Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update remark-preset-lint-recommended 6.1.3 → 7.0.0 (major) #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Apr 17, 2024

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ remark-preset-lint-recommended (6.1.3 → 7.0.0) · Repo · Changelog

Release Notes

7.0.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 4 commits:

↗️ remark-lint-final-newline (indirect, 2.1.1 → 3.0.0) · Repo · Changelog

Release Notes

3.0.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 8 commits:

↗️ remark-lint-hard-break-spaces (indirect, 3.1.1 → 4.0.0) · Repo · Changelog

Release Notes

4.0.0

  • Add support for setting allowed file-name characters (fd908a4)
  • Fix parameters when using reset (b8f52a9)
  • Update list-item-spacing message (d562d6e)
  • Fix checkbox lists starting with links (019ff36)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ remark-lint-list-item-bullet-indent (indirect, 4.1.1 → 5.0.0) · Repo · Changelog

Release Notes

5.0.0

This is a big one: remark-lint no longer does anything without you telling it to.
The breaking part is reset and presets.

On the CLI, please start using remark-preset-lint-consistent, remark-preset-lint-recommended, and/or create and publish your own config!

Changes

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 5 commits:

↗️ remark-lint-list-item-indent (indirect, 3.1.1 → 4.0.0) · Repo · Changelog

Release Notes

4.0.0

  • Add support for setting allowed file-name characters (fd908a4)
  • Fix parameters when using reset (b8f52a9)
  • Update list-item-spacing message (d562d6e)
  • Fix checkbox lists starting with links (019ff36)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ remark-lint-no-blockquote-without-marker (indirect, 5.1.1 → 6.0.0) · Repo · Changelog

Release Notes

6.0.0

Hi! 👋

With 6.0.0, rules are no longer in the remark-lint package. In fact, remark lint doesn’t do much, other than controlling messages.

Rules are now each in their own package. You don’t have to npm install and .use() each package though, you can install and use presets instead. If you find yourself installing many rules to update, maybe create a preset too?

By giving more power to presets over the remark-lint package itself, I think rules, especially external rules, will prosper!

First off, if “presets” changed, the below diff shows how you can update:

 "dependencies": {
   "remark-cli": "^0.0.0",
   "remark-lint": "^0.0.0",
   "remark-preset-lint-consistent": "^0.0.0",
   // ...
 },
 "remarkConfig": {
-  "presets": ["lint-consistent"]
+  "plugins": ["preset-lint-consistent"]
 }

Second, if you used remark-lint directly, you need to change your config as follows.

 "dependencies": {
   "remark-cli": "^0.0.0",
   "remark-lint": "^0.0.0",
+  "remark-lint-unordered-list-marker-style": "^0.0.0",
+  "remark-lint-list-item-bullet-indent": "^0.0.0",
+  "remark-lint-no-multiple-toplevel-headings": "^0.0.0",
+  "remark-lint-maximum-line-length": "^0.0.0",
+  "remark-lint-maximum-heading-length": "^0.0.0",
+  "remark-lint-no-tabs": "^0.0.0",
   // ...
 },
 "remarkConfig": {
-  "plugins": {
-    "remark-lint": {
-    "unordered-list-marker-style": "consistent",
-    "list-item-bullet-indent": true,
-    "no-multiple-toplevel-headings": true,
-    "maximum-line-length": 9000,
-    "maximum-heading-length": 300,
-    "no-tabs": true,
-    //  ...
-  }
+  "plugins": [
+    "remark-lint",
+    ["remark-lint-unordered-list-marker-style", "consistent"],
+    "remark-lint-list-item-bullet-indent",
+    "remark-lint-no-multiple-toplevel-headings",
+    ["remark-lint-maximum-line-length", 9000],
+    ["remark-lint-maximum-heading-length", 300],
+    "remark-lint-no-tabs",
+    //  ...
+  ]

Finally, if you use remark on the API, change your code as follows:

var remark = require('remark');
var lint = require('remark-lint');
+var unorderedListMarkerStyle = require('remark-lint-unordered-list-marker-style');
+var listItemBulletIndent = require('remark-lint-list-item-bullet-indent');
+var noMultipleToplevelHeadings = require('remark-lint-no-multiple-toplevel-headings');

remark()
- .use(lint, {
- unorderedListMarkerStyle: 'consistent',
- listItemBulletIndent: true,
- noMultipleToplevelHeadings: true
- maximumLineLength: false
- })
+ .use(lint)
+ .use(unorderedListMarkerStyle, 'consistent')
+ .use(listItemBulletIndent)
+ .use(noMultipleToplevelHeadings)
// ...

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ remark-lint-no-duplicate-definitions (indirect, 3.1.1 → 4.0.0) · Repo · Changelog

Release Notes

4.0.0

  • Add support for setting allowed file-name characters (fd908a4)
  • Fix parameters when using reset (b8f52a9)
  • Update list-item-spacing message (d562d6e)
  • Fix checkbox lists starting with links (019ff36)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ remark-lint-no-heading-content-indent (indirect, 4.1.1 → 5.0.0) · Repo · Changelog

Release Notes

5.0.0

This is a big one: remark-lint no longer does anything without you telling it to.
The breaking part is reset and presets.

On the CLI, please start using remark-preset-lint-consistent, remark-preset-lint-recommended, and/or create and publish your own config!

Changes

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 5 commits:

↗️ remark-lint-no-literal-urls (indirect, 3.1.1 → 4.0.0) · Repo · Changelog

Release Notes

4.0.0

  • Add support for setting allowed file-name characters (fd908a4)
  • Fix parameters when using reset (b8f52a9)
  • Update list-item-spacing message (d562d6e)
  • Fix checkbox lists starting with links (019ff36)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ remark-lint-no-shortcut-reference-image (indirect, 3.1.1 → 4.0.0) · Repo · Changelog

Release Notes

4.0.0

  • Add support for setting allowed file-name characters (fd908a4)
  • Fix parameters when using reset (b8f52a9)
  • Update list-item-spacing message (d562d6e)
  • Fix checkbox lists starting with links (019ff36)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ remark-lint-no-shortcut-reference-link (indirect, 3.1.1 → 4.0.0) · Repo · Changelog

Release Notes

4.0.0

  • Add support for setting allowed file-name characters (fd908a4)
  • Fix parameters when using reset (b8f52a9)
  • Update list-item-spacing message (d562d6e)
  • Fix checkbox lists starting with links (019ff36)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ remark-lint-no-undefined-references (indirect, 4.2.0 → 5.0.0) · Repo · Changelog

Release Notes

5.0.0

This is a big one: remark-lint no longer does anything without you telling it to.
The breaking part is reset and presets.

On the CLI, please start using remark-preset-lint-consistent, remark-preset-lint-recommended, and/or create and publish your own config!

Changes

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 5 commits:

↗️ remark-lint-no-unused-definitions (indirect, 3.1.1 → 4.0.0) · Repo · Changelog

Release Notes

4.0.0

  • Add support for setting allowed file-name characters (fd908a4)
  • Fix parameters when using reset (b8f52a9)
  • Update list-item-spacing message (d562d6e)
  • Fix checkbox lists starting with links (019ff36)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

🆕 character-entities-html4 (added, 2.1.0)

🆕 character-entities-legacy (added, 3.0.0)

🆕 character-reference-invalid (added, 2.0.1)

🆕 collapse-white-space (added, 2.1.0)

🆕 is-alphabetical (added, 2.0.1)

🆕 is-alphanumerical (added, 2.0.1)

🆕 is-decimal (added, 2.0.1)

🆕 is-hexadecimal (added, 2.0.1)

🆕 mdast-util-directive (added, 3.0.0)

🆕 parse-entities (added, 4.0.1)

🆕 space-separated-tokens (added, 2.0.2)

🆕 stringify-entities (added, 4.0.4)

🗑️ remark-lint-no-inline-padding (removed)


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added depfu enhancement New feature or request labels Apr 17, 2024
@depfu depfu bot assigned fmalk Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depfu enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant