Skip to content

Commit

Permalink
⬆️ Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
frostney committed Feb 22, 2017
1 parent b051c73 commit 6c78c5c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
extends: airbnb-base
rules:
no-tabs: 0
comma-dangle:
- error
- objects: only-multiline
functions: never
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
npm-debug.log

example
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ createLibrary({
}).then(() => {
console.log(`
Created library ${name}. It took ${Date.now() - beforeCreation}ms.`);
}).catch(err => {
}).catch((err) => {
console.error(`Error while creating library ${name}`);

if (err.stack) {
Expand Down
4 changes: 2 additions & 2 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ module.exports = ({
it is recommended to customize the prefix.`);
}

return Promise.all(templates.filter(template => {
return Promise.all(templates.filter((template) => {
if (template.platform) {
return (platforms.indexOf(template.platform) >= 0);
}

return true;
}).map(template => {
}).map((template) => {
if (!template.name) {
return Promise.resolve();
}
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "lib.js",
"scripts": {
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "npm run lint"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -35,11 +35,11 @@
"param-case": "^2.1.0",
"pascal-case": "^2.0.0",
"path-exists": "^3.0.0",
"uuid": "^2.0.3"
"uuid": "^3.0.1"
},
"devDependencies": {
"eslint": "^3.1.0",
"eslint-config-airbnb-base": "^4.0.2",
"eslint-plugin-import": "^1.10.3"
"eslint": "^3.16.0",
"eslint-config-airbnb-base": "^11.1.0",
"eslint-plugin-import": "^2.2.0"
}
}
2 changes: 1 addition & 1 deletion utils/createFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (filename, content) =>
fs.writeFile(
filename,
content,
err => {
(err) => {
if (err) {
return reject(err);
}
Expand Down
2 changes: 1 addition & 1 deletion utils/createFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = folder =>
return;
}

mkdirp(folder, err => {
mkdirp(folder, (err) => {
if (err) {
return reject(err);
}
Expand Down

0 comments on commit 6c78c5c

Please sign in to comment.