Skip to content

Commit 12e5b52

Browse files
committed
ESLint: Adjust unicorn rule names
1 parent 394ecd9 commit 12e5b52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = {
8484
files: ['mirage/**/*.js'],
8585
rules: {
8686
// disabled because of different `.find()` meaning
87-
'unicorn/no-fn-reference-in-iterator': 'off',
87+
'unicorn/no-array-callback-reference': 'off',
8888
},
8989
},
9090

mirage/route-handlers/summary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function summary(schema) {
99
let most_recently_downloaded = crates.sort((a, b) => b.recent_downloads - a.recent_downloads).slice(0, 10);
1010

1111
let num_crates = crates.length;
12-
// eslint-disable-next-line unicorn/no-reduce
12+
// eslint-disable-next-line unicorn/no-array-reduce
1313
let num_downloads = crates.models.reduce((sum, crate) => sum + crate.downloads, 0);
1414

1515
let popular_categories = schema.categories

0 commit comments

Comments
 (0)