File tree Expand file tree Collapse file tree 10 files changed +355
-365
lines changed Expand file tree Collapse file tree 10 files changed +355
-365
lines changed Original file line number Diff line number Diff line change 1+ const { version } = require ( 'eslint/package.json' )
2+
3+ const nonLatestEslint = + version . split ( '.' ) [ 0 ] < 9
4+
15/**
26 * @type {import('eslint').Linter.Config }
37 */
@@ -30,6 +34,8 @@ module.exports = {
3034 '@typescript-eslint/no-non-null-assertion' : 'off' ,
3135 '@typescript-eslint/no-require-imports' : 'off' ,
3236
37+ 'no-constant-condition' : nonLatestEslint ? 'off' : 'error' ,
38+
3339 'eslint-plugin/consistent-output' : [ 'error' , 'always' ] ,
3440 'eslint-plugin/meta-property-ordering' : 'error' ,
3541 'eslint-plugin/no-deprecated-context-methods' : 'error' ,
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
1616 runs-on : ubuntu-latest
1717 steps :
1818 - name : Checkout Repo
19- uses : actions/checkout@v4
19+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2020
2121 - name : Setup Node.js LTS
22- uses : actions/setup-node@v4
22+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
2323 with :
2424 node-version : lts/*
2525 cache : yarn
3131 run : yarn format
3232
3333 - name : Apply autofix.ci
34- uses : autofix-ci/action@v1
34+ uses : autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1
3535 with :
3636 fail-fast : false
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ jobs:
3535 runs-on : ${{ matrix.os }}
3636 steps :
3737 - name : Checkout Repo
38- uses : actions/checkout@v4
38+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3939
4040 - name : Setup Node.js ${{ matrix.node }}
41- uses : actions/setup-node@v4
41+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
4242 with :
4343 node-version : ${{ matrix.node }}
4444 cache : yarn
6363 PARSER_NO_WATCH : true
6464
6565 - name : Codecov
66- uses : codecov/codecov-action@v5
66+ uses : codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5
6767 with :
6868 token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -27,18 +27,18 @@ jobs:
2727
2828 steps :
2929 - name : Checkout
30- uses : actions/checkout@v4
30+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3131
3232 - name : Initialize CodeQL
33- uses : github/codeql-action/init@v3
33+ uses : github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3
3434 with :
3535 languages : ${{ matrix.language }}
3636 queries : +security-and-quality
3737
3838 - name : Autobuild
39- uses : github/codeql-action/autobuild@v3
39+ uses : github/codeql-action/autobuild@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3
4040
4141 - name : Perform CodeQL Analysis
42- uses : github/codeql-action/analyze@v3
42+ uses : github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3
4343 with :
4444 category : ' /language:${{ matrix.language }}'
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
1313
1414 steps :
1515 - name : Checkout Repo
16- uses : actions/checkout@v4
16+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1717
1818 - name : Setup Node.js LTS
19- uses : actions/setup-node@v4
19+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
2020 with :
2121 node-version : lts/*
2222 cache : yarn
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ jobs:
2020 runs-on : ubuntu-latest
2121 steps :
2222 - name : Checkout Repo
23- uses : actions/checkout@v4
23+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2424 with :
2525 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2626 fetch-depth : 0
2727
2828 - name : Setup Node.js LTS
29- uses : actions/setup-node@v4
29+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
3030 with :
3131 node-version : lts/*
3232 cache : yarn
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 77 path : .yarn/plugins/plugin-prepare-lifecycle.cjs
88 spec : ' https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
99
10- yarnPath : .yarn/releases/yarn-4.7 .0.cjs
10+ yarnPath : .yarn/releases/yarn-4.8 .0.cjs
Original file line number Diff line number Diff line change 66 "repository" : " https://github.com/un-ts/eslint-plugin-import-x" ,
77 "author" : " JounQin <admin@1stg.me> (https://www.1stG.me)" ,
88 "license" : " MIT" ,
9- "packageManager" : " yarn@4.7 .0" ,
9+ "packageManager" : " yarn@4.8 .0" ,
1010 "engines" : {
1111 "node" : " ^18.18.0 || ^20.9.0 || >=21.1.0"
1212 },
9595 "@types/jest" : " ^29.5.14" ,
9696 "@types/json-schema" : " ^7.0.15" ,
9797 "@types/klaw-sync" : " ^6.0.5" ,
98- "@types/node" : " ^20.17.28 " ,
98+ "@types/node" : " ^22.0.0 " ,
9999 "@types/pnpapi" : " ^0.0.5" ,
100100 "@typescript-eslint/eslint-plugin" : " ^8.28.0" ,
101101 "@typescript-eslint/parser" : " ^8.28.0" ,
Original file line number Diff line number Diff line change @@ -3654,15 +3654,6 @@ __metadata:
36543654 languageName : node
36553655 linkType : hard
36563656
3657- " @types/node@npm:^20.17.28 " :
3658- version : 20.17.28
3659- resolution : " @types/node@npm:20.17.28"
3660- dependencies :
3661- undici-types : " npm:~6.19.2"
3662- checksum : 10c0/d77214e54d8f303d0a79fc896f8c4267b057fbc774448f6d09d24874d521293cd6036292e79b2791a6aef18895bd80dc58c1853bd8a0cf261b08500083f07273
3663- languageName : node
3664- linkType : hard
3665-
36663657" @types/normalize-package-data@npm:^2.4.0 " :
36673658 version : 2.4.4
36683659 resolution : " @types/normalize-package-data@npm:2.4.4"
@@ -5675,7 +5666,7 @@ __metadata:
56755666 " @types/jest " : " npm:^29.5.14"
56765667 " @types/json-schema " : " npm:^7.0.15"
56775668 " @types/klaw-sync " : " npm:^6.0.5"
5678- " @types/node " : " npm:^20.17.28 "
5669+ " @types/node " : " npm:^22.0.0 "
56795670 " @types/pnpapi " : " npm:^0.0.5"
56805671 " @typescript-eslint/eslint-plugin " : " npm:^8.28.0"
56815672 " @typescript-eslint/parser " : " npm:^8.28.0"
@@ -12322,13 +12313,6 @@ __metadata:
1232212313 languageName : node
1232312314 linkType : hard
1232412315
12325- " undici-types@npm:~6.19.2 " :
12326- version : 6.19.8
12327- resolution : " undici-types@npm:6.19.8"
12328- checksum : 10c0/078afa5990fba110f6824823ace86073b4638f1d5112ee26e790155f481f2a868cc3e0615505b6f4282bdf74a3d8caad715fd809e870c2bb0704e3ea6082f344
12329- languageName : node
12330- linkType : hard
12331-
1233212316" undici-types@npm:~6.20.0 " :
1233312317 version : 6.20.0
1233412318 resolution : " undici-types@npm:6.20.0"
You can’t perform that action at this time.
0 commit comments