Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly import process #84

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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