Skip to content

Commit b004ab0

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into wasm/dmeanpn
2 parents c48f8d4 + 2de2781 commit b004ab0

File tree

687 files changed

+31947
-1721
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

687 files changed

+31947
-1721
lines changed

etc/eslint/rules/typescript.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ rules[ 'import/no-deprecated' ] = 'error';
13661366
* @name import/no-extraneous-dependencies
13671367
* @memberof rules
13681368
* @type {string}
1369-
* @default 'error'
1369+
* @default 'off'
13701370
* @see [import/no-extraneous-dependencies]{@link https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md}
13711371
*
13721372
* @example
@@ -1376,22 +1376,28 @@ rules[ 'import/no-deprecated' ] = 'error';
13761376
* // Bad...
13771377
* import foo from 'some-extranous-module';
13781378
*/
1379-
rules[ 'import/no-extraneous-dependencies' ] = 'error';
1379+
rules[ 'import/no-extraneous-dependencies' ] = 'off'; // NOTE: disabled to allow imports of `@stdlib/*` type declarations
13801380

13811381
/**
13821382
* Prevents importing the submodules of other modules.
13831383
*
13841384
* @name import/no-internal-modules
13851385
* @memberof rules
13861386
* @type {string}
1387-
* @default 'error'
1387+
* @default 'off'
13881388
* @see [import/no-internal-modules]{@link https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md}
13891389
*
13901390
* @example
13911391
* // Bad...
13921392
* import something from 'module/some/internal/path';
13931393
*/
1394-
rules[ 'import/no-internal-modules' ] = 'error';
1394+
rules[ 'import/no-internal-modules' ] = [
1395+
'error', {
1396+
'allow': [
1397+
'@stdlib/**'
1398+
]
1399+
}
1400+
];
13951401

13961402
/**
13971403
* Forbids import statements that import nothing.

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-indent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-indent' );
4242

4343
**Bad**:
4444

45-
<!-- eslint-disable stdlib/jsdoc-list-item-indent, stdlib/jsdoc-list-item-indent, stdlib/jsdoc-markdown-remark -->
45+
<!-- eslint-disable stdlib/jsdoc-list-item-indent, stdlib/jsdoc-markdown-remark -->
4646

4747
```javascript
4848
/**

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function main( context ) {
5555

5656
opts = {};
5757
options = context.options[ 0 ];
58-
if ( hasOwnProp( options, 'checkBlanks' ) ) {
58+
if ( options && hasOwnProp( options, 'checkBlanks' ) ) {
5959
opts.checkBlanks = options.checkBlanks;
6060
}
6161

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ code = [
101101
'* @module @stdlib/assert/isarray',
102102
'*',
103103
'* @example',
104-
'* var isArray = require( \'@stdlib/assert/is-aray\' );',
104+
'* var isArray = require( \'@stdlib/assert/is-array\' );',
105105
'*',
106106
'* var bool = isArray( [] );',
107107
'* // returns true',
@@ -148,7 +148,7 @@ result = linter.verify( code, {
148148
'column': 1,
149149
'nodeType': null,
150150
'endLine': 14,
151-
'endColumn': 3 } ]
151+
'endColumn': 3
152152
}
153153
]
154154
*/

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function beep() {
8282
}
8383
```
8484

85-
The [rule][eslint-rules] may be configured using the same options as supported by [remark][remark-lint-ordered-list-marker-value].
85+
The [rule][eslint-rules] may be configured using the same options as supported by [remark][remark-lint-ordered-list-marker-value].
8686

8787
- `ordered`: increment list item markers by one (default).
8888
- `single`: list item markers should all have the same starting value.

lib/node_modules/@stdlib/array/base/bifurcate-entries-by/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
If a predicate function returns a truthy value, an array value is placed in
1212
the first group; otherwise, an array value is placed in the second group.
1313

14-
If provided an empty array, the function returns an empty object.
14+
If provided an empty array, the function returns an empty array.
1515

1616
Parameters
1717
----------
@@ -27,7 +27,7 @@
2727

2828
Returns
2929
-------
30-
out: Object
30+
out: Array
3131
Split results.
3232

3333
Examples

lib/node_modules/@stdlib/array/base/broadcasted-quaternary3d/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var w = filled3dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros3d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary3d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/broadcasted-quaternary4d/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bquaternary4d( [ x, y, z, w, out ], shapes, add );
6464

6565
The function accepts the following arguments:
6666

67-
- **arrays**: array-like object containing two input nested arrays and one output nested array.
67+
- **arrays**: array-like object containing four input nested arrays and one output nested array.
6868
- **shapes**: array shapes.
6969
- **fcn**: quaternary function to apply.
7070

@@ -116,7 +116,7 @@ var w = filled4dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros4d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary4d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/broadcasted-quaternary5d/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var w = filled5dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros5d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary5d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/count-ifs/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>(
144144
* var x1 = [ -1, -2, 4, 5, -8 ];
145145
* var x2 = [ 0, 4, 3, 2, 12 ];
146146
*
147-
* var n = countIfs( x0, predicate0, x1, predicate1 );
147+
* var n = countIfs( x0, predicate0, x1, predicate1, x2, predicate2 );
148148
* // returns 2
149149
*/
150150
declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>( x0: U, predicate0: Predicate<T, U>, x1: U, predicate1: Predicate<T, U>, x2: U, predicate2: Predicate<T, U> ): number;
@@ -230,7 +230,7 @@ declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>(
230230
* var x1 = [ -1, -2, 4, 5, -8 ];
231231
* var x2 = [ 0, 4, 3, 2, 12 ];
232232
* var x3 = [ 2, 9, 3, 6, 5 ];
233-
* var x4 = [ false, true, false, true, true ]
233+
* var x4 = [ false, true, false, true, true ];
234234
*
235235
* var n = countIfs( x0, predicate0, x1, predicate1, x3, predicate3, x4, predicate4 );
236236
* // returns 2

0 commit comments

Comments
 (0)