10000 :robot: chore: Lint source files. · failure-abstraction/error@7ffc7f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ffc7f1

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/a5a57b70ac6fd6fb77fdab32e6b7be7519ce9564/src/transforms/sources:initial-lint.js Please contact the author of the transform if you believe there was an error.
1 parent 5de4ffc commit 7ffc7f1

File tree

12 files changed

+84
-86
lines changed

12 files changed

+84
-86
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-error';
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-error' ;
24-
testlink.target = '_BLANK' ;
19+
const testlink = document.querySelector('header > a[data-ice="testLink"]');
20+
testlink.href = 'https://coveralls.io/github/aureooms/js-error';
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/Error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default Error ;
1+
export default Error;

src/IndexError.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import customError from "./customError.js" ;
1+
import customError from './customError.js';
22

3-
export default customError('IndexError') ;
3+
export default customError('IndexError');

src/KeyError.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import customError from "./customError.js" ;
1+
import customError from './customError.js';
22

3-
export default customError('KeyError') ;
3+
export default customError('KeyError');

src/NotImplementedError.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import customError from "./customError.js" ;
1+
import customError from './customError.js';
22

3-
export default customError('NotImplementedError') ;
3+
export default customError('NotImplementedError');

src/StopIteration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import customError from "./customError.js" ;
1+
import customError from './customError.js';
22

3-
export default customError('StopIteration') ;
3+
export default customError('StopIteration');

src/SyntaxError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default SyntaxError ;
1+
export default SyntaxError;

src/TypeError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default TypeError ;
1+
export default TypeError;

src/ValueError.js

Lines changed: 2 additions & 2 deletions
< 83C4 td data-grid-cell-id="diff-7ece99d78d855b9962b919f87fd1a98ae3888ebfee93b0fe49465a5e9e76c69e-3-2-2" data-line-anchor="diff-7ece99d78d855b9962b919f87fd1a98ae3888ebfee93b0fe49465a5e9e76c69eL3" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-deletionLine-bgColor, var(--diffBlob-deletion-bgColor-line));padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell left-side-diff-cell border-right left-side">-
export default customError('ValueError') ;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import customError from "./customError.js" ;
1+
import customError from './customError.js';
22

3
3+
export default customError('ValueError');

src/customError.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Error from "./Error.js" ;
2-
import extendError from "./extendError.js" ;
1+
import Error from './Error.js';
2+
import extendError from './extendError.js';
33

4-
const customError = name => extendError( Error , name ) ;
4+
const customError = (name) => extendError(Error, name);
55
export default customError;

0 commit comments

Comments
 (0)
0