aboutsummaryrefslogtreecommitdiff
path: root/.yarn/sdks/eslint
diff options
context:
space:
mode:
Diffstat (limited to '.yarn/sdks/eslint')
-rwxr-xr-x.yarn/sdks/eslint/bin/eslint.js20
-rw-r--r--.yarn/sdks/eslint/lib/api.js20
-rw-r--r--.yarn/sdks/eslint/package.json6
3 files changed, 46 insertions, 0 deletions
diff --git a/.yarn/sdks/eslint/bin/eslint.js b/.yarn/sdks/eslint/bin/eslint.js
new file mode 100755
index 0000000..4d327a4
--- /dev/null
+++ b/.yarn/sdks/eslint/bin/eslint.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/bin/eslint.js
+ require(absPnpApiPath).setup();
+ }
+}
+
+// Defer to the real eslint/bin/eslint.js your application uses
+module.exports = absRequire(`eslint/bin/eslint.js`);
diff --git a/.yarn/sdks/eslint/lib/api.js b/.yarn/sdks/eslint/lib/api.js
new file mode 100644
index 0000000..97a0524
--- /dev/null
+++ b/.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/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/.yarn/sdks/eslint/package.json b/.yarn/sdks/eslint/package.json
new file mode 100644
index 0000000..744a773
--- /dev/null
+++ b/.yarn/sdks/eslint/package.json
@@ -0,0 +1,6 @@
+{
+ "name": "eslint",
+ "version": "7.32.0-sdk",
+ "main": "./lib/api.js",
+ "type": "commonjs"
+}