Skip to content

Commit ca0a97f

Browse files
🤖 chore: Lint source files.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/aureooms/rejuvenate/blob/803c05c4d7c6c261ef9cc73d66677c4bf3f648a0/src/transforms/sources:initial-lint.js Please contact the author of the transform if you believe there was an error.
1 parent b7ca910 commit ca0a97f

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

doc/scripts/header.js

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
1-
var domReady = function(callback) {
2-
var state = document.readyState ;
3-
if ( state === 'interactive' || state === 'complete' ) {
4-
callback() ;
5-
}
6-
else {
1+
const domReady = function (callback) {
2+
const state = document.readyState;
3+
if (state === 'interactive' || state === 'complete') {
4+
callback();
5+
} else {
76
document.addEventListener('DOMContentLoaded', callback);
87
}
9-
} ;
10-
8+
};
119

12-
domReady(function(){
13-
14-
var projectname = document.createElement('a');
10+
domReady(() => {
11+
const projectname = document.createElement('a');
1512
projectname.classList.add('project-name');
1613
projectname.text = 'aureooms/js-cll';
17-
projectname.href = './index.html' ;
14+
projectname.href = './index.html';
1815

19-
var header = document.getElementsByTagName('header')[0] ;
20-
header.insertBefore(projectname,header.firstChild);
16+
const header = document.querySelectorAll('header')[0];
17+
header.insertBefore(projectname, header.firstChild);
2118

22-
var testlink = document.querySelector('header > a[data-ice="testLink"]') ;
23-
testlink.href = 'https://coveralls.io/github/aureooms/js-cll' ;
24-
testlink.target = '_BLANK' ;
19+
const testlink = document.querySelector('header > a[data-ice="testLink"]');
20+
testlink.href = 'https://coveralls.io/github/aureooms/js-cll';
21+
testlink.target = '_BLANK';
2522

26-
var searchBox = document.querySelector('.search-box');
27-
var input = document.querySelector('.search-input');
23+
const searchBox = document.querySelector('.search-box');
24+
const input = document.querySelector('.search-input');
2825

29-
// active search box when focus on searchBox.
30-
input.addEventListener('focus', function(){
26+
// Active search box when focus on searchBox.
27+
input.addEventListener('focus', () => {
3128
searchBox.classList.add('active');
3229
});
33-
3430
});

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
pop,
2727
push,
2828
shift,
29-
unshift
29+
unshift,
3030
};
3131

3232
export {
@@ -42,5 +42,5 @@ export {
4242
pop,
4343
push,
4444
shift,
45-
unshift
45+
unshift,
4646
};

test/src/api.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@ import test from 'ava';
22

33
import {list, map} from '@aureooms/js-itertools';
44

5-
import {empty, from, push, pop, shift, unshift, concat, iter} from '../../src/index.js';
5+
import {
6+
empty,
7+
from,
8+
push,
9+
pop,
10+
shift,
11+
unshift,
12+
concat,
13+
iter,
14+
} from '../../src/index.js';
615

716
const values = (first) => list(map((x) => x.value, iter(first)));
817

0 commit comments

Comments
 (0)