Skip to content

Commit 6c78c5c

Browse files
committed
⬆️ Update dependencies
1 parent b051c73 commit 6c78c5c

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

.eslintrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
extends: airbnb-base
2+
rules:
3+
no-tabs: 0
4+
comma-dangle:
5+
- error
6+
- objects: only-multiline
7+
functions: never

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
2+
npm-debug.log
23

34
example

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ createLibrary({
4141
}).then(() => {
4242
console.log(`
4343
Created library ${name}. It took ${Date.now() - beforeCreation}ms.`);
44-
}).catch(err => {
44+
}).catch((err) => {
4545
console.error(`Error while creating library ${name}`);
4646

4747
if (err.stack) {

lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ module.exports = ({
4848
it is recommended to customize the prefix.`);
4949
}
5050

51-
return Promise.all(templates.filter(template => {
51+
return Promise.all(templates.filter((template) => {
5252
if (template.platform) {
5353
return (platforms.indexOf(template.platform) >= 0);
5454
}
5555

5656
return true;
57-
}).map(template => {
57+
}).map((template) => {
5858
if (!template.name) {
5959
return Promise.resolve();
6060
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "lib.js",
77
"scripts": {
88
"lint": "eslint .",
9-
"test": "echo \"Error: no test specified\" && exit 1"
9+
"test": "npm run lint"
1010
},
1111
"repository": {
1212
"type": "git",
@@ -35,11 +35,11 @@
3535
"param-case": "^2.1.0",
3636
"pascal-case": "^2.0.0",
3737
"path-exists": "^3.0.0",
38-
"uuid": "^2.0.3"
38+
"uuid": "^3.0.1"
3939
},
4040
"devDependencies": {
41-
"eslint": "^3.1.0",
42-
"eslint-config-airbnb-base": "^4.0.2",
43-
"eslint-plugin-import": "^1.10.3"
41+
"eslint": "^3.16.0",
42+
"eslint-config-airbnb-base": "^11.1.0",
43+
"eslint-plugin-import": "^2.2.0"
4444
}
4545
}

utils/createFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = (filename, content) =>
55
fs.writeFile(
66
filename,
77
content,
8-
err => {
8+
(err) => {
99
if (err) {
1010
return reject(err);
1111
}

utils/createFolder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = folder =>
77
return;
88
}
99

10-
mkdirp(folder, err => {
10+
mkdirp(folder, (err) => {
1111
if (err) {
1212
return reject(err);
1313
}

0 commit comments

Comments
 (0)