File tree Expand file tree Collapse file tree 23 files changed +1351
-931
lines changed Expand file tree Collapse file tree 23 files changed +1351
-931
lines changed 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 11#!/usr/bin/env node
22
33const { existsSync} = require ( `fs` ) ;
4- const { createRequire} = require ( `module` ) ;
4+ const { createRequire, register } = require ( `module` ) ;
55const { resolve} = require ( `path` ) ;
6+ const { pathToFileURL} = require ( `url` ) ;
67
78const relPnpApiPath = "../../../../.pnp.cjs" ;
89
910const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1012const absRequire = createRequire ( absPnpApiPath ) ;
1113
14+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16+
1217if ( existsSync ( absPnpApiPath ) ) {
1318 if ( ! process . versions . pnp ) {
1419 // Setup the environment to be able to require eslint/bin/eslint.js
1520 require ( absPnpApiPath ) . setup ( ) ;
21+ if ( isPnpLoaderEnabled && register ) {
22+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23+ }
1624 }
1725}
1826
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
1931// 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 11#!/usr/bin/env node
22
33const { existsSync} = require ( `fs` ) ;
4- const { createRequire} = require ( `module` ) ;
4+ const { createRequire, register } = require ( `module` ) ;
55const { resolve} = require ( `path` ) ;
6+ const { pathToFileURL} = require ( `url` ) ;
67
78const relPnpApiPath = "../../../../.pnp.cjs" ;
89
910const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1012const absRequire = createRequire ( absPnpApiPath ) ;
1113
14+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16+
1217if ( existsSync ( absPnpApiPath ) ) {
1318 if ( ! process . versions . pnp ) {
1419 // Setup the environment to be able to require eslint
1520 require ( absPnpApiPath ) . setup ( ) ;
21+ if ( isPnpLoaderEnabled && register ) {
22+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23+ }
1624 }
1725}
1826
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
1931// 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` ) ) ;
You can’t perform that action at this time.
0 commit comments