Skip to content

Commit 6cad99b

Browse files
committed
fix: resolve lint errors
1 parent 81737cd commit 6cad99b

File tree

6 files changed

+74
-86
lines changed

6 files changed

+74
-86
lines changed

lib/node_modules/@stdlib/assert/has-same-constructor/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,6 @@ bool = hasSameConstructor( 42, 'Hello' );
127127

128128
<section class="related">
129129

130-
* * *
131-
132-
## See Also
133-
134-
- <span class="package-name">[`@stdlib/assert/has-same-constructor`][@stdlib/assert/has-same-constructor]</span><span class="delimiter">: </span><span class="description">test if two values have the same constructor.</span>
135-
136130
</section>
137131

138132
<!-- /.related -->
@@ -143,8 +137,6 @@ bool = hasSameConstructor( 42, 'Hello' );
143137

144138
<!-- <related-links> -->
145139

146-
[@stdlib/assert/has-same-constructor]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-same-constructor
147-
148140
<!-- </related-links> -->
149141

150142
</section>

lib/node_modules/@stdlib/assert/has-same-constructor/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ bench( pkg, function benchmark( b ) {
6363
}
6464
b.pass( 'benchmark finished' );
6565
b.end();
66-
});
66+
});

lib/node_modules/@stdlib/assert/has-same-constructor/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ import hasSameConstructor = require( './index' );
3131
{
3232
hasSameConstructor(); // $ExpectError
3333
hasSameConstructor( new Date(), new Date(), new Date() ); // $ExpectError
34-
}
34+
}

lib/node_modules/@stdlib/assert/has-same-constructor/examples/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,29 @@
2020

2121
'use strict';
2222

23-
var hasSameConstructor = require( "../lib" );
23+
var hasSameConstructor = require( './' );
2424

2525
var bool = hasSameConstructor( [1, 2, 3], ['a', 'b', 'c'] );
2626
console.log( bool );
2727
// => true
2828

29-
bool = hasSameConstructor( [1, 2, 3], { key: 'value' } );
29+
bool = hasSameConstructor( [1, 2, 3], { key: 'value' });
3030
console.log( bool );
3131
// => false
3232

33-
bool = hasSameConstructor( { name: 'Alice' }, { age: 30 } );
33+
bool = hasSameConstructor({ name: 'Alice' }, { age: 30 });
3434
console.log( bool );
3535
// => true
3636

37-
bool = hasSameConstructor( { name: 'Alice' }, new Date() );
37+
bool = hasSameConstructor({ name: 'Alice' }, new Date() );
3838
console.log( bool );
3939
// => false
4040

4141
bool = hasSameConstructor( new Date(), new Date() );
4242
console.log( bool );
4343
// => true
4444

45-
bool = hasSameConstructor( null, { name: 'Alice' } );
45+
bool = hasSameConstructor( null, { name: 'Alice' });
4646
console.log( bool );
4747
// => false
4848

@@ -58,6 +58,6 @@ bool = hasSameConstructor( 42, 'Hello' );
5858
console.log( bool );
5959
// => false
6060

61-
bool = hasSameConstructor( function() {}, () => {} );
61+
bool = hasSameConstructor( function () {}, () => {} );
6262
console.log( bool );
6363
// => true

lib/node_modules/@stdlib/assert/has-same-constructor/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ function hasSameConstructor( x, y ) {
5757

5858
// EXPORTS //
5959

60-
module.exports = hasSameConstructor;
60+
module.exports = hasSameConstructor;

lib/node_modules/@stdlib/assert/has-same-constructor/test/test.js

Lines changed: 65 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable object-curly-newline */
20-
2119
'use strict';
2220

2321
// MODULES //
2422

2523
var tape = require( 'tape' );
26-
var hasSameConstructor = require( './../lib' )
24+
var hasSameConstructor = require( './../lib' );
2725

2826

2927
// TESTS //
@@ -35,102 +33,100 @@ tape( 'main export is a function', function test( t ) {
3533
});
3634

3735
tape( 'compare two null values', function test( t ) {
38-
var bool;
36+
var bool;
3937

40-
bool = hasSameConstructor( null, null )
41-
t.strictEqual( bool, false, 'returns false for null and null' )
38+
bool = hasSameConstructor( null, null );
39+
t.strictEqual( bool, false, 'returns false for null and null' );
4240

43-
t.end()
44-
})
41+
t.end();
42+
});
4543

