Skip to content

Commit 5bafcd9

Browse files
committed
chore: add @1stg/remark-preset back
1 parent 59a815f commit 5bafcd9

File tree

9 files changed

+1395
-422
lines changed

9 files changed

+1395
-422
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212

1313
jobs:
1414
ci:
15-
name: Lint and Test on Node ${{ matrix.node-version }} (ESLint ${{ matrix.eslint }})
15+
name: Lint and Test on Node ${{ matrix.node-version }} (ESLint ${{ matrix.eslint-version }})
1616
runs-on: ubuntu-latest
1717
strategy:
1818
fail-fast: false
@@ -21,14 +21,14 @@ jobs:
2121
- 22
2222
- 20
2323
- 18
24-
eslint:
24+
eslint-version:
2525
- 9
2626
- 8
2727
include:
2828
- node-version: 16
29-
eslint: 8
29+
eslint-version: 8
3030
- node-version: 14
31-
eslint: 8
31+
eslint-version: 8
3232

3333
steps:
3434
- uses: actions/checkout@v4
@@ -45,8 +45,9 @@ jobs:
4545
run: pnpm install
4646

4747
- name: Install ESLint ${{ matrix.node-version }}
48-
if: ${{ matrix.eslint != 9 }}
49-
run: pnpm install eslint@${{ matrix.eslint }} eslint-plugin-svelte@2 svelte@3 eslint-mdx@2 eslint-plugin-mdx@2 --save-dev
48+
if: ${{ matrix.eslint-version != 9 }}
49+
run: |
50+
pnpm install -D eslint@${{ matrix.eslint-version }} @types/eslint@${{ matrix.eslint-version }} eslint-plugin-svelte@2 svelte@3
5051
5152
- name: Test
5253
run: pnpm mocha

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
20

.remarkrc

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

.remarkrc.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import preset from '@1stg/remark-preset';
2+
3+
export default {
4+
plugins: [preset],
5+
};

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"synckit": "^0.9.1"
6868
},
6969
"devDependencies": {
70+
"@1stg/remark-preset": "^3.0.0",
7071
"@changesets/changelog-github": "^0.5.0",
7172
"@changesets/cli": "^2.27.1",
7273
"@commitlint/config-conventional": "^18.4.3",
@@ -75,23 +76,22 @@
7576
"@graphql-eslint/eslint-plugin": "^3.20.1",
7677
"@html-eslint/parser": "^0.24.1",
7778
"@prettier/plugin-pug": "^3.0.0",
78-
"@types/eslint": "^8.56.0",
7979
"@types/prettier-linter-helpers": "^1.0.4",
8080
"commitlint": "^18.4.3",
8181
"eslint": "^9.21.0",
82-
"eslint-config-prettier": "^9.1.0",
82+
"eslint-config-prettier": "^10.1.1",
8383
"eslint-formatter-friendly": "^7.0.0",
8484
"eslint-mdx": "^3.1.5",
8585
"eslint-plugin-eslint-plugin": "^5.2.1",
86-
"eslint-plugin-mdx": "^3.1.5",
86+
"eslint-plugin-mdx": "^3.2.0",
8787
"eslint-plugin-n": "^16.5.0",
8888
"eslint-plugin-prettier": "link:.",
8989
"eslint-plugin-pug": "^1.2.5",
9090
"eslint-plugin-svelte": "^3.0.2",
9191
"graphql": "^16.8.1",
9292
"lint-staged": "^15.2.0",
9393
"mocha": "^10.2.0",
94-
"prettier": "^3.1.1",
94+
"prettier": "^3.5.3",
9595
"prettier-plugin-pkg": "^0.18.0",
9696
"prettier-plugin-svelte": "^3.1.2",
9797
"simple-git-hooks": "^2.9.0",
@@ -100,10 +100,10 @@
100100
},
101101
"pnpm": {
102102
"patchedDependencies": {
103-
"@types/eslint@8.56.0": "patches/@types__eslint@8.56.0.patch"
103+
"unified-engine@11.2.2": "patches/unified-engine@11.2.2.patch"
104104
},
105105
"overrides": {
106-
"prettier": "^3.1.1"
106+
"prettier": "^3.5.3"
107107
}
108108
}
109109
}

patches/@types__eslint@8.56.0.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
diff --git a/lib/configuration.js b/lib/configuration.js
2+
index 77f3969c1c583c5869f636076c15892d7f2da18f..48b3df03392ab1aafb5e714f39c015e2633ee0e2 100644
3+
--- a/lib/configuration.js
4+
+++ b/lib/configuration.js
5+
@@ -78,7 +78,7 @@
6+
* Shared settings for parsers and compilers (optional).
7+
*/
8+
9+
-import assert from 'node:assert/strict'
10+
+import assert from 'node:assert'
11+
import path from 'node:path'
12+
import {fileURLToPath, pathToFileURL} from 'node:url'
13+
import extend from 'extend'
14+
diff --git a/lib/file-pipeline/stringify.js b/lib/file-pipeline/stringify.js
15+
index d5e4e0d6d59ba76d72dc394b42e6e890a5d5e48e..01f0cf74a806ba17047b5e7f1587671cce38bbe5 100644
16+
--- a/lib/file-pipeline/stringify.js
17+
+++ b/lib/file-pipeline/stringify.js
18+
@@ -3,7 +3,7 @@
19+
* @import {Context} from './index.js'
20+
*/
21+
22+
-import assert from 'node:assert/strict'
23+
+import assert from 'node:assert'
24+
import createDebug from 'debug'
25+
import {inspectColor, inspectNoColor} from 'unist-util-inspect'
26+
import {statistics} from 'vfile-statistics'
27+
diff --git a/lib/file-pipeline/transform.js b/lib/file-pipeline/transform.js
28+
index a80702c25b5c6f6ffff52829a7bf98fe5f87cb3d..d6489b46bc5a113a14cfa4ab12c9a7aca1a777ea 100644
29+
--- a/lib/file-pipeline/transform.js
30+
+++ b/lib/file-pipeline/transform.js
31+
@@ -4,7 +4,7 @@
32+
* @import {Context} from './index.js'
33+
*/
34+
35+
-import assert from 'node:assert/strict'
36+
+import assert from 'node:assert'
37+
import createDebug from 'debug'
38+
import {statistics} from 'vfile-statistics'
39+
40+
diff --git a/lib/find-up.js b/lib/find-up.js
41+
index 81623700c8b53572ca7b0dd3e6d7c239b027d50c..9ff6176124f26f028c20d9142184e16cd8a5357d 100644
42+
--- a/lib/find-up.js
43+
+++ b/lib/find-up.js
44+
@@ -48,7 +48,7 @@
45+
* Turn a found file into a value.
46+
*/
47+
48+
-import assert from 'node:assert/strict'
49+
+import assert from 'node:assert'
50+
import fs from 'node:fs'
51+
import path from 'node:path'
52+
import {fileURLToPath} from 'node:url'

0 commit comments

Comments
 (0)