File tree 10 files changed +355
-365
lines changed
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
+
1
5
/**
2
6
* @type {import('eslint').Linter.Config }
3
7
*/
@@ -30,6 +34,8 @@ module.exports = {
30
34
'@typescript-eslint/no-non-null-assertion' : 'off' ,
31
35
'@typescript-eslint/no-require-imports' : 'off' ,
32
36
37
+ 'no-constant-condition' : nonLatestEslint ? 'off' : 'error' ,
38
+
33
39
'eslint-plugin/consistent-output' : [ 'error' , 'always' ] ,
34
40
'eslint-plugin/meta-property-ordering' : 'error' ,
35
41
'eslint-plugin/no-deprecated-context-methods' : 'error' ,
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- name : Checkout Repo
19
- uses : actions/checkout@v4
19
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20
20
21
21
- name : Setup Node.js LTS
22
- uses : actions/setup-node@v4
22
+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
23
23
with :
24
24
node-version : lts/*
25
25
cache : yarn
31
31
run : yarn format
32
32
33
33
- name : Apply autofix.ci
34
- uses : autofix-ci/action@v1
34
+ uses : autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1
35
35
with :
36
36
fail-fast : false
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ jobs:
35
35
runs-on : ${{ matrix.os }}
36
36
steps :
37
37
- name : Checkout Repo
38
- uses : actions/checkout@v4
38
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
39
39
40
40
- name : Setup Node.js ${{ matrix.node }}
41
- uses : actions/setup-node@v4
41
+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
42
42
with :
43
43
node-version : ${{ matrix.node }}
44
44
cache : yarn
63
63
PARSER_NO_WATCH : true
64
64
65
65
- name : Codecov
66
- uses : codecov/codecov-action@v5
66
+ uses : codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5
67
67
with :
68
68
token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -27,18 +27,18 @@ jobs:
27
27
28
28
steps :
29
29
- name : Checkout
30
- uses : actions/checkout@v4
30
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
31
31
32
32
- name : Initialize CodeQL
33
- uses : github/codeql-action/init@v3
33
+ uses : github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3
34
34
with :
35
35
languages : ${{ matrix.language }}
36
36
queries : +security-and-quality
37
37
38
38
- name : Autobuild
39
- uses : github/codeql-action/autobuild@v3
39
+ uses : github/codeql-action/autobuild@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3
40
40
41
41
- name : Perform CodeQL Analysis
42
- uses : github/codeql-action/analyze@v3
42
+ uses : github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3
43
43
with :
44
44
category : ' /language:${{ matrix.language }}'
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
13
13
14
14
steps :
15
15
- name : Checkout Repo
16
- uses : actions/checkout@v4
16
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17
17
18
18
- name : Setup Node.js LTS
19
- uses : actions/setup-node@v4
19
+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
20
20
with :
21
21
node-version : lts/*
22
22
cache : yarn
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
steps :
22
22
- name : Checkout Repo
23
- uses : actions/checkout@v4
23
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
24
24
with :
25
25
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
26
26
fetch-depth : 0
27
27
28
28
- name : Setup Node.js LTS
29
- uses : actions/setup-node@v4
29
+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
30
30
with :
31
31
node-version : lts/*
32
32
cache : yarn
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 7
7
path : .yarn/plugins/plugin-prepare-lifecycle.cjs
8
8
spec : ' https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
9
9
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 6
6
"repository" : " https://github.com/un-ts/eslint-plugin-import-x" ,
7
7
"author" :
" JounQin <[email protected] > (https://www.1stG.me)" ,
8
8
"license" : " MIT" ,
9
- "packageManager" : " yarn@4.7 .0" ,
9
+ "packageManager" : " yarn@4.8 .0" ,
10
10
"engines" : {
11
11
"node" : " ^18.18.0 || ^20.9.0 || >=21.1.0"
12
12
},
95
95
"@types/jest" : " ^29.5.14" ,
96
96
"@types/json-schema" : " ^7.0.15" ,
97
97
"@types/klaw-sync" : " ^6.0.5" ,
98
- "@types/node" : " ^20.17.28 " ,
98
+ "@types/node" : " ^22.0.0 " ,
99
99
"@types/pnpapi" : " ^0.0.5" ,
100
100
"@typescript-eslint/eslint-plugin" : " ^8.28.0" ,
101
101
"@typescript-eslint/parser" : " ^8.28.0" ,
Original file line number Diff line number Diff line change @@ -3654,15 +3654,6 @@ __metadata:
3654
3654
languageName : node
3655
3655
linkType : hard
3656
3656
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
-
3666
3657
" @types/normalize-package-data@npm:^2.4.0 " :
3667
3658
version : 2.4.4
3668
3659
resolution : " @types/normalize-package-data@npm:2.4.4"
@@ -5675,7 +5666,7 @@ __metadata:
5675
5666
" @types/jest " : " npm:^29.5.14"
5676
5667
" @types/json-schema " : " npm:^7.0.15"
5677
5668
" @types/klaw-sync " : " npm:^6.0.5"
5678
- " @types/node " : " npm:^20.17.28 "
5669
+ " @types/node " : " npm:^22.0.0 "
5679
5670
" @types/pnpapi " : " npm:^0.0.5"
5680
5671
" @typescript-eslint/eslint-plugin " : " npm:^8.28.0"
5681
5672
" @typescript-eslint/parser " : " npm:^8.28.0"
@@ -12322,13 +12313,6 @@ __metadata:
12322
12313
languageName : node
12323
12314
linkType : hard
12324
12315
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
-
12332
12316
" undici-types@npm:~6.20.0 " :
12333
12317
version : 6.20.0
12334
12318
resolution : " undici-types@npm:6.20.0"
You can’t perform that action at this time.
0 commit comments