-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/remove-ie11-main
- Loading branch information
Showing
11 changed files
with
208 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = { | ||
meta: { | ||
type: 'problem', | ||
docs: { | ||
description: | ||
'Disallow direct use of MutationObserver and enforce importing NativeMutationObserver from global.ts', | ||
category: 'Best Practices', | ||
recommended: false, | ||
}, | ||
schema: [], | ||
messages: { | ||
noDirectMutationObserver: | ||
'Direct use of MutationObserver is not allowed. Use NativeMutationObserver from global.ts instead.', | ||
}, | ||
}, | ||
create(context) { | ||
return { | ||
NewExpression(node) { | ||
if (node.callee.type === 'Identifier' && node.callee.name === 'MutationObserver') { | ||
context.report({ | ||
node, | ||
messageId: 'noDirectMutationObserver', | ||
}) | ||
} | ||
}, | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "posthog-js", | ||
"version": "1.186.1", | ||
"version": "1.186.3", | ||
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", | ||
"repository": "https://github.com/PostHog/posthog-js", | ||
"author": "[email protected]", | ||
|
Oops, something went wrong.