Skip to content

Commit

Permalink
Update eslint-plugin-unicorn (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg authored and sindresorhus committed Jan 20, 2018
1 parent 8ef54e0 commit b2e5428
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/open-report.js
Expand Up @@ -33,9 +33,9 @@ const resultToFile = result => {
};

const files = (report, predicate) => report.results
.filter(predicate)
.filter(result => predicate(result))
.sort(sortResults)
.map(resultToFile);
.map(result => resultToFile(result));

module.exports = report => {
if (report.errorCount > 0) {
Expand Down
2 changes: 1 addition & 1 deletion lib/options-manager.js
Expand Up @@ -241,7 +241,7 @@ const findApplicableOverrides = (path, overrides) => {
};

const mergeApplicableOverrides = (baseOptions, applicableOverrides) => {
applicableOverrides = applicableOverrides.map(normalizeOpts);
applicableOverrides = applicableOverrides.map(override => normalizeOpts(override));
const overrides = [emptyOptions(), baseOptions].concat(applicableOverrides, mergeFn);
return mergeWith.apply(null, overrides);
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -82,7 +82,7 @@
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-prettier": "^2.3.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-unicorn": "^2.1.0",
"eslint-plugin-unicorn": "^3.0.1",
"get-stdin": "^5.0.0",
"globby": "^7.1.1",
"has-flag": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/main.js
Expand Up @@ -57,7 +57,7 @@ test('ignore files in .gitignore', async t => {
const reports = JSON.parse(err.stdout);
const files = reports
.map(report => path.relative(cwd, report.filePath))
.map(slash);
.map(report => slash(report));
t.deepEqual(files, ['index.js', 'test/bar.js']);
});

Expand Down

0 comments on commit b2e5428

Please sign in to comment.