Skip to content

Commit

Permalink
chore(esm): suppress "got is not found" error
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed May 16, 2022
1 parent 51a4a44 commit a6a54f3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
3 changes: 1 addition & 2 deletions build/spas.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import {
} from "../content/index.js";
import { BUILD_OUT_ROOT } from "./constants.js";
import { renderHTML } from "../ssr/dist/main.js";
// eslint-disable-next-line node/no-missing-import
import { default as got } from "got";
import got from "got"; // eslint-disable-line node/no-missing-import
import { splitSections } from "./utils.js";
import cheerio from "cheerio";
import { findByURL } from "../content/document.js";
Expand Down
3 changes: 1 addition & 2 deletions build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import fs from "fs";
import path from "path";

import cheerio from "cheerio";
// eslint-disable-next-line node/no-missing-import
import got from "got";
import got from "got"; // eslint-disable-line node/no-missing-import
import FileType from "file-type";
import imagemin from "imagemin";
import imageminPngquant from "imagemin-pngquant";
Expand Down
2 changes: 1 addition & 1 deletion deployer/aws-lambda/tests/server.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-unpublished-import
import got from "got";
import got from "got"; // eslint-disable-line node/no-missing-import

const BASE_URL = process.env.SERVER_BASE_URL || "http://localhost:7000";

Expand Down
3 changes: 1 addition & 2 deletions kumascript/src/api/mdn.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line node/no-missing-import
import got from "got";
import got from "got"; // eslint-disable-line node/no-missing-import
import * as util from "./util.js";

// Module level caching for repeat calls to fetchWebExtExamples().
Expand Down
2 changes: 1 addition & 1 deletion testing/tests/developing.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { test, expect } from "@playwright/test";
import got from "got";
import got from "got"; // eslint-disable-line node/no-missing-import

const DEV_BASE_URL =
process.env.DEVELOPING_DEV_BASE_URL || "http://localhost:3000";
Expand Down
2 changes: 1 addition & 1 deletion testing/tests/redirects.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import got from "got";
import got from "got"; // eslint-disable-line node/no-missing-import
import braces from "braces";

function serverURL(pathname = "/") {
Expand Down
3 changes: 1 addition & 2 deletions tool/popularities.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
import fs from "fs";

import csv from "@fast-csv/parse";
// eslint-disable-next-line node/no-missing-import
import got from "got";
import got from "got"; // eslint-disable-line node/no-missing-import

const CURRENT_URL =
"https://mdn-popularities-prod.s3.amazonaws.com/current.txt";
Expand Down

0 comments on commit a6a54f3

Please sign in to comment.