diff --git a/bin/cli.js b/bin/cli.js index 1079fa0..fcf0293 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -4,6 +4,7 @@ * Acts as an interface to the JS API */ import path from "path"; +import process from "process"; import gui from "../src/cli/gui.js"; import Logger from "../src/lib/logger.js"; import SVGLint from "../src/svglint.js"; diff --git a/src/cli/components/separator.js b/src/cli/components/separator.js index 4495ab9..2083628 100644 --- a/src/cli/components/separator.js +++ b/src/cli/components/separator.js @@ -1,3 +1,4 @@ +import process from "process"; import { chalk } from "../util.js"; const columns = process.stdout.columns || 80; diff --git a/src/cli/config.js b/src/cli/config.js index ff80000..06f7ff8 100644 --- a/src/cli/config.js +++ b/src/cli/config.js @@ -1,5 +1,6 @@ import path from "path"; import fs from "fs"; +import process from "process"; /** * Check if a file exists diff --git a/src/cli/util.js b/src/cli/util.js index 9a705f4..003e0cf 100644 --- a/src/cli/util.js +++ b/src/cli/util.js @@ -1,6 +1,7 @@ /** * @fileoverview Utilities for the CLI. */ +import process from "process"; import { Chalk, supportsColor as chalkSupportsColor } from "chalk"; import ansiRegex from "ansi-regex"; diff --git a/src/lib/linting.js b/src/lib/linting.js index a7d18c7..44f8a65 100644 --- a/src/lib/linting.js +++ b/src/lib/linting.js @@ -8,6 +8,7 @@ */ import { EventEmitter } from "events"; import path from "path"; +import process from "process"; import * as cheerio from "cheerio"; import * as parse from "./parse.js"; import Reporter from "./reporter.js"; diff --git a/src/lib/parse.js b/src/lib/parse.js index 072125f..c492add 100644 --- a/src/lib/parse.js +++ b/src/lib/parse.js @@ -7,6 +7,7 @@ import Parser from "htmlparser2"; import fs from "fs"; import path from "path"; +import process from "process"; /** * Parses an SVG source into an AST diff --git a/test/api.spec.js b/test/api.spec.js index 31fdded..bfb6b04 100644 --- a/test/api.spec.js +++ b/test/api.spec.js @@ -1,5 +1,6 @@ import expect from "expect"; import * as path from "path"; +import process from "process"; import * as url from "url"; import SVGLint from "../src/svglint.js"; diff --git a/test/attr.spec.js b/test/attr.spec.js index ed88b5f..2e647c3 100644 --- a/test/attr.spec.js +++ b/test/attr.spec.js @@ -1,3 +1,4 @@ +import process from "process"; import util from "util"; import SVGLint from "../src/svglint.js"; diff --git a/test/cli.spec.js b/test/cli.spec.js index bdf5efb..2be78df 100644 --- a/test/cli.spec.js +++ b/test/cli.spec.js @@ -1,4 +1,5 @@ import path from "path"; +import process from "process"; import { execa } from "execa"; import expect from "expect"; diff --git a/test/custom.spec.js b/test/custom.spec.js index 2bb4a25..a4eb078 100644 --- a/test/custom.spec.js +++ b/test/custom.spec.js @@ -1,3 +1,4 @@ +import process from "process"; import util from "util"; import SVGLint from "../src/svglint.js"; diff --git a/test/elm.spec.js b/test/elm.spec.js index 8aa5298..e94d829 100644 --- a/test/elm.spec.js +++ b/test/elm.spec.js @@ -1,3 +1,4 @@ +import process from "process"; import util from "util"; import SVGLint from "../src/svglint.js"; diff --git a/test/valid.spec.js b/test/valid.spec.js index b7dc139..de05b1c 100644 --- a/test/valid.spec.js +++ b/test/valid.spec.js @@ -1,3 +1,4 @@ +import process from "process"; import util from "util"; import SVGLint from "../src/svglint.js";