mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Switch linter from semistandard to biome
Uses the recommended rules apart from complexity/useArrowFunction, which would affect about 1700 lines of code with little benefit right now. This is something that can be addressed over time.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
// Copyright 2013 Lovell Fuller and others.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
'use strict';
|
||||
|
||||
const imagemagick = require('imagemagick');
|
||||
const gm = require('gm');
|
||||
const assert = require('assert');
|
||||
const assert = require('node:assert');
|
||||
const Benchmark = require('benchmark');
|
||||
|
||||
const sharp = require('../../');
|
||||
@@ -73,5 +71,5 @@ new Benchmark.Suite('random').add('imagemagick', {
|
||||
console.log(String(event.target));
|
||||
}).on('complete', function () {
|
||||
const winner = this.filter('fastest').map('name');
|
||||
assert.strictEqual('sharp', String(winner), 'sharp was slower than ' + winner);
|
||||
assert.strictEqual('sharp', String(winner), `sharp was slower than ${winner}`);
|
||||
}).run();
|
||||
|
||||
Reference in New Issue
Block a user