-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bump up remark
dependencies and support only ESM
#6
Conversation
[`remark@14`](https://github.com/remarkjs/remark/releases/tag/14.0.0) has been supported only ESM. So, this package needs to become ESM to bump up `remark` dependencies. Here are the installation commands: ```shell npm install \ remark-cli@latest \ remark-frontmatter@latest \ remark-preset-lint-recommended@latest \ remark-preset-prettier@latest \ remark-validate-links@latest npm install 'github:stylelint/eslint-config-stylelint#esm' ``` Note that this change needs the ESLint configuration for ESM. See <stylelint/eslint-config-stylelint#133>
The CI failure is due to the
https://github.com/stylelint/remark-preset/pull/6/checks?check_run_id=3327452284#step:6:24 It seems that the problem is caused by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's bump the prettier preset to the just-released 1.0.0, then I think we're good.
(Thanks for raising an issue upstream and getting that compatible version out.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Feel free to merge and release.
@@ -9,9 +9,11 @@ | |||
"repository": "stylelint/remark-preset", | |||
"license": "MIT", | |||
"author": "stylelint", | |||
"main": "index.js", | |||
"type": "module", | |||
"exports": "./index.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[note] main
is replaced with exports
via 1ebb623. See the guide "Pure ESM package".
None.
remark@14
has been supported only ESM. So, this package needs to become ESM to bump upremark
dependencies.Here are the installation commands:
npm install \ remark-cli@latest \ remark-frontmatter@latest \ remark-preset-lint-recommended@latest \ remark-preset-prettier@latest \ remark-validate-links@latest npm install 'github:stylelint/eslint-config-stylelint#esm'
Note that this change needs the ESLint configuration for ESM. See stylelint/eslint-config-stylelint#133