diff options
Diffstat (limited to 'FrontEnd/.yarn/sdks/eslint')
-rw-r--r-- | FrontEnd/.yarn/sdks/eslint/lib/api.js | 20 | ||||
-rw-r--r-- | FrontEnd/.yarn/sdks/eslint/package.json | 6 |
2 files changed, 26 insertions, 0 deletions
diff --git a/FrontEnd/.yarn/sdks/eslint/lib/api.js b/FrontEnd/.yarn/sdks/eslint/lib/api.js new file mode 100644 index 00000000..dd6df163 --- /dev/null +++ b/FrontEnd/.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.js";
+
+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/lib/api.js
+ require(absPnpApiPath).setup();
+ }
+}
+
+// Defer to the real eslint/lib/api.js your application uses
+module.exports = absRequire(`eslint/lib/api.js`);
diff --git a/FrontEnd/.yarn/sdks/eslint/package.json b/FrontEnd/.yarn/sdks/eslint/package.json new file mode 100644 index 00000000..b7d1fe0e --- /dev/null +++ b/FrontEnd/.yarn/sdks/eslint/package.json @@ -0,0 +1,6 @@ +{
+ "name": "eslint",
+ "version": "7.5.0-pnpify",
+ "main": "./lib/api.js",
+ "type": "commonjs"
+}
\ No newline at end of file |