mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 12:32:42 +00:00
Update to latest @twipped/eslint-config
This commit is contained in:
12
build/.eslintrc.json
Normal file
12
build/.eslintrc.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": "../.eslintrc",
|
||||
"rules": {
|
||||
"import/no-extraneous-dependencies": [
|
||||
"error",
|
||||
{
|
||||
"devDependencies": true
|
||||
}
|
||||
],
|
||||
"import/no-dynamic-require": "off"
|
||||
}
|
||||
}
|
||||
@@ -63,10 +63,10 @@ const actions = {
|
||||
|
||||
// if upscale is not requested, restrict size
|
||||
if (!options.upscale) {
|
||||
if (!isNaN(options.width)) {
|
||||
if (!Number.isNaN(options.width)) {
|
||||
options.width = Math.min(options.width, size.width);
|
||||
}
|
||||
if (!isNaN(options.height)) {
|
||||
if (!Number.isNaN(options.height)) {
|
||||
options.height = Math.min(options.height, size.height);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ function allOf (...args) {
|
||||
return (tok) => allBy(args, (check) => check(tok));
|
||||
}
|
||||
|
||||
function isNumber (input) { return typeof input === 'number' && !isNaN(input); }
|
||||
function isNumber (input) { return typeof input === 'number' && !Number.isNaN(input); }
|
||||
function isString (input) { return typeof input === 'string'; }
|
||||
function isBoolean (input) { return typeof input === 'boolean'; }
|
||||
function isFunction (input) { return typeof input === 'function'; }
|
||||
@@ -807,8 +807,7 @@ function pathinate (object, delimiter = '.') {
|
||||
* Iterates over a collection and generates an object based on tuple returned from the iteratee.
|
||||
*
|
||||
* @param {Object|Array|Map|Set} collection
|
||||
* @param {Function} iteratee Callback invoked for each item, receives `value, key, index`, returns `[key, value]`;
|
||||
* @param cb
|
||||
* @param {Function} cb Callback invoked for each item, receives `value, key, index`, returns `[key, value]`;
|
||||
* @returns {Object}
|
||||
*/
|
||||
function mapReduce (collection, cb) {
|
||||
|
||||
Reference in New Issue
Block a user