aboutsummaryrefslogtreecommitdiffstats
path: root/.yarn/sdks/eslint/lib/api.js
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-09-04 20:50:07 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-09-06 01:05:23 +0200
commitcb65a28d2aaaf3f4305fd7308cd504903a833e5f (patch)
tree2bac0375fd42f6c3c606449c5fcee839f45ac1f4 /.yarn/sdks/eslint/lib/api.js
parentfeat(frontend): XState statecharts (diff)
downloadrefinery-cb65a28d2aaaf3f4305fd7308cd504903a833e5f.tar.gz
refinery-cb65a28d2aaaf3f4305fd7308cd504903a833e5f.tar.zst
refinery-cb65a28d2aaaf3f4305fd7308cd504903a833e5f.zip
build(frontend): include TS SDK in repo
The recommended Codium extensions may be used to quickly get to developing.
Diffstat (limited to '.yarn/sdks/eslint/lib/api.js')
-rw-r--r--.yarn/sdks/eslint/lib/api.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/.yarn/sdks/eslint/lib/api.js b/.yarn/sdks/eslint/lib/api.js
new file mode 100644
index 00000000..fc728d95
--- /dev/null
+++ b/.yarn/sdks/eslint/lib/api.js
@@ -0,0 +1,20 @@
1#!/usr/bin/env node
2
3const {existsSync} = require(`fs`);
4const {createRequire, createRequireFromPath} = require(`module`);
5const {resolve} = require(`path`);
6
7const relPnpApiPath = "../../../../.pnp.cjs";
8
9const absPnpApiPath = resolve(__dirname, relPnpApiPath);
10const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
11
12if (existsSync(absPnpApiPath)) {
13 if (!process.versions.pnp) {
14 // Setup the environment to be able to require eslint
15 require(absPnpApiPath).setup();
16 }
17}
18
19// Defer to the real eslint your application uses
20module.exports = absRequire(`eslint`);