Skip to content

Commit 200a305

Browse files
committed
chore: fix JavaScript lint errors (issue #7115)
1 parent e1e1e0f commit 200a305

File tree

2 files changed

+12
-305
lines changed
  • lib/node_modules/@stdlib

2 files changed

+12
-305
lines changed

lib/node_modules/@stdlib/_tools/makie/plugins/makie-repl/lib/main.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,9 @@ function plugin( dir, cwd ) {
4040
opts.cwd = dir;
4141
opts.stdio = 'inherit';
4242

43-
args = new Array( 2 );
44-
45-
// Environment variables:
46-
args[ 0 ] = 'REPL_DIR='+cwd;
47-
48-
// Target:
49-
args[ 1 ] = 'repl';
43+
args = [];
44+
args.push( 'REPL_DIR=' + cwd );
45+
args.push( 'repl' );
5046

5147
spawn( 'make', args, opts );
5248
}

lib/node_modules/@stdlib/string/lib/index.js

Lines changed: 9 additions & 298 deletions
Original file line numberDiff line numberDiff line change
@@ -230,320 +230,31 @@ setReadOnly( string, 'nextCodePointIndex', require( '@stdlib/string/next-code-po
230230
setReadOnly( string, 'nextGraphemeClusterBreak', require( '@stdlib/string/next-grapheme-cluster-break' ) );
231231

232232
/**
233-
* @name numGraphemeClusters
234-
* @memberof string
235-
* @readonly
236-
* @type {Function}
237-
* @see {@link module:@stdlib/string/num-grapheme-clusters}
238-
*/
239-
setReadOnly( string, 'numGraphemeClusters', require( '@stdlib/string/num-grapheme-clusters' ) );
240-
241-
/**
242-
* @name num2words
243-
* @memberof string
244-
* @readonly
245-
* @type {Function}
246-
* @see {@link module:@stdlib/string/num2words}
247-
*/
248-
setReadOnly( string, 'num2words', require( '@stdlib/string/num2words' ) );
249-
250-
/**
251-
* @name pad
252-
* @memberof string
253-
* @readonly
254-
* @type {Function}
255-
* @see {@link module:@stdlib/string/pad}
256-
*/
257-
setReadOnly( string, 'pad', require( '@stdlib/string/pad' ) );
258-
259-
/**
260-
* @name pascalcase
261-
* @memberof string
262-
* @readonly
263-
* @type {Function}
264-
* @see {@link module:@stdlib/string/pascalcase}
265-
*/
266-
setReadOnly( string, 'pascalcase', require( '@stdlib/string/pascalcase' ) );
267-
268-
/**
269-
* @name percentEncode
270-
* @memberof string
271-
* @readonly
272-
* @type {Function}
273-
* @see {@link module:@stdlib/string/percent-encode}
274-
*/
275-
setReadOnly( string, 'percentEncode', require( '@stdlib/string/percent-encode' ) );
276-
277-
/**
278-
* @name prevGraphemeClusterBreak
279-
* @memberof string
280-
* @readonly
281-
* @type {Function}
282-
* @see {@link module:@stdlib/string/prev-grapheme-cluster-break}
283-
*/
284-
setReadOnly( string, 'prevGraphemeClusterBreak', require( '@stdlib/string/prev-grapheme-cluster-break' ) );
285-
286-
/**
287-
* @name removeFirst
233+
* @name numCodePoints
288234
* @memberof string
289235
* @readonly
290236
* @type {Function}
291-
* @see {@link module:@stdlib/string/remove-first}
237+
* @see {@link module:@stdlib/string/num-code-points}
292238
*/
293-
setReadOnly( string, 'removeFirst', require( '@stdlib/string/remove-first' ) );
239+
setReadOnly( string, 'numCodePoints', require( '@stdlib/string/num-code-points' ) );
294240

295241
/**
296-
* @name removeLast
297-
* @memberof string
298-
* @readonly
299-
* @type {Function}
300-
* @see {@link module:@stdlib/string/remove-last}
301-
*/
302-
setReadOnly( string, 'removeLast', require( '@stdlib/string/remove-last' ) );
303-
304-
/**
305-
* @name removePunctuation
306-
* @memberof string
307-
* @readonly
308-
* @type {Function}
309-
* @see {@link module:@stdlib/string/remove-punctuation}
310-
*/
311-
setReadOnly( string, 'removePunctuation', require( '@stdlib/string/remove-punctuation' ) );
312-
313-
/**
314-
* @name removeUTF8BOM
315-
* @memberof string
316-
* @readonly
317-
* @type {Function}
318-
* @see {@link module:@stdlib/string/remove-utf8-bom}
319-
*/
320-
setReadOnly( string, 'removeUTF8BOM', require( '@stdlib/string/remove-utf8-bom' ) );
321-
322-
/**
323-
* @name removeWords
324-
* @memberof string
325-
* @readonly
326-
* @type {Function}
327-
* @see {@link module:@stdlib/string/remove-words}
328-
*/
329-
setReadOnly( string, 'removeWords', require( '@stdlib/string/remove-words' ) );
330-
331-
/**
332-
* @name repeat
333-
* @memberof string
334-
* @readonly
335-
* @type {Function}
336-
* @see {@link module:@stdlib/string/repeat}
337-
*/
338-
setReadOnly( string, 'repeat', require( '@stdlib/string/repeat' ) );
339-
340-
/**
341-
* @name replace
342-
* @memberof string
343-
* @readonly
344-
* @type {Function}
345-
* @see {@link module:@stdlib/string/replace}
346-
*/
347-
setReadOnly( string, 'replace', require( '@stdlib/string/replace' ) );
348-
349-
/**
350-
* @name replaceBefore
351-
* @memberof string
352-
* @readonly
353-
* @type {Function}
354-
* @see {@link module:@stdlib/string/replace-before}
355-
*/
356-
setReadOnly( string, 'replaceBefore', require( '@stdlib/string/replace-before' ) );
357-
358-
/**
359-
* @name reverse
360-
* @memberof string
361-
* @readonly
362-
* @type {Function}
363-
* @see {@link module:@stdlib/string/reverse}
364-
*/
365-
setReadOnly( string, 'reverse', require( '@stdlib/string/reverse' ) );
366-
367-
/**
368-
* @name rpad
369-
* @memberof string
370-
* @readonly
371-
* @type {Function}
372-
* @see {@link module:@stdlib/string/right-pad}
373-
*/
374-
setReadOnly( string, 'rpad', require( '@stdlib/string/right-pad' ) );
375-
376-
/**
377-
* @name rtrim
378-
* @memberof string
379-
* @readonly
380-
* @type {Function}
381-
* @see {@link module:@stdlib/string/right-trim}
382-
*/
383-
setReadOnly( string, 'rtrim', require( '@stdlib/string/right-trim' ) );
384-
385-
/**
386-
* @name rtrimN
387-
* @memberof string
388-
* @readonly
389-
* @type {Function}
390-
* @see {@link module:@stdlib/string/right-trim-n}
391-
*/
392-
setReadOnly( string, 'rtrimN', require( '@stdlib/string/right-trim-n' ) );
393-
394-
/**
395-
* @name snakecase
396-
* @memberof string
397-
* @readonly
398-
* @type {Function}
399-
* @see {@link module:@stdlib/string/snakecase}
400-
*/
401-
setReadOnly( string, 'snakecase', require( '@stdlib/string/snakecase' ) );
402-
403-
/**
404-
* @name splitGraphemeClusters
405-
* @memberof string
406-
* @readonly
407-
* @type {Function}
408-
* @see {@link module:@stdlib/string/split-grapheme-clusters}
409-
*/
410-
setReadOnly( string, 'splitGraphemeClusters', require( '@stdlib/string/split-grapheme-clusters' ) );
411-
412-
/**
413-
* @name startcase
414-
* @memberof string
415-
* @readonly
416-
* @type {Function}
417-
* @see {@link module:@stdlib/string/startcase}
418-
*/
419-
setReadOnly( string, 'startcase', require( '@stdlib/string/startcase' ) );
420-
421-
/**
422-
* @name startsWith
423-
* @memberof string
424-
* @readonly
425-
* @type {Function}
426-
* @see {@link module:@stdlib/string/starts-with}
427-
*/
428-
setReadOnly( string, 'startsWith', require( '@stdlib/string/starts-with' ) );
429-
430-
/**
431-
* @name substringAfter
432-
* @memberof string
433-
* @readonly
434-
* @type {Function}
435-
* @see {@link module:@stdlib/string/substring-after}
436-
*/
437-
setReadOnly( string, 'substringAfter', require( '@stdlib/string/substring-after' ) );
438-
439-
/**
440-
* @name substringAfterLast
441-
* @memberof string
442-
* @readonly
443-
* @type {Function}
444-
* @see {@link module:@stdlib/string/substring-after-last}
445-
*/
446-
setReadOnly( string, 'substringAfterLast', require( '@stdlib/string/substring-after-last' ) );
447-
448-
/**
449-
* @name substringBefore
450-
* @memberof string
451-
* @readonly
452-
* @type {Function}
453-
* @see {@link module:@stdlib/string/substring-before}
454-
*/
455-
setReadOnly( string, 'substringBefore', require( '@stdlib/string/substring-before' ) );
456-
457-
/**
458-
* @name substringBeforeLast
459-
* @memberof string
460-
* @readonly
461-
* @type {Function}
462-
* @see {@link module:@stdlib/string/substring-before-last}
463-
*/
464-
setReadOnly( string, 'substringBeforeLast', require( '@stdlib/string/substring-before-last' ) );
465-
466-
/**
467-
* @name graphemeClusters2iterator
468-
* @memberof string
469-
* @readonly
470-
* @type {Function}
471-
* @see {@link module:@stdlib/string/to-grapheme-cluster-iterator}
472-
*/
473-
setReadOnly( string, 'graphemeClusters2iterator', require( '@stdlib/string/to-grapheme-cluster-iterator' ) );
474-
475-
/**
476-
* @name graphemeClusters2iteratorRight
477-
* @memberof string
478-
* @readonly
479-
* @type {Function}
480-
* @see {@link module:@stdlib/string/to-grapheme-cluster-iterator-right}
481-
*/
482-
setReadOnly( string, 'graphemeClusters2iteratorRight', require( '@stdlib/string/to-grapheme-cluster-iterator-right' ) );
483-
484-
/**
485-
* @name toWellFormed
486-
* @memberof string
487-
* @readonly
488-
* @type {Function}
489-
* @see {@link module:@stdlib/string/to-well-formed}
490-
*/
491-
setReadOnly( string, 'toWellFormed', require( '@stdlib/string/to-well-formed' ) );
492-
493-
/**
494-
* @name trim
495-
* @memberof string
496-
* @readonly
497-
* @type {Function}
498-
* @see {@link module:@stdlib/string/trim}
499-
*/
500-
setReadOnly( string, 'trim', require( '@stdlib/string/trim' ) );
501-
502-
/**
503-
* @name truncate
504-
* @memberof string
505-
* @readonly
506-
* @type {Function}
507-
* @see {@link module:@stdlib/string/truncate}
508-
*/
509-
setReadOnly( string, 'truncate', require( '@stdlib/string/truncate' ) );
510-
511-
/**
512-
* @name truncateMiddle
513-
* @memberof string
514-
* @readonly
515-
* @type {Function}
516-
* @see {@link module:@stdlib/string/truncate-middle}
517-
*/
518-
setReadOnly( string, 'truncateMiddle', require( '@stdlib/string/truncate-middle' ) );
519-
520-
/**
521-
* @name uncapitalize
522-
* @memberof string
523-
* @readonly
524-
* @type {Function}
525-
* @see {@link module:@stdlib/string/uncapitalize}
526-
*/
527-
setReadOnly( string, 'uncapitalize', require( '@stdlib/string/uncapitalize' ) );
528-
529-
/**
530-
* @name uppercase
242+
* @name numGraphemeClusters
531243
* @memberof string
532244
* @readonly
533245
* @type {Function}
534-
* @see {@link module:@stdlib/string/uppercase}
246+
* @see {@link module:@stdlib/string/num-grapheme-clusters}
535247
*/
536-
setReadOnly( string, 'uppercase', require( '@stdlib/string/uppercase' ) );
248+
setReadOnly( string, 'numGraphemeClusters', require( '@stdlib/string/num-grapheme-clusters' ) );
537249

538250
/**
539-
* @name utf16ToUTF8Array
251+
* @name num2words
540252
* @memberof string
541253
* @readonly
542254
* @type {Function}
543-
* @see {@link module:@stdlib/string/utf16-to-utf8-array}
255+
* @see {@link module:@stdlib/string/num2words}
544256
*/
545-
setReadOnly( string, 'utf16ToUTF8Array', require( '@stdlib/string/utf16-to-utf8-array' ) );
546-
257+
setReadOnly( string, 'num2words', require( '@stdlib/string/num2words' ) );
547258

548259
// EXPORTS //
549260

0 commit comments

Comments
 (0)