Skip to content

Commit c4ee687

Browse files
renovate[bot]geotrev
authored andcommitted
chore(deps): update dependency eslint-plugin-n to v17 (#1827)
1 parent 444b182 commit c4ee687

File tree

3 files changed

+17
-51
lines changed

3 files changed

+17
-51
lines changed

package-lock.json

Lines changed: 14 additions & 49 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
@@ -79,7 +79,8 @@ export const Label = React.forwardRef<HTMLLabelElement, ILabelProps>((props, ref
7979
* See: https://bugzilla.mozilla.org/show_bug.cgi?id=559506
8080
*/
8181
const onLabelSelect = (e: React.KeyboardEvent<HTMLInputElement>) => {
82-
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
82+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
83+
const isFirefox = navigator?.userAgent.toLowerCase().indexOf('firefox') > -1;
8384

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

0 commit comments

Comments
 (0)