mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-09 06:12:28 +02:00
chore: upgrade TypeScript & other ESLint related deps (#5963)
* chore: upgrade ESLint related deps * Upgrade TS * Fix lock * Bump Babel * Update config
This commit is contained in:
parent
2f7d6fea1e
commit
0374426ce3
104 changed files with 2662 additions and 2487 deletions
|
@ -10,8 +10,7 @@ export const isSamePath = (
|
|||
path1: string | undefined,
|
||||
path2: string | undefined,
|
||||
): boolean => {
|
||||
const normalize = (pathname: string | undefined) => {
|
||||
return !pathname || pathname?.endsWith('/') ? pathname : `${pathname}/`;
|
||||
};
|
||||
const normalize = (pathname: string | undefined) =>
|
||||
!pathname || pathname?.endsWith('/') ? pathname : `${pathname}/`;
|
||||
return normalize(path1) === normalize(path2);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue