Skip to content

Commit

Permalink
feat: explicitly import process (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcornelissen authored Jun 8, 2023
1 parent a609b86 commit fb87cb7
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions src/cli/components/separator.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from "process";
import { chalk } from "../util.js";
const columns = process.stdout.columns || 80;

Expand Down
1 change: 1 addition & 0 deletions src/cli/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from "path";
import fs from "fs";
import process from "process";

/**
* Check if a file exists
Expand Down
1 change: 1 addition & 0 deletions src/cli/util.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
1 change: 1 addition & 0 deletions src/lib/linting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions src/lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/api.spec.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 1 addition & 0 deletions test/attr.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from "process";
import util from "util";

import SVGLint from "../src/svglint.js";
Expand Down
1 change: 1 addition & 0 deletions test/cli.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from "path";
import process from "process";

import { execa } from "execa";
import expect from "expect";
Expand Down
1 change: 1 addition & 0 deletions test/custom.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from "process";
import util from "util";

import SVGLint from "../src/svglint.js";
Expand Down
1 change: 1 addition & 0 deletions test/elm.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from "process";
import util from "util";

import SVGLint from "../src/svglint.js";
Expand Down
1 change: 1 addition & 0 deletions test/valid.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from "process";
import util from "util";

import SVGLint from "../src/svglint.js";
Expand Down

0 comments on commit fb87cb7

Please sign in to comment.