Skip to content

Commit

Permalink
chore(deps): update dependency eslint-plugin-unicorn to v56 (#174)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint-plugin-unicorn to v56

* .

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sakamoto, Kazunori <[email protected]>
  • Loading branch information
renovate[bot] and exKAZUu authored Oct 7, 2024
1 parent 59fde58 commit d82607d
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-sort-class-members": "1.20.0",
"eslint-plugin-sort-destructure-keys": "2.0.0",
"eslint-plugin-unicorn": "55.0.0",
"eslint-plugin-unicorn": "56.0.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"micromatch": "4.0.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function useShortcutKeys(handleSubmit: () => Promise<void>, isSubmitting: boolea
void handleSubmit();
}
};
window.addEventListener('keydown', handleKeyDown);
return () => window.removeEventListener('keydown', handleKeyDown);
globalThis.addEventListener('keydown', handleKeyDown);
return () => globalThis.removeEventListener('keydown', handleKeyDown);
}, [handleSubmit, isSubmitting]);
}
2 changes: 1 addition & 1 deletion src/app/global-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ${error.stack}
cursor: 'pointer',
marginBottom: '10px',
}}
onClick={() => window.location.reload()}
onClick={() => globalThis.location.reload()}
>
再試行
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ensureSuperTokensReactInit();
const queryClient = new QueryClient();

export const Providers: React.FC<{ children: React.ReactNode }> = ({ children }) => {
setRouter(useRouter(), usePathname() || window.location.pathname);
setRouter(useRouter(), usePathname() || globalThis.location.pathname);

return (
<SuperTokensWrapper>
Expand Down
1 change: 1 addition & 0 deletions src/infrastructures/supertokens/frontendConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export const frontendConfig = (): SuperTokensConfig => {
let isInitialized = false;

export function ensureSuperTokensReactInit(): void {
// eslint-disable-next-line unicorn/prefer-global-this
if (typeof window === 'undefined') return;
if (isInitialized) return;
SuperTokensReact.init(frontendConfig());
Expand Down
2 changes: 1 addition & 1 deletion src/utils/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
const macosPlatforms = /(macintosh|macintel|macppc|mac68k|macos)/i;

export function isMacOS(): boolean {
return typeof window !== 'undefined' && macosPlatforms.test(window.navigator.userAgent.toLowerCase());
return macosPlatforms.test(globalThis.navigator.userAgent.toLowerCase());
}

export function useIsMacOS(): boolean {
Expand Down
30 changes: 15 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-validator-identifier@npm:^7.24.5, @babel/helper-validator-identifier@npm:^7.25.7":
"@babel/helper-validator-identifier@npm:^7.24.7, @babel/helper-validator-identifier@npm:^7.25.7":
version: 7.25.7
resolution: "@babel/helper-validator-identifier@npm:7.25.7"
checksum: 10c0/07438e5bf01ab2882a15027fdf39ac3b0ba1b251774a5130917907014684e2f70fef8fd620137ca062c4c4eedc388508d2ea7a3a7d9936a32785f4fe116c68c0
Expand Down Expand Up @@ -5672,7 +5672,7 @@ __metadata:
languageName: node
linkType: hard

"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.36.1, core-js-compat@npm:^3.37.0, core-js-compat@npm:^3.38.0":
"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.36.1, core-js-compat@npm:^3.38.0, core-js-compat@npm:^3.38.1":
version: 3.38.1
resolution: "core-js-compat@npm:3.38.1"
dependencies:
Expand Down Expand Up @@ -6863,29 +6863,29 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-unicorn@npm:55.0.0":
version: 55.0.0
resolution: "eslint-plugin-unicorn@npm:55.0.0"
"eslint-plugin-unicorn@npm:56.0.0":
version: 56.0.0
resolution: "eslint-plugin-unicorn@npm:56.0.0"
dependencies:
"@babel/helper-validator-identifier": "npm:^7.24.5"
"@babel/helper-validator-identifier": "npm:^7.24.7"
"@eslint-community/eslint-utils": "npm:^4.4.0"
ci-info: "npm:^4.0.0"
clean-regexp: "npm:^1.0.0"
core-js-compat: "npm:^3.37.0"
esquery: "npm:^1.5.0"
globals: "npm:^15.7.0"
core-js-compat: "npm:^3.38.1"
esquery: "npm:^1.6.0"
globals: "npm:^15.9.0"
indent-string: "npm:^4.0.0"
is-builtin-module: "npm:^3.2.1"
jsesc: "npm:^3.0.2"
pluralize: "npm:^8.0.0"
read-pkg-up: "npm:^7.0.1"
regexp-tree: "npm:^0.1.27"
regjsparser: "npm:^0.10.0"
semver: "npm:^7.6.1"
semver: "npm:^7.6.3"
strip-indent: "npm:^3.0.0"
peerDependencies:
eslint: ">=8.56.0"
checksum: 10c0/31620da5c823abc791a3f4c9a0ab19baf21820bd38f018eafbc862ea0bbc3e4baedbdaaaf48f2dc1b2a59dfc7b341e654f2126c394f5d62fb5216e632d8a2c03
checksum: 10c0/514b8da5423041e88723e9a46e1d9b77b8713b4bb3cd9beb58949907f2f4ce6533a9e1d7508bd0583d2f48c191f8134f27cd229dfb05f97431ecec49f24fcbf6
languageName: node
linkType: hard

Expand Down Expand Up @@ -6975,7 +6975,7 @@ __metadata:
languageName: node
linkType: hard

"esquery@npm:^1.4.2, esquery@npm:^1.5.0":
"esquery@npm:^1.4.2, esquery@npm:^1.6.0":
version: 1.6.0
resolution: "esquery@npm:1.6.0"
dependencies:
Expand Down Expand Up @@ -7788,7 +7788,7 @@ __metadata:
languageName: node
linkType: hard

"globals@npm:^15.7.0":
"globals@npm:^15.9.0":
version: 15.10.0
resolution: "globals@npm:15.10.0"
checksum: 10c0/fef8f320e88f01f1492fef1b04b056908e1f6726eeaffe3bca03247237300c2d86e71585ee641b62ba71460a6eaff0d6ca7fca284e61bd1b3f833c7ad68b160a
Expand Down Expand Up @@ -12813,7 +12813,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^7.1.1, semver@npm:^7.1.2, semver@npm:^7.2, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.1, semver@npm:^7.6.3":
"semver@npm:^7.1.1, semver@npm:^7.1.2, semver@npm:^7.2, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3":
version: 7.6.3
resolution: "semver@npm:7.6.3"
bin:
Expand Down Expand Up @@ -13916,7 +13916,7 @@ __metadata:
eslint-plugin-react-hooks: "npm:4.6.2"
eslint-plugin-sort-class-members: "npm:1.20.0"
eslint-plugin-sort-destructure-keys: "npm:2.0.0"
eslint-plugin-unicorn: "npm:55.0.0"
eslint-plugin-unicorn: "npm:56.0.0"
fast-deep-equal: "npm:3.1.3"
framer-motion: "npm:11.11.1"
husky: "npm:9.1.6"
Expand Down

0 comments on commit d82607d

Please sign in to comment.