diff options
author | crupest <crupest@outlook.com> | 2020-11-05 16:23:34 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-05 16:23:34 +0800 |
commit | ad1b3e008118c527d7581c20011f69385f528290 (patch) | |
tree | 58ea8e58c8693d5d74f92c000a1d64bfcdf0c7d9 /FrontEnd/.yarn/sdks/eslint/lib/api.js | |
parent | 877e0c59bb5e3c610cafe154e50af72968f03f1c (diff) | |
download | timeline-ad1b3e008118c527d7581c20011f69385f528290.tar.gz timeline-ad1b3e008118c527d7581c20011f69385f528290.tar.bz2 timeline-ad1b3e008118c527d7581c20011f69385f528290.zip |
Upgrade packages.
Diffstat (limited to 'FrontEnd/.yarn/sdks/eslint/lib/api.js')
-rw-r--r-- | FrontEnd/.yarn/sdks/eslint/lib/api.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/FrontEnd/.yarn/sdks/eslint/lib/api.js b/FrontEnd/.yarn/sdks/eslint/lib/api.js index dd6df163..bbcd99d6 100644 --- a/FrontEnd/.yarn/sdks/eslint/lib/api.js +++ b/FrontEnd/.yarn/sdks/eslint/lib/api.js @@ -1,20 +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`);
+#!/usr/bin/env node + +const {existsSync} = require(`fs`); +const {createRequire, createRequireFromPath} = require(`module`); +const {resolve, dirname} = 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`); |