Skip to content

Commit 963457a

Browse files
author
yashpandit
committed
Solve linting issues
1 parent 7be984f commit 963457a

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

generator.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ module.exports = app => {
88
if (!isValid(app, 'generate-react')) return;
99

1010
app.use(require('generate-project'));
11-
app.register(
12-
'create-react-app',
13-
require('./lib/generators/create-react-app')
14-
);
11+
app.register('create-react-app', require('./lib/generators/create-react-app'));
1512

1613
/**
1714
* Generate a `index.js` file to the current working directory. Learn how to [customize

lib/constants.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module.exports = {
2-
YARN: "yarn",
3-
NPM: "npm",
4-
NPX: "npx",
5-
ADD: "add",
6-
INSTALL: "install",
7-
CREATE_REACT_APP: "create-react-app",
8-
REDUX: "redux",
9-
REACT_REDUX: "react-redux",
10-
MOBX: "mobx",
11-
STYLED_COMPONENTS: "styled-components",
12-
SCSS: "node-sass",
13-
LESS: "less",
14-
ROUTER: "react-router-dom",
15-
ENZYME: "enzyme",
16-
JEST: "jest"
2+
YARN: 'yarn',
3+
NPM: 'npm',
4+
NPX: 'npx',
5+
ADD: 'add',
6+
INSTALL: 'install',
7+
CREATE_REACT_APP: 'create-react-app',
8+
REDUX: 'redux',
9+
REACT_REDUX: 'react-redux',
10+
MOBX: 'mobx',
11+
STYLED_COMPONENTS: 'styled-components',
12+
SCSS: 'node-sass',
13+
LESS: 'less',
14+
ROUTER: 'react-router-dom',
15+
ENZYME: 'enzyme',
16+
JEST: 'jest'
1717
};

lib/spawn.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
"use strict";
1+
'use strict';
22

3-
const spawn = require("child_process").spawn;
3+
const spawn = require('child_process').spawn;
44

55
const defaults = {
6-
stdio: "inherit",
6+
stdio: 'inherit',
77
cwd: process.cwd()
88
};
99

1010
// simple wrapper around cli commands
1111
module.exports = async (cmd, args, options) => {
1212
return new Promise((resolve, reject) => {
1313
const cp = spawn(cmd, args, { ...defaults, ...options });
14-
cp.on("error", reject);
15-
cp.on("close", code => {
14+
cp.on('error', reject);
15+
cp.on('close', code => {
1616
if (code > 0) {
1717
return reject(code);
1818
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"dependencies": {
2424
"is-valid-app": "^0.3.0",
2525
"enquirer": "^2.3.2",
26-
"generate": "^0.14.0",
2726
"generate-project": "^1.0.0"
2827
},
2928
"keywords": [
3029
"generate",
3130
"react"
3231
],
3332
"devDependencies": {
33+
"generate": "^0.14.0",
3434
"gulp-format-md": "^2.0.0"
3535
},
3636
"verb": {
@@ -54,4 +54,4 @@
5454
"gulp"
5555
]
5656
}
57-
}
57+
}

0 commit comments

Comments
 (0)