Skip to content

Commit

Permalink
Bump up remark dependencies and support only ESM
Browse files Browse the repository at this point in the history
[`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>
  • Loading branch information
ybiquitous committed Aug 14, 2021
1 parent fbd22eb commit 453cc74
Show file tree
Hide file tree
Showing 4 changed files with 2,917 additions and 1,277 deletions.
12 changes: 5 additions & 7 deletions .remarkrc.js
@@ -1,10 +1,8 @@
'use strict';

module.exports = {
export default {
plugins: [
require('remark-frontmatter'),
require('remark-preset-lint-recommended'),
require('remark-validate-links'),
require('remark-preset-prettier'),
'remark-frontmatter',
'remark-preset-lint-recommended',
'remark-validate-links',
'remark-preset-prettier',
],
};
4 changes: 1 addition & 3 deletions index.js
@@ -1,3 +1 @@
'use strict';

module.exports = require('./.remarkrc.js');
export { default } from './.remarkrc.js';

0 comments on commit 453cc74

Please sign in to comment.