mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix eslint
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ overrides:
|
|||||||
- '**/plugins/**/*.page.{ts,js,tsx,jsx}'
|
- '**/plugins/**/*.page.{ts,js,tsx,jsx}'
|
||||||
rules:
|
rules:
|
||||||
github/array-foreach: 0
|
github/array-foreach: 0
|
||||||
'@typescript-eslint/indent':
|
'@stylistic/indent':
|
||||||
- warn
|
- warn
|
||||||
- 2
|
- 2
|
||||||
'@typescript-eslint/no-invalid-this': 0
|
'@typescript-eslint/no-invalid-this': 0
|
||||||
|
|||||||
@@ -30,12 +30,12 @@ console.log(
|
|||||||
|
|
||||||
window.UiContext = JSON.parse(window.UiContext);
|
window.UiContext = JSON.parse(window.UiContext);
|
||||||
window.UserContext = JSON.parse(window.UserContext);
|
window.UserContext = JSON.parse(window.UserContext);
|
||||||
if (process.env.NODE_ENV === 'production' && !UiContext.sentry_disable) {
|
if (process.env.NODE_ENV === 'production' && UiContext.sentry_dsn) {
|
||||||
window.captureException = (e) => {
|
window.captureException = (e) => {
|
||||||
if (!e.isUserFacingError) Sentry.captureException(e);
|
if (!e.isUserFacingError) Sentry.captureException(e);
|
||||||
};
|
};
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: UiContext.sentry_dsn || 'https://2f95d53751e08c74c1af1c4b93ccaff7@sentry.hydro.ac/2',
|
dsn: UiContext.sentry_dsn,
|
||||||
release: `hydro-web@${process.env.VERSION}`,
|
release: `hydro-web@${process.env.VERSION}`,
|
||||||
integrations: [
|
integrations: [
|
||||||
Sentry.browserTracingIntegration(),
|
Sentry.browserTracingIntegration(),
|
||||||
|
|||||||
Reference in new issue
Block a user