Skip to content

Commit

Permalink
chore(linting): fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed May 14, 2018
1 parent 1db677e commit a76c46f
Show file tree
Hide file tree
Showing 11 changed files with 8,046 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const copyUtils = require("webpack-cli-utils/copy-utils");
*
* @returns {Generator} A class extending Generator
*/
function webpackGenerator(
function addonGenerator(
prompts,
templateDir,
copyFiles,
Expand Down Expand Up @@ -74,4 +74,4 @@ function webpackGenerator(
};
}

module.exports = webpackGenerator;
module.exports = addonGenerator;
19 changes: 16 additions & 3 deletions packages/generators/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
/*export from {
import addGenerator from "./add-generator";
import initGenerator from "./init-generator";
import loaderGenerator from "./loader-generator";
import pluginGenerator from "./plugin-generator";
import removeGenerator from "./remove-generator";
import updateGenerator from "./update-generator";
import addonGenerator from "./addon-generator";

}
*/
module.exports = {
addGenerator,
initGenerator,
loaderGenerator,
pluginGenerator,
removeGenerator,
updateGenerator,
webpackGenerator
};
4 changes: 2 additions & 2 deletions packages/generators/loader-generator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require("path");
const _ = require("lodash");
const webpackGenerator = require("./webpack-generator");
const addonGenerator = require("./addon-generator");

/**
* Formats a string into webpack loader format
Expand All @@ -26,7 +26,7 @@ function makeLoaderName(name) {
* @extends {Generator}
*/

const LoaderGenerator = webpackGenerator(
const LoaderGenerator = addonGenerator(
[
{
type: "input",
Expand Down
4 changes: 3 additions & 1 deletion packages/generators/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/generators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"license": "MIT",
"dependencies": {
"glob-all": "^3.1.0",
"mkdirp": "^0.5.1",
"webpack-addons": "^1.1.5",
"yeoman-generator": "^2.0.5"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/generators/plugin-generator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require("path");
const _ = require("lodash");
const webpackGenerator = require("./webpack-generator");
const addonGenerator = require("./addon-generator");

/**
* A yeoman generator class for creating a webpack
Expand All @@ -10,7 +10,7 @@ const webpackGenerator = require("./webpack-generator");
* @class PluginGenerator
* @extends {Generator}
*/
const PluginGenerator = webpackGenerator(
const PluginGenerator = addonGenerator(
[
{
type: "input",
Expand Down
4 changes: 2 additions & 2 deletions packages/init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const chalk = require("chalk");
const pEachSeries = require("p-each-series");

const runPrettier = require("../utils/run-prettier");
const astTransform = require("../ast");
const propTypes = require("../utils/prop-types");
const astTransform = require("@webpack-cli/utils/recursive-parser");
const propTypes = require("@webpack-cli/utils/prop-types");

/**
*
Expand Down
Loading

0 comments on commit a76c46f

Please sign in to comment.