Skip to content

Commit ecd0d54

Browse files
committed
Fix @sentry/browser
1 parent d19f2c2 commit ecd0d54

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

packages/browser/src/helpers.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ export function wrap(
153153
},
154154
});
155155
}
156-
} catch (_oO) {
157-
/*no-empty*/
158-
}
156+
// eslint-disable-next-line no-empty
157+
} catch (_oO) {}
159158

160159
return sentryWrapped;
161160
}

packages/browser/test/integration/common/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function supportsOnunhandledRejection() {
5050
}
5151

5252
function isBelowIE11() {
53+
// eslint-disable-next-line spaced-comment
5354
return /*@cc_on!@*/ false == !false;
5455
}
5556

packages/browser/test/integration/polyfills/fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*!
1+
/* !
22
* @overview whatwg-fetch - an implementation of Fetch API.
33
* @copyright Copyright (c) 2014-2016 GitHub, Inc.
44
* @license Licensed under MIT license

packages/browser/test/integration/polyfills/promise.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*!
1+
/* !
22
* @overview es6-promise - an implementation of Promise API.
33
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
44
* @license Licensed under MIT license
@@ -222,7 +222,7 @@
222222
`value`
223223
*/
224224
function resolve$1(object) {
225-
/*jshint validthis:true */
225+
/* jshint validthis:true */
226226
var Constructor = this;
227227

228228
if (
@@ -722,7 +722,7 @@
722722
promise to settle.
723723
*/
724724
function race(entries) {
725-
/*jshint validthis:true */
725+
/* jshint validthis:true */
726726
var Constructor = this;
727727

728728
if (!isArray(entries)) {
@@ -774,7 +774,7 @@
774774
@return {Promise} a promise rejected with the given `reason`.
775775
*/
776776
function reject$1(reason) {
777-
/*jshint validthis:true */
777+
/* jshint validthis:true */
778778
var Constructor = this;
779779
var promise = new Constructor(noop);
780780
reject(promise, reason);

packages/browser/test/integration/suites/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if (IS_LOADER) {
4545
setTimeout(function() {
4646
Sentry.captureMessage("test");
4747
});
48-
undefinedMethod(); //trigger error
48+
undefinedMethod(); // trigger error
4949
}).then(function(summary) {
5050
assert.ok(summary.events[0].breadcrumbs);
5151
assert.lengthOf(summary.events[0].breadcrumbs, 1);

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"lint:eslint:json": "eslint . --format json | tee lint-results.json",
3636
"fix": "run-s fix:eslint fix:prettier",
3737
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
38-
"fix:eslint": "lint:eslint --fix"
38+
"fix:eslint": "eslint . --format stylish --fix"
3939
},
4040
"sideEffects": false
4141
}

0 commit comments

Comments
 (0)