Skip to content

Commit c0a7291

Browse files
committed
Fix lint errors and disable lint rule
1 parent b24fce9 commit c0a7291

File tree

8 files changed

+63
-27
lines changed

8 files changed

+63
-27
lines changed

lib/node_modules/@stdlib/plot/sparklines/unicode/base/test/test.format_data.js

Lines changed: 45 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,33 @@ tape( 'the function returns input data in a standardized format', function test(
3939
var v;
4040

4141
data = [
42-
[{'value':1}],
43-
[{'value':2}],
44-
[{'value':3}]
42+
[
43+
{
44+
'value': 1
45+
}
46+
],
47+
[
48+
{
49+
'value': 2
50+
}
51+
],
52+
[
53+
{
54+
'value': 3
55+
}
56+
]
4557
];
4658

4759
expected = [
48-
{'y':1},
49-
{'y':2},
50-
{'y':3}
60+
{
61+
'y': 1
62+
},
63+
{
64+
'y': 2
65+
},
66+
{
67+
'y': 3
68+
}
5169
];
5270

5371
v = formatData( data, yValue );
@@ -77,12 +95,27 @@ tape( 'the function flags `NaN` and infinite values', function test( t ) {
7795
];
7896

7997
expected = [
80-
{'y':1},
81-
{'y':2},
82-
{'y':3},
83-
{'y':NaN,'flg':'nan'},
84-
{'y':Number.POSITIVE_INFINITY,'flg':'inf'},
85-
{'y':Number.NEGATIVE_INFINITY,'flg':'inf'}
98+
{
99+
'y': 1
100+
},
101+
{
102+
'y': 2
103+
},
104+
{
105+
'y': 3
106+
},
107+
{
108+
'y': NaN,
109+
'flg': 'nan'
110+
},
111+
{
112+
'y': Number.POSITIVE_INFINITY,
113+
'flg': 'inf'
114+
},
115+
{
116+
'y': Number.NEGATIVE_INFINITY,
117+
'flg': 'inf'
118+
}
86119
];
87120

88121
v = formatData( data, yValue );

lib/node_modules/@stdlib/plot/sparklines/unicode/base/test/test.get_data.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,22 @@ tape( 'the function returns standardized chart data', function test( t ) {
4141
var v;
4242

4343
opts = {
44-
'data': [1,2,3]
44+
'data': [ 1, 2, 3 ]
4545
};
4646
context = new Sparkline( opts );
4747

4848
v = getData.call( context );
4949

5050
expected = [
51-
{'y':1},
52-
{'y':2},
53-
{'y':3}
51+
{
52+
'y': 1
53+
},
54+
{
55+
'y': 2
56+
},
57+
{
58+
'y': 3
59+
}
5460
];
5561
t.equal( isArray( v ), true, 'returns an array' );
5662
t.deepEqual( v, expected, 'returns expected data' );

lib/node_modules/@stdlib/plot/sparklines/unicode/column/test/test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ tape( 'the constructor throws if provided a `window` option which is less than t
122122
});
123123

124124
tape( 'an instance has a writable `data` property', function test( t ) {
125-
var chart;
126125
var expected;
126+
var chart;
127127
var opts;
128128

129129
chart = new ColumnChart();
@@ -443,4 +443,3 @@ tape( 'an instance has a `toString` method for serializing a chart to string', f
443443

444444
t.end();
445445
});
446-

lib/node_modules/@stdlib/plot/sparklines/unicode/line/test/test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ tape( 'the constructor throws if provided a `window` option which is less than t
124124
});
125125

126126
tape( 'an instance has a writable `data` property', function test( t ) {
127-
var chart;
128127
var expected;
128+
var chart;
129129
var opts;
130130

131131
chart = new LineChart();
@@ -458,4 +458,3 @@ tape( 'an instance has a `toString` method for serializing a chart to string', f
458458

459459
t.end();
460460
});
461-

lib/node_modules/@stdlib/plot/sparklines/unicode/tristate/test/test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ tape( 'the constructor throws if provided a `window` option which is less than t
120120
});
121121

122122
tape( 'an instance has a writable `data` property', function test( t ) {
123-
var chart;
124123
var expected;
124+
var chart;
125125
var opts;
126126

127127
chart = new TristateChart();
@@ -275,4 +275,3 @@ tape( 'an instance has a `toString` method for serializing a chart to string', f
275275

276276
t.end();
277277
});
278-

lib/node_modules/@stdlib/plot/sparklines/unicode/win-loss/test/test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ tape( 'the constructor throws if provided a `window` option which is less than t
120120
});
121121

122122
tape( 'an instance has a writable `data` property', function test( t ) {
123-
var chart;
124123
var expected;
124+
var chart;
125125
var opts;
126126

127127
chart = new WinLossChart();
@@ -288,4 +288,3 @@ tape( 'an instance has a `toString` method for serializing a chart to string', f
288288

289289
t.end();
290290
});
291-

lib/node_modules/@stdlib/plot/test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ tape( 'the export is an alias for a plot constructor', function test( t ) {
3737
t.strictEqual( plot, Plot, 'is alias' );
3838
t.end();
3939
});
40-

lib/node_modules/@stdlib/plot/unicode/stemleaf/lib/render.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ var exp10 = require( '@stdlib/math/base/special/exp10' );
2626

2727
// FUNCTIONS //
2828

29+
/* eslint-disable stdlib/jsdoc-return-annotations-marker */
30+
2931
/**
3032
* Comparator function to sort numeric array in ascending order.
3133
*
@@ -65,6 +67,8 @@ function ascending2( a, b ) {
6567
return a.val - b.val;
6668
}
6769

70+
/* eslint-enable stdlib/jsdoc-return-annotations-marker */
71+
6872
/**
6973
* Generates a sequence of whitespace characters.
7074
*
@@ -80,7 +84,6 @@ function spaces( n ) {
8084
return new Array( n ).join( ' ' );
8185
}
8286

83-
8487
/**
8588
* Create string representation of stem-and-leaf plot for a single data vector.
8689
*
@@ -147,7 +150,6 @@ function constructSingleDisplay( x, interval ) {
147150
return str;
148151
}
149152

150-
151153
/**
152154
* Create string representation of stem-and-leaf plot for two data vectors.
153155
*

0 commit comments

Comments
 (0)