Skip to content

Commit a76c46f

Browse files
committed
chore(linting): fix linting errors
1 parent 1db677e commit a76c46f

File tree

11 files changed

+8046
-16
lines changed

11 files changed

+8046
-16
lines changed

packages/generators/webpack-generator.js renamed to packages/generators/addon-generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const copyUtils = require("webpack-cli-utils/copy-utils");
2424
*
2525
* @returns {Generator} A class extending Generator
2626
*/
27-
function webpackGenerator(
27+
function addonGenerator(
2828
prompts,
2929
templateDir,
3030
copyFiles,
@@ -74,4 +74,4 @@ function webpackGenerator(
7474
};
7575
}
7676

77-
module.exports = webpackGenerator;
77+
module.exports = addonGenerator;

packages/generators/index.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
/*export from {
1+
import addGenerator from "./add-generator";
2+
import initGenerator from "./init-generator";
3+
import loaderGenerator from "./loader-generator";
4+
import pluginGenerator from "./plugin-generator";
5+
import removeGenerator from "./remove-generator";
6+
import updateGenerator from "./update-generator";
7+
import addonGenerator from "./addon-generator";
28

3-
}
4-
*/
9+
module.exports = {
10+
addGenerator,
11+
initGenerator,
12+
loaderGenerator,
13+
pluginGenerator,
14+
removeGenerator,
15+
updateGenerator,
16+
webpackGenerator
17+
};

packages/generators/loader-generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require("path");
22
const _ = require("lodash");
3-
const webpackGenerator = require("./webpack-generator");
3+
const addonGenerator = require("./addon-generator");
44

55
/**
66
* Formats a string into webpack loader format
@@ -26,7 +26,7 @@ function makeLoaderName(name) {
2626
* @extends {Generator}
2727
*/
2828

29-
const LoaderGenerator = webpackGenerator(
29+
const LoaderGenerator = addonGenerator(
3030
[
3131
{
3232
type: "input",

packages/generators/package-lock.json

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/generators/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"license": "MIT",
99
"dependencies": {
1010
"glob-all": "^3.1.0",
11+
"mkdirp": "^0.5.1",
1112
"webpack-addons": "^1.1.5",
1213
"yeoman-generator": "^2.0.5"
1314
}

packages/generators/plugin-generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require("path");
22
const _ = require("lodash");
3-
const webpackGenerator = require("./webpack-generator");
3+
const addonGenerator = require("./addon-generator");
44

55
/**
66
* A yeoman generator class for creating a webpack
@@ -10,7 +10,7 @@ const webpackGenerator = require("./webpack-generator");
1010
* @class PluginGenerator
1111
* @extends {Generator}
1212
*/
13-
const PluginGenerator = webpackGenerator(
13+
const PluginGenerator = addonGenerator(
1414
[
1515
{
1616
type: "input",

packages/init/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const chalk = require("chalk");
66
const pEachSeries = require("p-each-series");
77

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

1212
/**
1313
*

0 commit comments

Comments
 (0)