Skip to content

Commit 1c31834

Browse files
authored
chore: hourcekeeping, bump all (dev) deps (#552)
1 parent 07f9d03 commit 1c31834

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+6967
-6417
lines changed

.changeset/shaggy-planes-warn.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
"eslint-mdx": minor
3+
"eslint-plugin-mdx": minor
4+
---
5+
6+
feat: the new version is ESM primary, while commonjs is still supported.
7+
8+
ESM migration:
9+
10+
```ts
11+
// before
12+
import eslintMdx from "eslint-mdx"
13+
import eslintPluginMdx from "eslint-plugin-mdx"
14+
```
15+
16+
```ts
17+
// after
18+
import * as eslintMdx from "eslint-mdx"
19+
import * as eslintPluginMdx from "eslint-plugin-mdx"
20+
```

.editorconfig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
root = true
1+
root=true
22

33
[*]
4-
indent_style = space
5-
indent_size = 2
6-
tab_width = 2
7-
end_of_line = lf
8-
charset = utf-8
9-
trim_trailing_whitespace = true
10-
insert_final_newline = true
4+
indent_style=space
5+
indent_size=2
6+
tab_width=2
7+
end_of_line=lf
8+
charset=utf-8
9+
trim_trailing_whitespace=true
10+
insert_final_newline=true

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,50 @@ concurrency:
1010

1111
jobs:
1212
ci:
13-
name: Lint and Test with Node.js ${{ matrix.node }} on ${{ matrix.os }}
13+
name: Lint and Test with Node.js ${{ matrix.node }} and ESLint ${{ matrix.eslint }} on ${{ matrix.os }}
1414
strategy:
1515
matrix:
1616
os:
1717
- macos-latest
1818
- ubuntu-latest
1919
- windows-latest
2020
node:
21-
- 18
2221
- 20
22+
- 22
23+
- 22
24+
eslint:
25+
- 8
26+
- 9
2327
fail-fast: false
2428
runs-on: ${{ matrix.os }}
2529
steps:
2630
- name: Checkout Repo
2731
uses: actions/checkout@v4
2832

29-
- name: Enable Corepack
30-
run: corepack enable
31-
3233
- name: Setup Node.js ${{ matrix.node }}
3334
uses: actions/setup-node@v4
3435
with:
3536
node-version: ${{ matrix.node }}
3637
cache: yarn
37-
env:
38-
# https://github.com/actions/setup-node/issues/531#issuecomment-1819151412
39-
SKIP_YARN_COREPACK_CHECK: 1
4038

4139
- name: Install Dependencies
4240
run: yarn --immutable
43-
env:
44-
SKIP_YARN_COREPACK_CHECK: 1
41+
42+
- name: Install ESLint 8
43+
if: ${{ matrix.eslint == 8 }}
44+
run: |
45+
yarn add -D eslint@${{ matrix.eslint }} @types/eslint@9
46+
yarn set resolution eslint-plugin-unicorn@npm:^57.0.0 npm:^56
4547
4648
- name: Build, Lint and Test
4749
run: |
50+
yarn build
4851
yarn lint
4952
yarn test
5053
env:
51-
EFF_NO_LINK_RULES: true
5254
PARSER_NO_WATCH: true
53-
SKIP_YARN_COREPACK_CHECK: 1
5455

5556
- name: Codecov
56-
uses: codecov/codecov-action@v3
57+
uses: codecov/codecov-action@v5
58+
with:
59+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: CodeQL
22

33
on:
4-
push:
5-
pull_request:
4+
push: null
5+
pull_request: null
66
schedule:
77
- cron: '41 19 * * 6'
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
analyze:
1115
name: Analyze

.github/workflows/pkg-size.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Enable Corepack
22-
run: corepack enable
23-
2421
- name: Setup Node.js LTS
2522
uses: actions/setup-node@v4
2623
with:

.github/workflows/release.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
release:
1014
name: Release
@@ -16,28 +20,18 @@ jobs:
1620
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1721
fetch-depth: 0
1822

19-
- name: Enable Corepack
20-
run: corepack enable
21-
2223
- name: Setup Node.js LTS
2324
uses: actions/setup-node@v4
2425
with:
2526
node-version: lts/*
2627
cache: yarn
27-
env:
28-
# https://github.com/actions/setup-node/issues/531#issuecomment-1819151412
29-
SKIP_YARN_COREPACK_CHECK: 1
3028

3129
- name: Install Dependencies
3230
run: yarn --immutable
33-
env:
34-
SKIP_YARN_COREPACK_CHECK: 1
3531

3632
# required for linting before commit
3733
- name: Build
3834
run: yarn build
39-
env:
40-
SKIP_YARN_COREPACK_CHECK: 1
4135

4236
- name: Create Release Pull Request or Publish to npm
4337
id: changesets
@@ -50,4 +44,3 @@ jobs:
5044
env:
5145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5246
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
53-
SKIP_YARN_COREPACK_CHECK: 1

.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@1stg/lint-staged/tsc')
1+
export { default } from '@1stg/lint-staged/tsc'

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.yarn
22
test/fixtures
3+
auto-imports.d.ts

.simple-git-hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@1stg/simple-git-hooks')
1+
export { default } from '@1stg/simple-git-hooks'

0 commit comments

Comments
 (0)