Skip to content

Commit b800357

Browse files
chore: update eslint config
1 parent 68fa4d7 commit b800357

File tree

3 files changed

+540
-310
lines changed

3 files changed

+540
-310
lines changed

packages/platform-core/src/errors.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ export class BaseError extends Error {
1010
// Ensure the name of this error is the same as the class name
1111
this.name = this.constructor.name
1212

13+
// Disabling due to https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-error-capture-stack-trace.md
1314
// Set stack trace to caller
14-
if (Error.captureStackTrace) {
15-
Error.captureStackTrace(this, this.constructor)
16-
}
15+
// if (Error.captureStackTrace) {
16+
// Error.captureStackTrace(this, this.constructor)
17+
// }
1718
}
1819
}
1920

0 commit comments

Comments
 (0)