Skip to content

Commit 4fe5b81

Browse files
authored
feat!: bump prettier-eslint to support ESLint v9 flat config (#460)
Signed-off-by: JounQin <[email protected]>
1 parent bda4b7f commit 4fe5b81

Some content is hidden

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

47 files changed

+15185
-433
lines changed

.changeset/dry-cobras-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"prettier-eslint-cli": major
3+
---
4+
5+
feat!: bump `prettier-eslint` to support ESLint v9 flat config

.changeset/pre.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"mode": "pre",
3+
"tag": "alpha",
4+
"initialVersions": {
5+
"prettier-eslint-cli": "8.0.1"
6+
},
7+
"changesets": []
8+
}

.codesandbox/ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"node": "16",
2+
"node": "18",
33
"sandboxes": []
44
}

.eslintignore

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

.eslintrc.js

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

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
* text=auto
2-
*.js text eol=lf
1+
* text=auto eol=lf
2+
yarn.lock -diff

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ custom:
1212
- https://opencollective.com/rxts
1313
- https://opencollective.com/unts
1414
- https://patreon.com/1stG
15-
- https://afdian.net/@JounQin
15+
- https://afdian.com/a/JounQin

.github/workflows/autofix.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
autofix:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
24+
- name: Setup Node.js LTS
25+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
26+
with:
27+
node-version: lts/*
28+
cache: yarn
29+
30+
- name: Install dependencies
31+
run: yarn --immutable
32+
33+
- name: Build
34+
run: yarn build
35+
36+
- name: Format Codes
37+
run: yarn format
38+
39+
- name: Apply autofix.ci
40+
uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1
41+
with:
42+
fail-fast: false

.github/workflows/ci.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,42 @@ on:
44
- push
55
- pull_request
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
714
jobs:
815
ci:
916
runs-on: ubuntu-latest
1017

1118
strategy:
1219
matrix:
13-
node-version:
14-
- 12
15-
- 14
16-
- 16
20+
node:
1721
- 18
1822
- 20
23+
- 22
24+
- 24
1925

2026
steps:
21-
- uses: actions/checkout@v4
27+
- name: Checkout Repo
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2229

23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
30+
- name: Use Node.js ${{ matrix.node }}
31+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2532
with:
2633
node-version: ${{ matrix.node }}
34+
cache: yarn
2735

2836
- name: Install dependencies
29-
run: npm i
37+
run: yarn --immutable
3038

3139
- name: Lint, test, and build
32-
run: npm start validate
40+
run: yarn start validate
3341

3442
- name: Check test coverage
35-
uses: codecov/codecov-action@v3
43+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/pkg-pr-new.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Any Commit
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+
- name: Setup Node.js LTS
23+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
24+
with:
25+
node-version: lts/*
26+
cache: yarn
27+
28+
- name: Install dependencies
29+
run: yarn --immutable
30+
31+
- name: Build
32+
run: yarn build
33+
34+
- name: Publish
35+
run: yarn dlx pkg-pr-new publish --compact

0 commit comments

Comments
 (0)