diff --git a/packages/browser/src/helpers.ts b/packages/browser/src/helpers.ts index a3df57e153ac..ef6663621cbd 100644 --- a/packages/browser/src/helpers.ts +++ b/packages/browser/src/helpers.ts @@ -153,9 +153,8 @@ export function wrap( }, }); } - } catch (_oO) { - /*no-empty*/ - } + // eslint-disable-next-line no-empty + } catch (_oO) {} return sentryWrapped; } diff --git a/packages/browser/test/integration/common/utils.js b/packages/browser/test/integration/common/utils.js index c876766af509..68b4314b0f6d 100644 --- a/packages/browser/test/integration/common/utils.js +++ b/packages/browser/test/integration/common/utils.js @@ -50,6 +50,7 @@ function supportsOnunhandledRejection() { } function isBelowIE11() { + // eslint-disable-next-line spaced-comment return /*@cc_on!@*/ false == !false; } diff --git a/packages/browser/test/integration/polyfills/fetch.js b/packages/browser/test/integration/polyfills/fetch.js index fcb4cbc4fd9f..3611142c0683 100644 --- a/packages/browser/test/integration/polyfills/fetch.js +++ b/packages/browser/test/integration/polyfills/fetch.js @@ -1,4 +1,4 @@ -/*! +/* ! * @overview whatwg-fetch - an implementation of Fetch API. * @copyright Copyright (c) 2014-2016 GitHub, Inc. * @license Licensed under MIT license diff --git a/packages/browser/test/integration/polyfills/promise.js b/packages/browser/test/integration/polyfills/promise.js index 8afc15ba3dd6..5082e75d5820 100644 --- a/packages/browser/test/integration/polyfills/promise.js +++ b/packages/browser/test/integration/polyfills/promise.js @@ -1,4 +1,4 @@ -/*! +/* ! * @overview es6-promise - an implementation of Promise API. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license @@ -222,7 +222,7 @@ `value` */ function resolve$1(object) { - /*jshint validthis:true */ + /* jshint validthis:true */ var Constructor = this; if ( @@ -722,7 +722,7 @@ promise to settle. */ function race(entries) { - /*jshint validthis:true */ + /* jshint validthis:true */ var Constructor = this; if (!isArray(entries)) { @@ -774,7 +774,7 @@ @return {Promise} a promise rejected with the given `reason`. */ function reject$1(reason) { - /*jshint validthis:true */ + /* jshint validthis:true */ var Constructor = this; var promise = new Constructor(noop); reject(promise, reason); diff --git a/packages/browser/test/integration/suites/loader.js b/packages/browser/test/integration/suites/loader.js index 0bac4e9d9590..3099417ae3de 100644 --- a/packages/browser/test/integration/suites/loader.js +++ b/packages/browser/test/integration/suites/loader.js @@ -45,7 +45,7 @@ if (IS_LOADER) { setTimeout(function() { Sentry.captureMessage("test"); }); - undefinedMethod(); //trigger error + undefinedMethod(); // trigger error }).then(function(summary) { assert.ok(summary.events[0].breadcrumbs); assert.lengthOf(summary.events[0].breadcrumbs, 1); diff --git a/packages/types/package.json b/packages/types/package.json index 0856ab4f4ef1..6868b9f1fab4 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -35,7 +35,7 @@ "lint:eslint:json": "eslint . --format json | tee lint-results.json", "fix": "run-s fix:eslint fix:prettier", "fix:prettier": "prettier --write \"{src,test}/**/*.ts\"", - "fix:eslint": "lint:eslint --fix" + "fix:eslint": "eslint . --format stylish --fix" }, "sideEffects": false }