4644
tape( 'compare two Number objects', function test( t ) {
47-
var bool;
48-
49-
bool = hasSameConstructor( new Number(5), new Number(10) );
50-
t.strictEqual( bool, true, 'returns true for matching Number objects' );
51-
52-
t.end();
45+
var bool;
46+
47+
bool = hasSameConstructor( new Number(5), new Number(10) );
48+
t.strictEqual( bool, true, 'returns true for matching Number objects' );
49+
50+
t.end();
5351
});
5452

5553
tape( 'compare two Arrays', function test( t ) {
56-
var bool;
57-
58-
bool = hasSameConstructor( [], [] );
59-
t.strictEqual( bool, true, 'returns true for matching Arrays' );
60-
61-
t.end();
54+
var bool;
55+
56+
bool = hasSameConstructor( [], [] );
57+
t.strictEqual( bool, true, 'returns true for matching Arrays' );
58+
59+
t.end();
6260
});
6361

6462
tape( 'compare Number and Array', function test(t) {
65-
var bool;
66-
67-
bool = hasSameConstructor( new Number(5), [] );
68-
t.strictEqual( bool, false, 'returns false for different constructors' );
69-
70-
t.end();
63+
var bool;
64+
65+
bool = hasSameConstructor( new Number(5), [] );
66+
t.strictEqual( bool, false, 'returns false for different constructors' );
67+
68+
t.end();
7169
});
7270

7371
tape( 'compare two null values', function test( t ) {
74-
var bool;
75-
76-
bool = hasSameConstructor( null, null );
77-
t.strictEqual( bool, false, 'returns false for null and null' );
78-
79-
t.end();
72+
var bool;
73+
74+
bool = hasSameConstructor( null, null );
75+
t.strictEqual( bool, false, 'returns false for null and null' );
76+
77+
t.end();
8078
});
8179

8280
tape( 'compare two undefined values', function test( t ) {
83-
var bool;
84-
85-
bool = hasSameConstructor( undefined, undefined );
86-
t.strictEqual( bool, false, 'returns false for undefined and undefined' );
87-
88-
t.end();
81+
var bool;
82+
83+
bool = hasSameConstructor( undefined, undefined );
84+
t.strictEqual( bool, false, 'returns false for undefined and undefined' );
85+
86+
t.end();
8987
});
9088

9189
tape( 'compare null and Number object', function test( t ) {
92-
var bool;
93-
94-
bool = hasSameConstructor( null, new Number(5) );
95-
t.strictEqual( bool, false, 'returns false for null and Number object' );
96-
97-
t.end();
90+
var bool;
91+
92+
bool = hasSameConstructor( null, new Number(5) );
93+
t.strictEqual( bool, false, 'returns false for null and Number object' );
94+
95+
t.end();
9896
});
9997

10098
tape( 'compare undefined and Array', function test( t ) {
101-
var bool;
102-
103-
bool = hasSameConstructor( undefined, [] );
104-
t.strictEqual( bool, false, 'returns false for undefined and Array' );
105-
106-
t.end();
99+
var bool;
100+
101+
bool = hasSameConstructor( undefined, [] );
102+
t.strictEqual( bool, false, 'returns false for undefined and Array' );
103+
104+
t.end();
107105
});
108106

109107
tape( 'compare two number primitives', function test( t ) {
110-
var bool;
111-
112-
bool = hasSameConstructor( 5, 5 );
113-
t.strictEqual( bool, true, 'returns true for matching number primitives' );
114-
115-
t.end();
108+
var bool;
109+
110+
bool = hasSameConstructor( 5, 5 );
111+
t.strictEqual( bool, true, 'returns true for matching number primitives' );
112+
113+
t.end();
116114
});
117115

118116
tape( 'compare number and string primitives', function test( t ) {
119-
var bool;
120-
121-
bool = hasSameConstructor( 5, 'hello' );
122-
t.strictEqual( bool, false, 'returns false for different primitive types' );
123-
124-
t.end();
117+
var bool;
118+
119+
bool = hasSameConstructor( 5, 'hello' );
120+
t.strictEqual( bool, false, 'returns false for different primitive types' );
121+
122+
t.end();
125123
});
126124

127125
tape( 'compare number primitive and Number object', function test( t ) {
128-
var bool;
129-
130-
bool = hasSameConstructor( 5, new Number( 5 ) );
131-
t.strictEqual( bool, true, 'returns true for matching number primitive and object' );
132-
133-
t.end();
134-
});
126+
var bool;
135127

128+
bool = hasSameConstructor( 5, new Number( 5 ) );
129+
t.strictEqual( bool, true, 'returns true for matching number primitive and object' );
136130

131+
t.end();
132+
});

0 commit comments

Comments
 (0)