Skip to content

Commit

Permalink
update devDependencies
Browse files Browse the repository at this point in the history
Highlight: spaces -> tabs shinnn/eslint-config@e92384d
  • Loading branch information
shinnn committed Dec 1, 2017
1 parent 2a1ffd6 commit c3b3637
Show file tree
Hide file tree
Showing 5 changed files with 3,383 additions and 3,215 deletions.
7 changes: 5 additions & 2 deletions .editorconfig
Expand Up @@ -3,10 +3,13 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
indent_style = tab
tab_width = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.{md,yml}]
indent_style = space

[*.md]
trim_trailing_whitespace = false
10 changes: 5 additions & 5 deletions index.js
Expand Up @@ -5,11 +5,11 @@ const {homedir} = require('os');
const enumerateFiles = require('enumerate-files');

module.exports = async function homeFiles(...args) {
const argLen = args.length;
const argLen = args.length;

if (argLen !== 0 && argLen !== 1) {
throw new TypeError(`Expected 0 or 1 argument (Object), but got ${argLen} arguments.`);
}
if (argLen !== 0 && argLen !== 1) {
throw new TypeError(`Expected 0 or 1 argument (Object), but got ${argLen} arguments.`);
}

return enumerateFiles(homedir(), ...args);
return enumerateFiles(homedir(), ...args);
};

0 comments on commit c3b3637

Please sign in to comment.