Skip to content

Commit

Permalink
chore(deps): update dependency eslint-plugin-n to v17 (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and geotrev committed Jun 7, 2024
1 parent 8199cdc commit e648a70
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 51 deletions.
63 changes: 14 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"eslint-plugin-garden-local": "file:./utils/eslint",
"eslint-plugin-jest": "28.5.0",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-n": "16.6.2",
"eslint-plugin-n": "17.7.0",
"eslint-plugin-notice": "0.9.10",
"eslint-plugin-react": "7.34.2",
"eslint-plugin-react-hooks": "4.6.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/forms/src/elements/common/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export const Label = React.forwardRef<HTMLLabelElement, ILabelProps>((props, ref
* See: https://bugzilla.mozilla.org/show_bug.cgi?id=559506
*/
const onLabelSelect = (e: React.KeyboardEvent<HTMLInputElement>) => {
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
// eslint-disable-next-line n/no-unsupported-features/node-builtins
const isFirefox = navigator?.userAgent.toLowerCase().indexOf('firefox') > -1;

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

0 comments on commit e648a70

Please sign in to comment.