Skip to content

Commit d67d418

Browse files
committed
ci: migrate to codecov-action, use node protocol for builtins
1 parent dfa23d2 commit d67d418

File tree

10 files changed

+925
-765
lines changed

10 files changed

+925
-765
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,4 @@ jobs:
4444
PARSER_NO_WATCH: true
4545

4646
- name: Codecov
47-
if: matrix.os != 'windows-latest'
48-
run: |
49-
yarn global add codecov
50-
codecov
47+
uses: codecov/codecov-action@v3

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@
2626
"typecov": "type-coverage"
2727
},
2828
"devDependencies": {
29-
"@1stg/lib-config": "^6.1.0",
29+
"@1stg/lib-config": "^6.1.1",
3030
"@types/eslint": "^8.4.2",
3131
"@types/eslint-plugin-markdown": "^2.0.0",
3232
"@types/jest": "^27.5.1",
33-
"@types/node": "^17.0.33",
33+
"@types/node": "^17.0.35",
3434
"@types/react": "^18.0.9",
3535
"@types/unist": "^2.0.6",
3636
"lerna": "^4.0.0",
3737
"patch-package": "^6.4.7",
3838
"react": "^18.1.0",
3939
"ts-jest": "^28.0.2",
40-
"ts-node": "^10.7.0",
40+
"ts-node": "^10.8.0",
4141
"type-coverage": "^2.21.1",
4242
"typescript": "^4.6.4"
4343
},

packages/eslint-mdx/src/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable unicorn/no-await-expression-member */
2-
import fs from 'fs'
3-
import path from 'path'
4-
import { pathToFileURL } from 'url'
2+
import fs from 'node:fs'
3+
import path from 'node:path'
4+
import { pathToFileURL } from 'node:url'
55

66
import type { Position } from 'acorn'
77
import { createSyncFn } from 'synckit'

packages/eslint-mdx/src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import path from 'node:path'
22

33
import type { Linter } from 'eslint'
44
import type { VFileMessage } from 'vfile-message'

packages/eslint-mdx/src/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/consistent-type-imports */
22
/* eslint-disable unicorn/no-await-expression-member */
3-
import path from 'path'
4-
import { pathToFileURL } from 'url'
3+
import path from 'node:path'
4+
import { pathToFileURL } from 'node:url'
55

66
import type { Token, TokenType, tokTypes as _tokTypes } from 'acorn'
77
import { cosmiconfig } from 'cosmiconfig'

packages/eslint-plugin-mdx/src/rules/remark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import path from 'node:path'
22

33
import type { Rule } from 'eslint'
44
import type { ParserOptions } from 'eslint-mdx'

test/fixtures.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import path from 'node:path'
22

33
import { ESLint } from 'eslint'
44

test/helpers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import path from 'node:path'
22

33
import { arrayify, requirePkg } from 'eslint-mdx'
44
import { getGlobals, getShortLang } from 'eslint-plugin-mdx'

test/remark.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { homedir } from 'os'
2-
import path from 'path'
1+
import { homedir } from 'node:os'
2+
import path from 'node:path'
33

44
import {
55
parser,

yarn.lock

Lines changed: 910 additions & 747 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)