mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Linter: apply all recommended biome settings
Enforces previously-skipped useArrowFunction check
This commit is contained in:
@@ -742,9 +742,7 @@ function convolve (kernel) {
|
||||
}
|
||||
// Default scale is sum of kernel values
|
||||
if (!is.integer(kernel.scale)) {
|
||||
kernel.scale = kernel.kernel.reduce(function (a, b) {
|
||||
return a + b;
|
||||
}, 0);
|
||||
kernel.scale = kernel.kernel.reduce((a, b) => a + b, 0);
|
||||
}
|
||||
// Clip scale to a minimum value of 1
|
||||
if (kernel.scale < 1) {
|
||||
@@ -989,7 +987,7 @@ function modulate (options) {
|
||||
* @module Sharp
|
||||
* @private
|
||||
*/
|
||||
module.exports = function (Sharp) {
|
||||
module.exports = (Sharp) => {
|
||||
Object.assign(Sharp.prototype, {
|
||||
autoOrient,
|
||||
rotate,
|
||||
|
||||
Reference in New Issue
Block a user