diff options
Diffstat (limited to 'src/main/webui/.yarn/sdks/eslint')
| -rw-r--r-- | src/main/webui/.yarn/sdks/eslint/lib/api.js | 20 | ||||
| -rw-r--r-- | src/main/webui/.yarn/sdks/eslint/package-lock.json | 12 | ||||
| -rw-r--r-- | src/main/webui/.yarn/sdks/eslint/package.json | 6 |
3 files changed, 38 insertions, 0 deletions
diff --git a/src/main/webui/.yarn/sdks/eslint/lib/api.js b/src/main/webui/.yarn/sdks/eslint/lib/api.js new file mode 100644 index 0000000..fc728d9 --- /dev/null +++ b/src/main/webui/.yarn/sdks/eslint/lib/api.js @@ -0,0 +1,20 @@ +#!/usr/bin/env node + +const {existsSync} = require(`fs`); +const {createRequire, createRequireFromPath} = require(`module`); +const {resolve} = require(`path`); + +const relPnpApiPath = "../../../../.pnp.cjs"; + +const absPnpApiPath = resolve(__dirname, relPnpApiPath); +const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath); + +if (existsSync(absPnpApiPath)) { + if (!process.versions.pnp) { + // Setup the environment to be able to require eslint + require(absPnpApiPath).setup(); + } +} + +// Defer to the real eslint your application uses +module.exports = absRequire(`eslint`); diff --git a/src/main/webui/.yarn/sdks/eslint/package-lock.json b/src/main/webui/.yarn/sdks/eslint/package-lock.json new file mode 100644 index 0000000..c853291 --- /dev/null +++ b/src/main/webui/.yarn/sdks/eslint/package-lock.json @@ -0,0 +1,12 @@ +{ + "name": "eslint", + "version": "8.12.0-sdk", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "eslint", + "version": "8.12.0-sdk" + } + } +} diff --git a/src/main/webui/.yarn/sdks/eslint/package.json b/src/main/webui/.yarn/sdks/eslint/package.json new file mode 100644 index 0000000..0feffb7 --- /dev/null +++ b/src/main/webui/.yarn/sdks/eslint/package.json @@ -0,0 +1,6 @@ +{ + "name": "eslint", + "version": "8.12.0-sdk", + "main": "./lib/api.js", + "type": "commonjs" +} |
