AlexRogalskiy / typescript-tools

Collection of TypeScript tools & utilities
GNU General Public License v3.0
2 stars 0 forks source link

:arrow_up: Updates remark-preset-lint-recommended to v6 - autoclosed #2301

Closed renovate[bot] closed 9 months ago

renovate[bot] commented 1 year ago

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
remark-preset-lint-recommended ^5.0.0 -> ^6.0.0 age adoption passing confidence

Release Notes

remarkjs/remark-lint (remark-preset-lint-recommended) ### [`v6.1.3`](https://togithub.com/remarkjs/remark-lint/compare/5269b64da47b82874c317f83e1e0f4cbead91785...639271aed95fa579623f385bade4939a9c70e959) [Compare Source](https://togithub.com/remarkjs/remark-lint/compare/5269b64da47b82874c317f83e1e0f4cbead91785...639271aed95fa579623f385bade4939a9c70e959) ### [`v6.1.2`](https://togithub.com/remarkjs/remark-lint/compare/remark-preset-lint-recommended@6.1.1...5269b64da47b82874c317f83e1e0f4cbead91785) [Compare Source](https://togithub.com/remarkjs/remark-lint/compare/remark-preset-lint-recommended@6.1.1...5269b64da47b82874c317f83e1e0f4cbead91785) ### [`v6.1.1`](https://togithub.com/remarkjs/remark-lint/releases/tag/remark-preset-lint-recommended%406.1.1) [Compare Source](https://togithub.com/remarkjs/remark-lint/compare/201e9950440ab3abce83e755af180f6b2016affc...remark-preset-lint-recommended@6.1.1) - [`c5c3832`](https://togithub.com/remarkjs/remark-lint/commit/c5c3832) Mark `no-auto-link-without-protocol` as deprecated ### [`v6.0.0`](https://togithub.com/remarkjs/remark-lint/releases/tag/6.0.0) [Compare Source](https://togithub.com/remarkjs/remark-lint/compare/remark-preset-lint-recommended@5.0.0...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](https://togithub.com/wooorm/remark-lint#configuring-remark-lint). Rules are now each in their own [package](https://togithub.com/wooorm/remark-lint/tree/master/packages). You don’t have to `npm install` and `.use()` each package though, you can install and use [presets](https://togithub.com/wooorm/remark-lint#list-of-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: ```diff "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. ```diff "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: ```diff 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) // ... ```

Configuration

πŸ“… Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Moscow, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

β™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


changelogg[bot] commented 1 year ago

Hey! Changelogs info seems to be missing or might be in incorrect format. Please use the below template in PR description to ensure Changelogg can detect your changes:

    - (tag) changelog_text
or
```
- tag: changelog_text
```
**OR**
You can add tag in PR header or while doing a commit too
```    
(tag) PR header
```
or
```
tag: PR header
```
Valid tags: **added** / **feat**, **changed**, **deprecated**, **fixed** / **fix**, **removed**, **security**, **build**, **ci**, **chore**, **docs**, **perf**, **refactor**, **revert**, **style**, **test**
Thanks!
For more info, check out [changelogg docs](https://docs.changelogg.io/)
viezly[bot] commented 1 year ago

Pull request by bot. No need to analyze

socket-security[bot] commented 1 year ago

New dependency changes detected. Learn more about Socket for GitHub β†—οΈŽ

πŸ‘ No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts βœ… 0 issues
Native code βœ… 0 issues
Bin script shell injection βœ… 0 issues
Unresolved require βœ… 0 issues
Invalid package.json βœ… 0 issues
HTTP dependency βœ… 0 issues
Git dependency βœ… 0 issues
Potential typo squat βœ… 0 issues
Known Malware βœ… 0 issues
Telemetry βœ… 0 issues
Protestware/Troll package βœ… 0 issues

πŸ“Š Modified Dependency Overview:

⬆️ Updated Package Version Diff Capability Access +/- Transitive Count Publisher
remark-preset-lint-recommended@6.1.2 5.0.0...6.1.2 None +74/-21 wooorm
github-actions[bot] commented 1 year ago

Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md.

github-actions[bot] commented 1 year ago

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

github-actions[bot] commented 1 year ago

Thanks for the PR!

This section of the codebase is owner by https://github.com/AlexRogalskiy/ - if they write a comment saying "LGTM" then it will be merged.