Skip to content

Commit

Permalink
chore(linting): resolve linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed May 14, 2018
1 parent b1a8398 commit 1db677e
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cli.js → bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

require("v8-compile-cache");
const ErrorHelpers = require("./utils/errorHelpers");
const ErrorHelpers = require("./errorHelpers");

const NON_COMPILATION_ARGS = [
"init",
Expand Down Expand Up @@ -47,7 +47,7 @@
}

const yargs = require("yargs").usage(`webpack-cli ${
require("./package.json").version
require("../package.json").version
}
Usage: webpack-cli [options]
Expand All @@ -57,7 +57,7 @@ Usage: webpack-cli [options]
For more information, see https://webpack.js.org/api/cli/.`);

require("./utils/config-yargs")(yargs);
require("./config-yargs")(yargs);

const DISPLAY_GROUP = "Stats options:";
const BASIC_GROUP = "Basic options:";
Expand Down Expand Up @@ -237,7 +237,7 @@ For more information, see https://webpack.js.org/api/cli/.`);

let options;
try {
options = require("./utils/convert-argv")(argv);
options = require("./convert-argv")(argv);
} catch (err) {
if (err.name !== "ValidationError") {
throw err;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"url": "https://github.com/webpack/webpack-cli.git"
},
"bin": {
"webpack-cli": "./cli.js"
"webpack-cli": "./bin/cli.js"
},
"main": "./cli.js",
"main": "./bin/cli.js",
"engines": {
"node": ">=6.11.5"
},
Expand All @@ -25,9 +25,9 @@
"packages/*"
],
"scripts": {
"lint": "eslint ./utils/*.js ./cli.js ./packages/**/*.js ./test/**/*.js",
"lint": "eslint ./bin/*.js ./packages/**/*.js ./test/**/*.js",
"format": "prettier-eslint ./utils/**/*.js ./cli.js ./test/**/*.js ./packages/**/*.js --write",
"lint:codeOnly": "eslint \"cli.js\" \"{utils}/**/!(__testfixtures__)/*.js\" \"{utils}/**.js\"",
"lint:codeOnly": "eslint \"{utils}/**/!(__testfixtures__)/*.js\" \"{utils}/**.js\"",
"precommit": "lint-staged",
"pretest": "npm run lint",
"test": "lerna run test",
Expand Down

0 comments on commit 1db677e

Please sign in to comment.