Skip to content

Commit d567554

Browse files
chore(deps): update dependency eslint-plugin-n to v17 (#1827)
1 parent 725cfb3 commit d567554

File tree

3 files changed

+43
-52
lines changed

3 files changed

+43
-52
lines changed

package-lock.json

Lines changed: 40 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"eslint-plugin-garden-local": "file:./utils/eslint",
7979
"eslint-plugin-jest": "28.5.0",
8080
"eslint-plugin-jsx-a11y": "6.8.0",
81-
"eslint-plugin-n": "16.6.2",
81+
"eslint-plugin-n": "17.7.0",
8282
"eslint-plugin-notice": "0.9.10",
8383
"eslint-plugin-react": "7.34.2",
8484
"eslint-plugin-react-hooks": "4.6.2",

packages/forms/src/elements/common/Label.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export const Label = React.forwardRef<HTMLLabelElement, ILabelProps>((props, ref
8080
* See: https://bugzilla.mozilla.org/show_bug.cgi?id=559506
8181
*/
8282
const onLabelSelect = (e: React.KeyboardEvent<HTMLInputElement>) => {
83-
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
83+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
84+
const isFirefox = navigator?.userAgent.toLowerCase().indexOf('firefox') > -1;
8485

8586
if (fieldContext && isFirefox && e.target instanceof Element) {
8687
const inputId = e.target.getAttribute('for');

0 commit comments

Comments
 (0)