Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@
},
"devDependencies": {
"babel": "5.1.*",
"babel-eslint": "^2.0.2",
"babel-eslint": "^3.0.1",
"coveralls": "^2.11.2",
"dateformat": "^1.0.11",
"eslint": "^0.18.0",
"eslint": "^0.19.0",
"istanbul": "^0.3.13",
"jsesc": "^0.5.0",
"jshint": "^2.6.3",
Expand Down
6 changes: 2 additions & 4 deletions src/annotation/annotations/alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ export default function alias(env) {
return;
}

let alias = item.alias;
let name = item.context.name;

let aliasedItem = Array.find(data, i => i.context.name === alias);
let aliasedItem = Array.find(data, i => i.context.name === item.alias);

if (aliasedItem === undefined) {
env.logger.warn(`Item \`${name}\` is an alias of \`${alias}\` but this item doesn't exist.`);
env.logger.warn(`Item \`${name}\` is an alias of \`${item.alias}\` but this item doesn't exist.`);
delete item.alias;
return;
}
Expand Down
6 changes: 3 additions & 3 deletions src/recurse.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export default function recurse() {
let pattern = path.resolve(file.path, '**/*.+(sass|scss)');

vfs.src(pattern)
.pipe(through.obj((file, enc, cb) => {
.pipe(through.obj((_file, _enc, _cb) => {
// Append to "parent" stream.
this.push(file);
cb();
this.push(_file);
_cb();
}, () => {
// All done.
cb();
Expand Down
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export const splitNamespace = value => value.split(ns);
export function denodeify(fn) {
return function (...args) {
return new Promise((resolve, reject) => {
fn(...args, (err, ...args) => {
fn(...args, (err, ...cbargs) => {
if (err) {
reject(err);
return;
}

resolve(...args);
resolve(...cbargs);
});
});
};
Expand Down