File tree 39 files changed +9018
-7771
lines changed
39 files changed +9018
-7771
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
analyze :
11
11
name : Analyze
12
- runs-on : ubuntu-20 .04
12
+ runs-on : ubuntu-22 .04
13
13
permissions :
14
14
actions : read
15
15
contents : read
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
- runs-on : ubuntu-20 .04
10
+ runs-on : ubuntu-22 .04
11
11
env :
12
12
BUILD_ADD_PATH_PREFIX : true
13
13
steps :
14
14
- uses : actions/checkout@v3
15
15
- uses : actions/setup-node@v3
16
16
with :
17
- node-version : 18 .x
17
+ node-version : 22 .x
18
18
cache : " yarn"
19
19
- name : Set up dependencies
20
20
run : |
Original file line number Diff line number Diff line change 7
7
strategy :
8
8
matrix :
9
9
os :
10
- - ubuntu-20 .04
11
- - windows-2019
10
+ - ubuntu-22 .04
11
+ - windows-2022
12
12
node-version :
13
- - 18 .x
13
+ - 22 .x
14
14
runs-on : ${{ matrix.os }}
15
15
steps :
16
16
- uses : actions/checkout@v3
@@ -34,18 +34,18 @@ jobs:
34
34
coverage :
35
35
needs : [build]
36
36
if : ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' }}
37
- runs-on : ubuntu-20 .04
37
+ runs-on : ubuntu-22 .04
38
38
steps :
39
39
- uses : actions/checkout@v3
40
40
- uses : actions/setup-node@v3
41
41
with :
42
- node-version : 18 .x
42
+ node-version : 22 .x
43
43
cache : " yarn"
44
44
- name : Set up dependencies
45
45
run : |
46
46
yarn install --immutable
47
47
- name : Coverage
48
- uses : paambaati/codeclimate-action@v4 .0.0
48
+ uses : paambaati/codeclimate-action@v9 .0.0
49
49
env :
50
50
CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
51
51
with :
Original file line number Diff line number Diff line change 76
76
"**/.pnp.*" : true
77
77
},
78
78
"eslint.nodePath" : " .yarn/sdks" ,
79
- "prettier.prettierPath" : " .yarn/sdks/prettier/index.js " ,
79
+ "prettier.prettierPath" : " .yarn/sdks/prettier/index.cjs " ,
80
80
"typescript.tsdk" : " .yarn/sdks/typescript/lib" ,
81
81
"typescript.enablePromptUseWorkspaceTsdk" : true ,
82
82
"files.associations" : {
Load Diff This file was deleted.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
const { existsSync} = require ( `fs` ) ;
4
- const { createRequire} = require ( `module` ) ;
4
+ const { createRequire, register } = require ( `module` ) ;
5
5
const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
6
7
7
8
const relPnpApiPath = "../../../../.pnp.cjs" ;
8
9
9
10
const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
10
12
const absRequire = createRequire ( absPnpApiPath ) ;
11
13
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
12
17
if ( existsSync ( absPnpApiPath ) ) {
13
18
if ( ! process . versions . pnp ) {
14
19
// Setup the environment to be able to require eslint/bin/eslint.js
15
20
require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
16
24
}
17
25
}
18
26
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
19
31
// Defer to the real eslint/bin/eslint.js your application uses
20
- module . exports = absRequire ( `eslint/bin/eslint.js` ) ;
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint/bin/eslint.js` ) ) ;
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
const { existsSync} = require ( `fs` ) ;
4
- const { createRequire} = require ( `module` ) ;
4
+ const { createRequire, register } = require ( `module` ) ;
5
5
const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
6
7
7
8
const relPnpApiPath = "../../../../.pnp.cjs" ;
8
9
9
10
const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
10
12
const absRequire = createRequire ( absPnpApiPath ) ;
11
13
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
12
17
if ( existsSync ( absPnpApiPath ) ) {
13
18
if ( ! process . versions . pnp ) {
14
19
// Setup the environment to be able to require eslint
15
20
require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
16
24
}
17
25
}
18
26
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
19
31
// Defer to the real eslint your application uses
20
- module . exports = absRequire ( `eslint` ) ;
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint` ) ) ;
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ const { existsSync} = require ( `fs` ) ;
4
+ const { createRequire, register} = require ( `module` ) ;
5
+ const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
7
+
8
+ const relPnpApiPath = "../../../../../.pnp.cjs" ;
9
+
10
+ const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
12
+ const absRequire = createRequire ( absPnpApiPath ) ;
13
+
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
17
+ if ( existsSync ( absPnpApiPath ) ) {
18
+ if ( ! process . versions . pnp ) {
19
+ // Setup the environment to be able to require eslint
20
+ require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
24
+ }
25
+ }
26
+
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
31
+ // Defer to the real eslint your application uses
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint` ) ) ;
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ const { existsSync} = require ( `fs` ) ;
4
+ const { createRequire, register} = require ( `module` ) ;
5
+ const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
7
+
8
+ const relPnpApiPath = "../../../../../../.pnp.cjs" ;
9
+
10
+ const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
12
+ const absRequire = createRequire ( absPnpApiPath ) ;
13
+
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
17
+ if ( existsSync ( absPnpApiPath ) ) {
18
+ if ( ! process . versions . pnp ) {
19
+ // Setup the environment to be able to require eslint/rules
20
+ require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
24
+ }
25
+ }
26
+
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
31
+ // Defer to the real eslint/rules your application uses
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint/rules` ) ) ;
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ const { existsSync} = require ( `fs` ) ;
4
+ const { createRequire, register} = require ( `module` ) ;
5
+ const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
7
+
8
+ const relPnpApiPath = "../../../../../.pnp.cjs" ;
9
+
10
+ const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
12
+ const absRequire = createRequire ( absPnpApiPath ) ;
13
+
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
17
+ if ( existsSync ( absPnpApiPath ) ) {
18
+ if ( ! process . versions . pnp ) {
19
+ // Setup the environment to be able to require eslint/universal
20
+ require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
24
+ }
25
+ }
26
+
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
31
+ // Defer to the real eslint/universal your application uses
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint/universal` ) ) ;
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ const { existsSync} = require ( `fs` ) ;
4
+ const { createRequire, register} = require ( `module` ) ;
5
+ const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
7
+
8
+ const relPnpApiPath = "../../../../../.pnp.cjs" ;
9
+
10
+ const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
12
+ const absRequire = createRequire ( absPnpApiPath ) ;
13
+
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
17
+ if ( existsSync ( absPnpApiPath ) ) {
18
+ if ( ! process . versions . pnp ) {
19
+ // Setup the environment to be able to require eslint/use-at-your-own-risk
20
+ require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
24
+ }
25
+ }
26
+
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
31
+ // Defer to the real eslint/use-at-your-own-risk your application uses
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint/use-at-your-own-risk` ) ) ;
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ const { existsSync} = require ( `fs` ) ;
4
+ const { createRequire, register} = require ( `module` ) ;
5
+ const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
7
+
8
+ const relPnpApiPath = "../../../../.pnp.cjs" ;
9
+
10
+ const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
12
+ const absRequire = createRequire ( absPnpApiPath ) ;
13
+
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
17
+ if ( existsSync ( absPnpApiPath ) ) {
18
+ if ( ! process . versions . pnp ) {
19
+ // Setup the environment to be able to require eslint/universal
20
+ require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
24
+ }
25
+ }
26
+
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
31
+ // Defer to the real eslint/universal your application uses
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint/universal` ) ) ;
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ const { existsSync} = require ( `fs` ) ;
4
+ const { createRequire, register} = require ( `module` ) ;
5
+ const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
7
+
8
+ const relPnpApiPath = "../../../../.pnp.cjs" ;
9
+
10
+ const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
12
+ const absRequire = createRequire ( absPnpApiPath ) ;
13
+
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
17
+ if ( existsSync ( absPnpApiPath ) ) {
18
+ if ( ! process . versions . pnp ) {
19
+ // Setup the environment to be able to require eslint/use-at-your-own-risk
20
+ require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
24
+ }
25
+ }
26
+
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
31
+ // Defer to the real eslint/use-at-your-own-risk your application uses
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint/use-at-your-own-risk` ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint" ,
3
- "version" : " 8.44 .0-sdk" ,
3
+ "version" : " 9.17 .0-sdk" ,
4
4
"main" : " ./lib/api.js" ,
5
- "type" : " commonjs"
5
+ "type" : " commonjs" ,
6
+ "bin" : {
7
+ "eslint" : " ./bin/eslint.js"
8
+ },
9
+ "exports" : {
10
+ "." : {
11
+ "types" : " ./lib/types/index.d.ts" ,
12
+ "default" : " ./lib/api.js"
13
+ },
14
+ "./package.json" : " ./package.json" ,
15
+ "./use-at-your-own-risk" : {
16
+ "types" : " ./lib/types/use-at-your-own-risk.d.ts" ,
17
+ "default" : " ./lib/unsupported-api.js"
18
+ },
19
+ "./rules" : {
20
+ "types" : " ./lib/types/rules/index.d.ts"
21
+ },
22
+ "./universal" : {
23
+ "types" : " ./lib/types/universal.d.ts" ,
24
+ "default" : " ./lib/universal.js"
25
+ }
26
+ }
6
27
}
You can’t perform that action at this time.
0 commit comments