Skip to content

Commit

Permalink
Eslint update
Browse files Browse the repository at this point in the history
latest from published packages
  • Loading branch information
tomekmarchi committed Nov 23, 2023
1 parent 2f82e66 commit 13999c6
Show file tree
Hide file tree
Showing 62 changed files with 1,290 additions and 810 deletions.
542 changes: 0 additions & 542 deletions .eslintrc

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
npm install @babel/core
npm install @babel/eslint-parser
npm install @babel/preset-env
npm install eslint-plugin-jsdoc
- name: Run ESLint
run: npx eslint --config source/.eslintrc --ext .js --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif ./source/
run: npx eslint --config eslint.config.js --ext .js --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif ./source/
continue-on-error: true

- name: Upload analysis results to GitHub
Expand Down
Empty file removed .github/workflows/release.yml
Empty file.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@
</pre>
---

### [v3.0.62](https://github.com/universalweb/Acid/compare/v3.0.62...v3.0.62)
DATE: 2023-10-18
### [v3.0.63](https://github.com/universalweb/Acid/compare/v3.0.63...v3.0.63)
DATE: 2023-11-20

---
### [v3.0.63](https://github.com/universalweb/Acid/compare/v3.0.62...v3.0.63)
DATE: 2023-11-20

### Commits

- This patches for loops [`c862db5`](https://github.com/universalweb/Acid/commit/c862db5c6034005a626181bc8a614ce0b81b9e71)

---
### [v3.0.62](https://github.com/universalweb/Acid/compare/v3.0.61...v3.0.62)
Expand Down
2 changes: 1 addition & 1 deletion build/basic.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/basic.js.map

Large diffs are not rendered by default.

88 changes: 69 additions & 19 deletions build/browser.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
typeof exports === 'object' && typeof module !== 'undefined' ?
factory(exports) :
typeof define === 'function' && define.amd ?
define(['exports'], factory) :
((global = typeof globalThis !== 'undefined' ? globalThis : global || self), factory((global.$ = {})));
define(['exports'], factory) :
((global = typeof globalThis !== 'undefined' ? globalThis : global || self), factory((global.$ = {})));
})(this, (exports) => {
'use strict';
/**
Expand Down Expand Up @@ -350,6 +350,22 @@
* assert(isArray(2), false);
*/
const isArray = Array.isArray;
/**
* Checks if the value is not an array. This references Array.isArray.
*
* @function isNotArray
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNotArray, assert } from '@universalweb/acid';
* assert(isNotArray([]), false);
* assert(isNotArray(2), true);
*/
function isNotArray(source) {
return !isArray(source);
}
/**
* Ensures the source is an array if not the source is wrapped in a array or an empty array is returned.
*
Expand Down Expand Up @@ -2254,6 +2270,35 @@
return item[property](value, index);
});
}
/**
* Checks if the value is a number.
*
* @function isNumber
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNumber, assert } from '@universalweb/acid';
* assert(isNumber(1), true);
*/
const isNumberCall = isConstructorNameFactory('Number');
const isNumber = isTypeFactory(isNumberCall);
/**
* Checks if the value is not a number.
*
* @function isNotNumber
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNotNumber, assert } from '@universalweb/acid';
* assert(isNotNumber(1), false);
*/
function isNotNumber(source) {
return !isNumber(source);
}
/**
* Checks if the value is a string.
*
Expand All @@ -2263,11 +2308,27 @@
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isString } from '@universalweb/acid';
* isString('Lucy');
* // => true
* import { isString, assert } from '@universalweb/acid';
* assert(isString('hello'), true);
* assert(isString(1), false);
*/
const isString = isConstructorFactory(String);
/**
* Checks if the value is not a string.
*
* @function isNotString
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNotString, assert } from '@universalweb/acid';
* assert(isNotString(1), true);
* assert(isNotString('hello'), false);
*/
function isNotString(source) {
return !isString(source);
}
/**
* Returns an array of the plucked sources from the object. Sources are plucked in the order given by the array.
*
Expand Down Expand Up @@ -4249,20 +4310,6 @@
}
return false;
};
/**
* Checks if the value is a number.
*
* @function isNumber
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNumber, assert } from '@universalweb/acid';
* assert(isNumber(1), true);
*/
const isNumberCall = isConstructorNameFactory('Number');
const isNumber = isTypeFactory(isNumberCall);
/**
* Checks if the value is a RegExp.
*
Expand Down Expand Up @@ -7667,6 +7714,9 @@
exports.isNegative = isNegative;
exports.isNodeList = isNodeList;
exports.isNodejs = isNodejs;
exports.isNotArray = isNotArray;
exports.isNotNumber = isNotNumber;
exports.isNotString = isNotString;
exports.isNull = isNull;
exports.isNumber = isNumber;
exports.isNumberCall = isNumberCall;
Expand Down
2 changes: 1 addition & 1 deletion build/browser.bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/browser.js.map

Large diffs are not rendered by default.

90 changes: 70 additions & 20 deletions build/index.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
typeof exports === 'object' && typeof module !== 'undefined' ?
factory(exports, require('fs/promises'), require('path'), require('url')) :
typeof define === 'function' && define.amd ?
define(['exports', 'fs/promises', 'path', 'url'], factory) :
((global = typeof globalThis !== 'undefined' ? globalThis : global || self),
factory((global.$ = {}), global.promises, global.path, global.url));
define(['exports', 'fs/promises', 'path', 'url'], factory) :
((global = typeof globalThis !== 'undefined' ? globalThis : global || self),
factory((global.$ = {}), global.promises, global.path, global.url));
})(this, (exports, promises, path, url) => {
'use strict';
/**
Expand Down Expand Up @@ -351,6 +351,22 @@
* assert(isArray(2), false);
*/
const isArray = Array.isArray;
/**
* Checks if the value is not an array. This references Array.isArray.
*
* @function isNotArray
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNotArray, assert } from '@universalweb/acid';
* assert(isNotArray([]), false);
* assert(isNotArray(2), true);
*/
function isNotArray(source) {
return !isArray(source);
}
/**
* Ensures the source is an array if not the source is wrapped in a array or an empty array is returned.
*
Expand Down Expand Up @@ -2255,6 +2271,35 @@
return item[property](value, index);
});
}
/**
* Checks if the value is a number.
*
* @function isNumber
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNumber, assert } from '@universalweb/acid';
* assert(isNumber(1), true);
*/
const isNumberCall = isConstructorNameFactory('Number');
const isNumber = isTypeFactory(isNumberCall);
/**
* Checks if the value is not a number.
*
* @function isNotNumber
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNotNumber, assert } from '@universalweb/acid';
* assert(isNotNumber(1), false);
*/
function isNotNumber(source) {
return !isNumber(source);
}
/**
* Checks if the value is a string.
*
Expand All @@ -2264,11 +2309,27 @@
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isString } from '@universalweb/acid';
* isString('Lucy');
* // => true
* import { isString, assert } from '@universalweb/acid';
* assert(isString('hello'), true);
* assert(isString(1), false);
*/
const isString = isConstructorFactory(String);
/**
* Checks if the value is not a string.
*
* @function isNotString
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNotString, assert } from '@universalweb/acid';
* assert(isNotString(1), true);
* assert(isNotString('hello'), false);
*/
function isNotString(source) {
return !isString(source);
}
/**
* Returns an array of the plucked sources from the object. Sources are plucked in the order given by the array.
*
Expand Down Expand Up @@ -4250,20 +4311,6 @@
}
return false;
};
/**
* Checks if the value is a number.
*
* @function isNumber
* @category type
* @param {*} source - Object to be checked.
* @returns {Boolean} - Returns true or false.
*
* @example
* import { isNumber, assert } from '@universalweb/acid';
* assert(isNumber(1), true);
*/
const isNumberCall = isConstructorNameFactory('Number');
const isNumber = isTypeFactory(isNumberCall);
/**
* Checks if the value is a RegExp.
*
Expand Down Expand Up @@ -7098,6 +7145,9 @@
exports.isMatchObject = isMatchObject;
exports.isNegative = isNegative;
exports.isNodejs = isNodejs;
exports.isNotArray = isNotArray;
exports.isNotNumber = isNotNumber;
exports.isNotString = isNotString;
exports.isNull = isNull;
exports.isNumber = isNumber;
exports.isNumberCall = isNumberCall;
Expand Down
2 changes: 1 addition & 1 deletion build/index.bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/module/basic.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/module/basic.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 13999c6

Please sign in to comment.