Skip to content

Commit bfd88bf

Browse files
committed
Remark-compose-configs isn't needed
1 parent e545f11 commit bfd88bf

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

remark/remark-compose-configs.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

specs/.remarkrc-build.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import remarkTorchLight from "remark-torchlight";
55
import remarkRehype from "remark-rehype";
66
import rehypeStringify from "rehype-stringify";
77
import rehypeDocument from "rehype-document";
8-
import { composeConfigs } from "../remark/remark-compose-configs.js";
9-
import specsConfig from "./.remarkrc-specs.js";
8+
import specsPreset from "./.remarkrc-specs.js";
109

1110

1211
dotenv.config();
1312

14-
export default composeConfigs(specsConfig, {
13+
export default {
1514
plugins: [
15+
specsPreset,
1616
remarkTorchLight,
1717
remarkRehype,
1818
[rehypeDocument, {
@@ -26,4 +26,4 @@ export default composeConfigs(specsConfig, {
2626
}
2727
}
2828
]
29-
});
29+
};

specs/.remarkrc.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
import { composeConfigs } from "../remark/remark-compose-configs.js";
2-
import specConfig from "./.remarkrc-specs.js";
3-
import lintConfig from "../.remarkrc-lint.js";
1+
import specPreset from "./.remarkrc-specs.js";
2+
import lintPreset from "../.remarkrc-lint.js";
43

54

6-
export default composeConfigs(specConfig, lintConfig);
5+
export default {
6+
plugins: [
7+
specPreset,
8+
lintPreset
9+
]
10+
};

0 commit comments

Comments
 (0)