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

chore(deps-dev): bump markdownlint from 0.36.1 to 0.37.3 #135

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 6, 2025

Changes included (from @JoyceZhu):

  • Manually convert all import/export styles from CommonJS to ESM
  • Various filename changes required
  • Update README to use ESM syntax/examples
  • package.json changes for ESM
  • eslint config changes to respect that ESM imports need to reference the file extension in the path without further work
  • change to lodash-es since the original lodash library is CommonJS-only
  • change markdownlint-cli2 calls to new async implementations
  • Updating .nvmrc since I was already here
  • can't directly import JSON files -- convert those to manual file reads
  • CLI parameter + Jest config changes to get Jest to also accept ESM

Bumps markdownlint from 0.36.1 to 0.37.3.

Changelog

Sourced from markdownlint's changelog.

0.37.3

  • Tweak package.json dependencies to work with pnpm

0.37.2

  • Add subpath imports for overriding default bundler behavior
  • Improve MD032

0.37.1

  • Add support for "browser" condition (as used by webpack)

0.37.0

Commits
  • 74b1c19 Update to version 0.37.3.
  • ef70472 Make micromark-core-commonmark a direct dependency to satisfy strict dependen...
  • 795eac2 Add CI job that verifies tests pass when using pnpm (vs. npm).
  • df33933 Update export test to avoid "ExperimentalWarning: Importing JSON modules is a...
  • 8e5f699 Bump webpack-cli from 6.0.0 to 6.0.1
  • 92eb425 Bump eslint-plugin-n from 17.15.0 to 17.15.1
  • 1587927 Bump webpack-cli from 5.1.4 to 6.0.0
  • a1081ec Add "bundler" and "subpath" to dictionary.txt.
  • 5fad452 Update to version 0.37.2.
  • baf4944 Add subpath imports "markdownlint-imports-browser" and "markdownlint-imports-...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [markdownlint](https://github.com/DavidAnson/markdownlint) from 0.36.1 to 0.37.3.
- [Changelog](https://github.com/DavidAnson/markdownlint/blob/main/CHANGELOG.md)
- [Commits](DavidAnson/markdownlint@v0.36.1...v0.37.3)

---
updated-dependencies:
- dependency-name: markdownlint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner January 6, 2025 05:26
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 6, 2025
@dependabot dependabot bot requested a review from accessibility-bot January 6, 2025 05:26
index.js Outdated
return foo;
}

// export default githubMarkdownLint;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't seem to export destructures in ESM, static vs dynamic?

@@ -1,19 +1,20 @@
const _ = require("lodash");
import _ from "lodash-es";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regular lodash is synchronous

package.json Outdated
"directories": {
"test": "test"
},
"scripts": {
"publish": "npm publish --access public --@github:registry=https://registry.npmjs.org",
"test": "npm run lint && jest",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jest needs this to enable ESM

package.json Outdated
"markdownlint": "^0.36.1",
"markdownlint-cli2": "^0.16.0"
"markdownlint": "^0.37.3",
"markdownlint-cli2": "^0.17.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cli2 previous version seemed incompatible w/new markdownlint

@@ -1,6 +1,6 @@
const markdownlint = require("markdownlint");
import { lint } from "markdownlint/async";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs new function now

@lindseywild
Copy link
Contributor

lindseywild commented Jan 13, 2025

@JoyceZhu should I remove this from the FR queue until you're ready for a review? Or is there anything I can do to assist?

Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 20, 2025

A newer version of markdownlint exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Copy link
Contributor

@lindseywild lindseywild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! I didn't see anything glaring, and old files seemed to be migrated properly from what I can tell!

Copy link
Contributor

@khiga8 khiga8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Thank you for your persistence on this!

I just had a few questions :)

"no-generic-link-text": true,
"ul-style": {
style: "asterisk",
},
default: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does default: false turn off all the rules by default-enabled rules?
I'm wondering why we need to explicitly set individual rules to false if default: false.

@@ -0,0 +1,15 @@
import { init } from "./index.js";

const configOptions = await init({
Copy link
Contributor

@khiga8 khiga8 Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was about to recommend pointing of our projects to this branch to make sure things run as expected with this big change/new setup, but it seems like this basically acts like a test? Would it be worth testing this change out in one of our larger repos that uses this project by pointing to this branch?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, my understanding after reading for awhile is that we only have this file/use markdownlint-cli2 so we can run our own linting setup against the files in this repo (meta-testing, I guess).

Copy link
Contributor

@khiga8 khiga8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 💟

@JoyceZhu JoyceZhu force-pushed the dependabot/npm_and_yarn/markdownlint-0.37.3 branch from 021ee10 to 3ae5b70 Compare January 22, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants