Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ custom:
- https://opencollective.com/rxts
- https://opencollective.com/unts
- https://patreon.com/1stG
- https://afdian.net/@JounQin
- https://afdian.com/a/JounQin
39 changes: 39 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".

on:
pull_request:
types:
- opened
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js LTS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: lts/*
cache: yarn

- name: Install dependencies
run: yarn --immutable

- name: Format Codes
run: yarn format

- name: Apply autofix.ci
uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1
with:
fail-fast: false
8 changes: 5 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check
on:
push:
branches:
- "main"
- main
pull_request:

concurrency:
Expand All @@ -18,11 +18,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false

- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
- name: Setup Node.js LTS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: lts/*
cache: yarn
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/pkg-pr-new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Any Commit
on:
- push
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js LTS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: lts/*
cache: yarn

- name: Install dependencies
run: yarn --immutable

- name: Publish
run: yarn dlx pkg-pr-new publish --compact
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
release:
name: Release
Expand All @@ -17,7 +26,7 @@ jobs:
fetch-depth: 0

- name: Setup Node.js LTS
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: lts/*
cache: yarn
Expand All @@ -34,4 +43,5 @@ jobs:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on:
push:
branches:
- "main"
- main
pull_request:

concurrency:
Expand All @@ -30,17 +30,20 @@ jobs:
- 18
- 20
- 22
- 24
fail-fast: false

env:
YARN_IGNORE_NODE: 1

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false

- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node }}
cache: yarn
Expand Down
6 changes: 5 additions & 1 deletion .renovaterc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"extends": [
"github>1stG/configs"
],
"ignoreDeps": ["eslint-find-rules"]
"ignoreDeps": [
"eslint-find-rules",
"eslint-plugin-standard",
"yarn"
]
}
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare const eslintConfigPrettier: {
rules: Record<string, 0 | "off">;
};
rules: Record<string, 0 | "off">;
};

export = eslintConfigPrettier;
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"packageManager": "yarn@4.8.1",
"bin": "bin/cli.js",
"main": "index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
Expand All @@ -28,7 +29,6 @@
},
"./package.json": "./package.json"
},
"types": "index.d.ts",
"files": [
"bin",
"flat.d.ts",
Expand All @@ -46,8 +46,8 @@
"prettier"
],
"scripts": {
"format": "prettier --write .",
"prepare": "patch-package && yarn-berry-deduplicate || exit 0",
"prettier": "prettier --write .",
"release": "clean-pkg-json && changeset publish",
"test": "yarn test:prettier && ESLINT_CONFIG_PRETTIER_NO_DEPRECATED=true yarn test:with-env && ESLINT_USE_FLAT_CONFIG=false yarn test:with-env",
"test:cli-sanity": "node ./bin/cli.js index.js",
Expand All @@ -66,41 +66,41 @@
"eslint": ">=7.0.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.27.0",
"@babel/eslint-plugin": "^7.27.0",
"@babel/plugin-syntax-flow": "^7.26.0",
"@babel/plugin-syntax-jsx": "^7.25.9",
"@babel/plugin-transform-react-jsx": "^7.25.9",
"@babel/eslint-parser": "^7.27.1",
"@babel/eslint-plugin": "^7.27.1",
"@babel/plugin-syntax-flow": "^7.27.1",
"@babel/plugin-syntax-jsx": "^7.27.1",
"@babel/plugin-transform-react-jsx": "^7.27.1",
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.28.1",
"@eslint/compat": "^1.2.7",
"@changesets/cli": "^2.29.3",
"@eslint/compat": "^1.2.9",
"@stylistic/eslint-plugin": "^4.2.0",
"@stylistic/eslint-plugin-js": "^4.2.0",
"@stylistic/eslint-plugin-jsx": "^4.2.0",
"@stylistic/eslint-plugin-plus": "^4.2.0",
"@stylistic/eslint-plugin-ts": "^4.2.0",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.32.0",
"@unts/patch-package": "^8.1.1",
"clean-pkg-json": "^1.2.1",
"eslint": "^9.23.0",
"clean-pkg-json": "^1.3.0",
"eslint": "^9.26.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "link:.",
"eslint-find-rules": "^4.2.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-prettier": "^5.2.5",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-prettier": "^5.4.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-unicorn": "^58.0.0",
"eslint-plugin-vue": "^10.0.0",
"globals": "^16.0.0",
"eslint-plugin-unicorn": "^59.0.1",
"eslint-plugin-vue": "^10.1.0",
"globals": "^16.1.0",
"jest": "^29.7.0",
"prettier": "^3.5.3",
"prettier-plugin-pkg": "^0.18.1",
"typescript": "^5.8.2",
"vue-eslint-parser": "^10.1.1",
"yarn-berry-deduplicate": "^6.1.1"
"prettier-plugin-pkg": "^0.19.0",
"typescript": "^5.8.3",
"vue-eslint-parser": "^10.1.3",
"yarn-berry-deduplicate": "^6.1.3"
},
"eslintIgnore": [
".yarn",
Expand Down
Loading