mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-05 20:26:43 +02:00
🛠 refactor(bump): node modules cache
This commit is contained in:
1
dist/_redirects
vendored
1
dist/_redirects
vendored
@@ -1 +0,0 @@
|
||||
/* /index.html 200
|
106
dist/index.html
vendored
106
dist/index.html
vendored
@@ -1,106 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<!-- Title of the Website: This appears in the browser tab and search results -->
|
||||
<title>SNIGDHA OS - Arch-based Linux Distribution for Penetration Testing and Ethical Hacking</title>
|
||||
|
||||
<!-- Meta Description: A brief summary of your website's content for search engines and social media. -->
|
||||
<meta
|
||||
name="description"
|
||||
content="SNIGDHA OS is a fast, secure, and elegant GNU/Linux desktop distribution designed for modern users. Perfect for developers, creators, and enthusiasts, especially for penetration testing and ethical hacking."
|
||||
/>
|
||||
|
||||
<!-- Open Graph / Facebook Tags: These tags improve how your website looks when shared on social platforms like Facebook. -->
|
||||
<meta property="og:type" content="website" /> <!-- Specifies that the content is a website -->
|
||||
<meta property="og:title" content="SNIGDHA OS - Arch-based Linux Distribution for Penetration Testing and Ethical Hacking" /> <!-- The title shown when shared -->
|
||||
<meta
|
||||
property="og:description"
|
||||
content="SNIGDHA OS is a fast, secure, and elegant GNU/Linux desktop distribution designed for modern users. Perfect for developers, creators, and enthusiasts, especially for penetration testing and ethical hacking."
|
||||
/> <!-- A description of the website shared on social media -->
|
||||
<meta property="og:url" content="https://snigdhaos.org/" /> <!-- URL of the website -->
|
||||
<meta property="og:image" content="https://snigdhaos.org/og-image.png" /> <!-- Image preview shown when shared on social platforms -->
|
||||
<meta property="og:site_name" content="SNIGDHA OS" /> <!-- The name of your site -->
|
||||
|
||||
<!-- Twitter Card Tags: These tags are similar to Open Graph but specifically for Twitter. -->
|
||||
<meta name="twitter:card" content="summary_large_image" /> <!-- Card type for Twitter (display large image) -->
|
||||
<meta name="twitter:title" content="SNIGDHA OS - Arch-based Linux Distribution for Penetration Testing and Ethical Hacking" /> <!-- Title for Twitter -->
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="SNIGDHA OS is a fast, secure, and elegant GNU/Linux desktop distribution designed for modern users. Perfect for developers, creators, and enthusiasts, especially for penetration testing and ethical hacking."
|
||||
/> <!-- Description for Twitter sharing -->
|
||||
<meta name="twitter:image" content="https://snigdhaos.org/twitter-image.png" /> <!-- Image shown in the Twitter preview -->
|
||||
<meta name="twitter:creator" content="@snigdhaos" /> <!-- Twitter handle of the content creator -->
|
||||
|
||||
<!-- Author Meta Tag: Specifies the author of the website -->
|
||||
<meta name="author" content="Snigdha OS Team" />
|
||||
|
||||
<!-- Theme Color: Defines the color of the browser's address bar or toolbar for mobile devices -->
|
||||
<meta name="theme-color" content="#4f46e5" />
|
||||
|
||||
<!-- Keywords for SEO: These keywords help search engines understand your site's content -->
|
||||
<meta
|
||||
name="keywords"
|
||||
content="Linux, Linux Distribution, Snigdha OS, Arch Linux, Penetration Testing, Ethical Hacking, Security, Open Source, Operating System, Desktop Environment, Linux for Developers, Cybersecurity"
|
||||
/>
|
||||
|
||||
<!-- Robots Meta Tag: This tells search engines what to do with the page (index or noindex, follow or nofollow links) -->
|
||||
<meta name="robots" content="index, follow" />
|
||||
|
||||
<!-- Canonical URL: Specifies the preferred version of the page to prevent duplicate content issues -->
|
||||
<link rel="canonical" href="https://snigdhaos.org/" />
|
||||
|
||||
<!-- Favicon: A small icon displayed in the browser tab -->
|
||||
<link rel="icon" href="https://snigdhaos.org/favicon.ico" type="image/x-icon" />
|
||||
|
||||
<!-- Apple Touch Icon: Custom icon for iOS devices when users add your site to their home screen -->
|
||||
<link rel="apple-touch-icon" href="https://snigdhaos.org/apple-touch-icon.png">
|
||||
|
||||
<!-- Apple Startup Image: Custom startup image for iOS when the site is launched from home screen -->
|
||||
<link rel="apple-touch-startup-image" href="https://snigdhaos.org/apple-startup-image.png">
|
||||
|
||||
<!-- Structured Data (JSON-LD): This defines the organization schema in a machine-readable format, helping search engines understand your website better. -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "Organization",
|
||||
"name": "Snigdha OS",
|
||||
"url": "https://snigdhaos.org/",
|
||||
"logo": "https://snigdhaos.org/logo.png",
|
||||
"contactPoint": {
|
||||
"@type": "ContactPoint",
|
||||
"contactType": "Customer Support",
|
||||
"areaServed": "Worldwide",
|
||||
"availableLanguage": "English"
|
||||
},
|
||||
"sameAs": [
|
||||
"https://www.facebook.com/Snigdha-OS",
|
||||
"https://twitter.com/SnigdhaOS",
|
||||
"https://github.com/Snigdha-OS"
|
||||
]
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Google Analytics Script: This allows you to track and analyze traffic to your website -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=GTM-5HXGM54C"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'GTM-5HXGM54C');
|
||||
</script>
|
||||
|
||||
<script type="module" crossorigin src="/assets/index-BGfkk3pB.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CG9mEqDm.css">
|
||||
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Main content of the website will be rendered here by React -->
|
||||
<div id="root"></div>
|
||||
|
||||
<!-- Entry point for the React app (main.tsx) -->
|
||||
</body>
|
||||
</html>
|
12
dist/snigdhaos-logo.svg
vendored
12
dist/snigdhaos-logo.svg
vendored
@@ -1,12 +0,0 @@
|
||||
|
||||
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<title>snigdhaos</title>
|
||||
<style>
|
||||
.s0 { fill: #ffffff }
|
||||
.s1 { fill: #6366f1 }
|
||||
.s2 { fill: #ff0000 }
|
||||
</style>
|
||||
<path id="Path 2" class="s0" d="m333.4 24c-18.4 62.3-63.1 95.1-111.3 119.6-31 15.5-53 33.2-69.1 50l13.7-46.8c0 0-57.7 33.4-83.7 97.8-13.9 34.3-12.5 77.3 12.2 121.7l-32.7-8.3c35 77.6 111.8 124.6 169.7 125.1l-28.9 28.9c65-5.3 139.4-20.6 182.8-70.4 6.5 15.2 12.5 31.9 18.6 47.7 24.5-47.9 31.5-124.5 15.6-169.7h33.9c-27.1-26.9-58.5-54.7-87.8-65.2-13.5-32.8-30.4-44.1-58.7-58.7 55.7-50.9 48.9-107.9 25.7-171.7z"/>
|
||||
<path id="Path 3" class="s1" d="m353.1 268.5c30.4 7.4 57.6 33.6 57.6 33.6h-18.7c38.9 60.1 12 136.5 12 136.5-7.1-18.4-16.3-31.8-16.3-31.8-30.4 67.9-135.8 81.4-135.8 81.4l21.9-22c-127.3 9.9-176.8-81.3-176.8-81.3l41.7 10.6c-104.7-107.5 2.1-207.3 2.1-207.3-17.6 34.7-9.2 71.5-9.2 71.5 0 0 13.5-58 98.4-100.5 84.9-42.4 102.5-86.3 102.5-86.3 0 0 30.4 83.5-84.7 143.5l26.6 5.5c0 0-92.1 8-103.6 76-11.5 68.1 51.5 97.1 70.5 99.6 0 0-12.7-9.4-18.4-24.6 0 0 31.5 26.5 90.5 12.3 0 0-0.3 12.1-10.9 26.6 0 0 44.9-26.6 25.8-64.4l22.6-9.6c0 0-43.8 5-66.1 20.9-22.3 15.9-44.6-9.9-44.6-9.9 0 0 9.9-6.4 9.2-14.2 0 0 22-21.4 31.3-26.3 9.4-5 30.4-10.6 28.5-29.5l9-9.1c0 0-24.7 13.5-29.9 19-5.1 5.5-5.6 10.9-5.6 10.9 0 0-2.9 3.2-5.3 2.2-2.5-1.1-4.6-6.8-4.6-6.8 0 0 6.3-15.3 42.4-37.1 0 0 5.7-23 3.5-36.8 0 0 24.1 12.4 34.4 47.4zm-89.9 35c-23.7 17-36.4 33.3-36.4 35.7 0 2.5 1.8 13.5 1.8 13.5-11.7-9.6-17-24.8-17-24.8-4.6 13.5-3.2 22.3-3.2 22.3-40.9-44.5 8.4-107.9 92.8-118.3 0 0 0 11.1-1.7 18.7 0 0-29.2 14-39.8 38.8 0 0 1.4 9.2 3.5 14.1z"/>
|
||||
<path id="Path 4" class="s2" d="m287.9 298.6c0 0 16.6-4.7 14.9-14.3 0 0-14.2 5.5-14.9 14.3z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.7 KiB |
19
node_modules/.modules.yaml
generated
vendored
19
node_modules/.modules.yaml
generated
vendored
@@ -710,7 +710,7 @@ layoutVersion: 5
|
||||
nodeLinker: isolated
|
||||
packageManager: pnpm@9.15.1
|
||||
pendingBuilds: []
|
||||
prunedAt: Thu, 19 Dec 2024 07:20:59 GMT
|
||||
prunedAt: Sun, 22 Dec 2024 21:10:50 GMT
|
||||
publicHoistPattern:
|
||||
- '*eslint*'
|
||||
- '*prettier*'
|
||||
@@ -739,39 +739,22 @@ skipped:
|
||||
- '@esbuild/win32-arm64@0.21.5'
|
||||
- '@esbuild/win32-ia32@0.21.5'
|
||||
- '@esbuild/win32-x64@0.21.5'
|
||||
- '@rollup/rollup-android-arm-eabi@4.28.1'
|
||||
- '@rollup/rollup-android-arm-eabi@4.29.1'
|
||||
- '@rollup/rollup-android-arm64@4.28.1'
|
||||
- '@rollup/rollup-android-arm64@4.29.1'
|
||||
- '@rollup/rollup-darwin-arm64@4.28.1'
|
||||
- '@rollup/rollup-darwin-arm64@4.29.1'
|
||||
- '@rollup/rollup-darwin-x64@4.28.1'
|
||||
- '@rollup/rollup-darwin-x64@4.29.1'
|
||||
- '@rollup/rollup-freebsd-arm64@4.28.1'
|
||||
- '@rollup/rollup-freebsd-arm64@4.29.1'
|
||||
- '@rollup/rollup-freebsd-x64@4.28.1'
|
||||
- '@rollup/rollup-freebsd-x64@4.29.1'
|
||||
- '@rollup/rollup-linux-arm-gnueabihf@4.28.1'
|
||||
- '@rollup/rollup-linux-arm-gnueabihf@4.29.1'
|
||||
- '@rollup/rollup-linux-arm-musleabihf@4.28.1'
|
||||
- '@rollup/rollup-linux-arm-musleabihf@4.29.1'
|
||||
- '@rollup/rollup-linux-arm64-gnu@4.28.1'
|
||||
- '@rollup/rollup-linux-arm64-gnu@4.29.1'
|
||||
- '@rollup/rollup-linux-arm64-musl@4.28.1'
|
||||
- '@rollup/rollup-linux-arm64-musl@4.29.1'
|
||||
- '@rollup/rollup-linux-loongarch64-gnu@4.28.1'
|
||||
- '@rollup/rollup-linux-loongarch64-gnu@4.29.1'
|
||||
- '@rollup/rollup-linux-powerpc64le-gnu@4.28.1'
|
||||
- '@rollup/rollup-linux-powerpc64le-gnu@4.29.1'
|
||||
- '@rollup/rollup-linux-riscv64-gnu@4.28.1'
|
||||
- '@rollup/rollup-linux-riscv64-gnu@4.29.1'
|
||||
- '@rollup/rollup-linux-s390x-gnu@4.28.1'
|
||||
- '@rollup/rollup-linux-s390x-gnu@4.29.1'
|
||||
- '@rollup/rollup-win32-arm64-msvc@4.28.1'
|
||||
- '@rollup/rollup-win32-arm64-msvc@4.29.1'
|
||||
- '@rollup/rollup-win32-ia32-msvc@4.28.1'
|
||||
- '@rollup/rollup-win32-ia32-msvc@4.29.1'
|
||||
- '@rollup/rollup-win32-x64-msvc@4.28.1'
|
||||
- '@rollup/rollup-win32-x64-msvc@4.29.1'
|
||||
- fsevents@2.3.3
|
||||
storeDir: /home/whoami/.local/share/pnpm/store/v3
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/json5@2.2.3/node_modules/json5/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/json5@2.2.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/json5@2.2.3/node_modules/json5/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/json5@2.2.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/json5@2.2.3/node_modules/json5/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/json5@2.2.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/json5@2.2.3/node_modules/json5/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/json5@2.2.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../json5@2.2.3/node_modules/json5/lib/cli.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.26.3/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/jsesc@3.1.0/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/jsesc@3.1.0/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/jsesc@3.1.0/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/jsesc@3.1.0/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../jsesc@3.1.0/node_modules/jsesc/bin/jsesc" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.26.3/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/browserslist@4.24.3/node_modules/browserslist/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/browserslist@4.24.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/browserslist@4.24.3/node_modules/browserslist/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/browserslist@4.24.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/browserslist@4.24.3/node_modules/browserslist/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/browserslist@4.24.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/browserslist@4.24.3/node_modules/browserslist/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/browserslist@4.24.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../browserslist@4.24.3/node_modules/browserslist/cli.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/semver@6.3.1/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/semver@6.3.1/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.26.3/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.26.3/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/js-yaml@4.1.0/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/js-yaml@4.1.0/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/js-yaml@4.1.0/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/js-yaml@4.1.0/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../js-yaml@4.1.0/node_modules/js-yaml/bin/js-yaml.js" "$@"
|
||||
|
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Toru Nagashima
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@@ -1,37 +0,0 @@
|
||||
# @eslint-community/eslint-utils
|
||||
|
||||
[](https://www.npmjs.com/package/@eslint-community/eslint-utils)
|
||||
[](http://www.npmtrends.com/@eslint-community/eslint-utils)
|
||||
[](https://github.com/eslint-community/eslint-utils/actions)
|
||||
[](https://codecov.io/gh/eslint-community/eslint-utils)
|
||||
|
||||
## 🏁 Goal
|
||||
|
||||
This package provides utility functions and classes for make ESLint custom rules.
|
||||
|
||||
For examples:
|
||||
|
||||
- [`getStaticValue`](https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue) evaluates static value on AST.
|
||||
- [`ReferenceTracker`](https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring.
|
||||
|
||||
## 📖 Usage
|
||||
|
||||
See [documentation](https://eslint-community.github.io/eslint-utils).
|
||||
|
||||
## 📰 Changelog
|
||||
|
||||
See [releases](https://github.com/eslint-community/eslint-utils/releases).
|
||||
|
||||
## ❤️ Contributing
|
||||
|
||||
Welcome contributing!
|
||||
|
||||
Please use GitHub's Issues/PRs.
|
||||
|
||||
### Development Tools
|
||||
|
||||
- `npm test` runs tests and measures coverage.
|
||||
- `npm run clean` removes the coverage result of `npm test` command.
|
||||
- `npm run coverage` shows the coverage result of the last `npm test` command.
|
||||
- `npm run lint` runs ESLint.
|
||||
- `npm run watch` runs tests on each file change.
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.6/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.6/node_modules/eslint/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.6/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.6/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.6/node_modules/eslint/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.6/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../eslint@9.17.0_jiti@1.21.6/node_modules/eslint/bin/eslint.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../../../eslint@9.17.0_jiti@1.21.6/node_modules/eslint/bin/eslint.js" "$@"
|
||||
fi
|
@@ -1,80 +0,0 @@
|
||||
{
|
||||
"name": "@eslint-community/eslint-utils",
|
||||
"version": "4.4.1",
|
||||
"description": "Utilities for ESLint plugins.",
|
||||
"keywords": [
|
||||
"eslint"
|
||||
],
|
||||
"homepage": "https://github.com/eslint-community/eslint-utils#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/eslint-community/eslint-utils/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/eslint-community/eslint-utils"
|
||||
},
|
||||
"license": "MIT",
|
||||
"author": "Toru Nagashima",
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./index.mjs",
|
||||
"require": "./index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main": "index",
|
||||
"module": "index.mjs",
|
||||
"files": [
|
||||
"index.*"
|
||||
],
|
||||
"scripts": {
|
||||
"prebuild": "npm run -s clean",
|
||||
"build": "rollup -c",
|
||||
"clean": "rimraf .nyc_output coverage index.*",
|
||||
"coverage": "opener ./coverage/lcov-report/index.html",
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:watch": "vitepress dev docs",
|
||||
"format": "npm run -s format:prettier -- --write",
|
||||
"format:prettier": "prettier .",
|
||||
"format:check": "npm run -s format:prettier -- --check",
|
||||
"lint:eslint": "eslint .",
|
||||
"lint:format": "npm run -s format:check",
|
||||
"lint:installed-check": "installed-check -v -i installed-check -i npm-run-all2 -i knip",
|
||||
"lint:knip": "knip",
|
||||
"lint": "run-p lint:*",
|
||||
"test": "c8 mocha --reporter dot \"test/*.mjs\"",
|
||||
"preversion": "npm test && npm run -s build",
|
||||
"postversion": "git push && git push --tags",
|
||||
"prewatch": "npm run -s clean",
|
||||
"watch": "warun \"{src,test}/**/*.mjs\" -- npm run -s test:mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"eslint-visitor-keys": "^3.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint-community/eslint-plugin-mysticatea": "^15.6.1",
|
||||
"c8": "^8.0.1",
|
||||
"dot-prop": "^7.2.0",
|
||||
"eslint": "^8.57.1",
|
||||
"installed-check": "^8.0.1",
|
||||
"knip": "^5.33.3",
|
||||
"mocha": "^9.2.2",
|
||||
"npm-run-all2": "^6.2.3",
|
||||
"opener": "^1.5.2",
|
||||
"prettier": "2.8.8",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.79.2",
|
||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||
"semver": "^7.6.3",
|
||||
"vitepress": "^1.4.1",
|
||||
"warun": "^1.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||
},
|
||||
"funding": "https://opencollective.com/eslint"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
../../eslint@9.17.0_jiti@1.21.6/node_modules/eslint
|
@@ -1 +0,0 @@
|
||||
../../eslint-visitor-keys@3.4.3/node_modules/eslint-visitor-keys
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/eslint.js" "$@"
|
||||
|
@@ -1,3 +0,0 @@
|
||||
# `@rollup/rollup-linux-x64-gnu`
|
||||
|
||||
This is the **x86_64-unknown-linux-gnu** binary for `rollup`
|
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"name": "@rollup/rollup-linux-x64-gnu",
|
||||
"version": "4.28.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"files": [
|
||||
"rollup.linux-x64-gnu.node"
|
||||
],
|
||||
"description": "Native bindings for Rollup",
|
||||
"author": "Lukas Taegert-Atkinson",
|
||||
"homepage": "https://rollupjs.org/",
|
||||
"license": "MIT",
|
||||
"repository": "rollup/rollup",
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"main": "./rollup.linux-x64-gnu.node"
|
||||
}
|
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
# `@rollup/rollup-linux-x64-musl`
|
||||
|
||||
This is the **x86_64-unknown-linux-musl** binary for `rollup`
|
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"name": "@rollup/rollup-linux-x64-musl",
|
||||
"version": "4.28.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"files": [
|
||||
"rollup.linux-x64-musl.node"
|
||||
],
|
||||
"description": "Native bindings for Rollup",
|
||||
"author": "Lukas Taegert-Atkinson",
|
||||
"homepage": "https://rollupjs.org/",
|
||||
"license": "MIT",
|
||||
"repository": "rollup/rollup",
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"main": "./rollup.linux-x64-musl.node"
|
||||
}
|
Binary file not shown.
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.26.3/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/parser/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules/@babel/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/@babel+parser@7.26.3/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.26.3/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
||||
|
@@ -1 +0,0 @@
|
||||
../../../@types+react@18.3.17/node_modules/@types/react
|
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
@@ -1,16 +0,0 @@
|
||||
# Installation
|
||||
> `npm install --save @types/react-dom`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for react-dom (https://reactjs.org).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v18.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Wed, 11 Dec 2024 02:54:10 GMT
|
||||
* Dependencies: none
|
||||
* Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [MartynasZilinskas](https://github.com/MartynasZilinskas), [Josh Rutherford](https://github.com/theruther4d), [Jessica Franco](https://github.com/Jessidhia), and [Sebastian Silbermann](https://github.com/eps1lon).
|
@@ -1,184 +0,0 @@
|
||||
/**
|
||||
* These are types for things that are present in the upcoming React 18 release.
|
||||
*
|
||||
* Once React 18 is released they can just be moved to the main index file.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react-dom/canary"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react-dom/canary'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react-dom/canary" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.js to see how the exports are declared,
|
||||
// but confirm with published source code (e.g. https://unpkg.com/react-dom@canary) that these exports end up in the published code
|
||||
|
||||
import React = require("react");
|
||||
import ReactDOM = require(".");
|
||||
|
||||
export {};
|
||||
|
||||
declare const REACT_FORM_STATE_SIGIL: unique symbol;
|
||||
|
||||
declare module "." {
|
||||
function prefetchDNS(href: string): void;
|
||||
|
||||
interface PreconnectOptions {
|
||||
// Don't create a helper type.
|
||||
// It would have to be in module scope to be inlined in TS tooltips.
|
||||
// But then it becomes part of the public API.
|
||||
// TODO: Upstream to microsoft/TypeScript-DOM-lib-generator -> w3c/webref
|
||||
// since the spec has a notion of a dedicated type: https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attribute
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
}
|
||||
function preconnect(href: string, options?: PreconnectOptions): void;
|
||||
|
||||
type PreloadAs =
|
||||
| "audio"
|
||||
| "document"
|
||||
| "embed"
|
||||
| "fetch"
|
||||
| "font"
|
||||
| "image"
|
||||
| "object"
|
||||
| "track"
|
||||
| "script"
|
||||
| "style"
|
||||
| "video"
|
||||
| "worker";
|
||||
interface PreloadOptions {
|
||||
as: PreloadAs;
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
fetchPriority?: "high" | "low" | "auto" | undefined;
|
||||
// TODO: These should only be allowed with `as: 'image'` but it's not trivial to write tests against the full TS support matrix.
|
||||
imageSizes?: string | undefined;
|
||||
imageSrcSet?: string | undefined;
|
||||
integrity?: string | undefined;
|
||||
type?: string | undefined;
|
||||
nonce?: string | undefined;
|
||||
referrerPolicy?: ReferrerPolicy | undefined;
|
||||
}
|
||||
function preload(href: string, options?: PreloadOptions): void;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/links.html#link-type-modulepreload
|
||||
type PreloadModuleAs = RequestDestination;
|
||||
interface PreloadModuleOptions {
|
||||
/**
|
||||
* @default "script"
|
||||
*/
|
||||
as: PreloadModuleAs;
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
integrity?: string | undefined;
|
||||
nonce?: string | undefined;
|
||||
}
|
||||
function preloadModule(href: string, options?: PreloadModuleOptions): void;
|
||||
|
||||
type PreinitAs = "script" | "style";
|
||||
interface PreinitOptions {
|
||||
as: PreinitAs;
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
fetchPriority?: "high" | "low" | "auto" | undefined;
|
||||
precedence?: string | undefined;
|
||||
integrity?: string | undefined;
|
||||
nonce?: string | undefined;
|
||||
}
|
||||
function preinit(href: string, options?: PreinitOptions): void;
|
||||
|
||||
// Will be expanded to include all of https://github.com/tc39/proposal-import-attributes
|
||||
type PreinitModuleAs = "script";
|
||||
interface PreinitModuleOptions {
|
||||
/**
|
||||
* @default "script"
|
||||
*/
|
||||
as?: PreinitModuleAs;
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
integrity?: string | undefined;
|
||||
nonce?: string | undefined;
|
||||
}
|
||||
function preinitModule(href: string, options?: PreinitModuleOptions): void;
|
||||
|
||||
interface FormStatusNotPending {
|
||||
pending: false;
|
||||
data: null;
|
||||
method: null;
|
||||
action: null;
|
||||
}
|
||||
|
||||
interface FormStatusPending {
|
||||
pending: true;
|
||||
data: FormData;
|
||||
method: string;
|
||||
action: string | ((formData: FormData) => void | Promise<void>);
|
||||
}
|
||||
|
||||
type FormStatus = FormStatusPending | FormStatusNotPending;
|
||||
|
||||
function useFormStatus(): FormStatus;
|
||||
|
||||
function useFormState<State>(
|
||||
action: (state: Awaited<State>) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: () => void, isPending: boolean];
|
||||
function useFormState<State, Payload>(
|
||||
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: (payload: Payload) => void, isPending: boolean];
|
||||
|
||||
function requestFormReset(form: HTMLFormElement): void;
|
||||
}
|
||||
|
||||
declare module "./client" {
|
||||
interface ReactFormState {
|
||||
[REACT_FORM_STATE_SIGIL]: never;
|
||||
}
|
||||
|
||||
interface RootOptions {
|
||||
onUncaughtError?:
|
||||
| ((error: unknown, errorInfo: { componentStack?: string | undefined }) => void)
|
||||
| undefined;
|
||||
onCaughtError?:
|
||||
| ((
|
||||
error: unknown,
|
||||
errorInfo: {
|
||||
componentStack?: string | undefined;
|
||||
errorBoundary?: React.Component<unknown> | undefined;
|
||||
},
|
||||
) => void)
|
||||
| undefined;
|
||||
}
|
||||
|
||||
interface HydrationOptions {
|
||||
formState?: ReactFormState | null;
|
||||
onUncaughtError?:
|
||||
| ((error: unknown, errorInfo: { componentStack?: string | undefined }) => void)
|
||||
| undefined;
|
||||
onCaughtError?:
|
||||
| ((
|
||||
error: unknown,
|
||||
errorInfo: {
|
||||
componentStack?: string | undefined;
|
||||
errorBoundary?: React.Component<unknown> | undefined;
|
||||
},
|
||||
) => void)
|
||||
| undefined;
|
||||
}
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS {
|
||||
document: Document;
|
||||
}
|
||||
}
|
@@ -1,72 +0,0 @@
|
||||
/**
|
||||
* WARNING: This entrypoint is only available starting with `react-dom@18.0.0-rc.1`
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/client.js to see how the exports are declared,
|
||||
|
||||
import React = require("react");
|
||||
export interface HydrationOptions {
|
||||
/**
|
||||
* Prefix for `useId`.
|
||||
*/
|
||||
identifierPrefix?: string;
|
||||
onRecoverableError?: (error: unknown, errorInfo: ErrorInfo) => void;
|
||||
}
|
||||
|
||||
export interface RootOptions {
|
||||
/**
|
||||
* Prefix for `useId`.
|
||||
*/
|
||||
identifierPrefix?: string;
|
||||
onRecoverableError?: (error: unknown, errorInfo: ErrorInfo) => void;
|
||||
}
|
||||
|
||||
export interface ErrorInfo {
|
||||
digest?: string;
|
||||
componentStack?: string;
|
||||
}
|
||||
|
||||
export interface Root {
|
||||
render(children: React.ReactNode): void;
|
||||
unmount(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Different release channels declare additional types of ReactNode this particular release channel accepts.
|
||||
* App or library types should never augment this interface.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
export interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS {}
|
||||
|
||||
export type Container =
|
||||
| Element
|
||||
| DocumentFragment
|
||||
| DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS[
|
||||
keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS
|
||||
];
|
||||
|
||||
/**
|
||||
* createRoot lets you create a root to display React components inside a browser DOM node.
|
||||
*
|
||||
* @see {@link https://react.dev/reference/react-dom/client/createRoot API Reference for `createRoot`}
|
||||
*/
|
||||
export function createRoot(container: Container, options?: RootOptions): Root;
|
||||
|
||||
/**
|
||||
* Same as `createRoot()`, but is used to hydrate a container whose HTML contents were rendered by ReactDOMServer.
|
||||
*
|
||||
* React will attempt to attach event listeners to the existing markup.
|
||||
*
|
||||
* **Example Usage**
|
||||
*
|
||||
* ```jsx
|
||||
* hydrateRoot(document.querySelector('#root'), <App />)
|
||||
* ```
|
||||
*
|
||||
* @see https://reactjs.org/docs/react-dom-client.html#hydrateroot
|
||||
*/
|
||||
export function hydrateRoot(
|
||||
container: Element | Document,
|
||||
initialChildren: React.ReactNode,
|
||||
options?: HydrationOptions,
|
||||
): Root;
|
@@ -1,36 +0,0 @@
|
||||
/**
|
||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
||||
* on a stable build.
|
||||
*
|
||||
* Once they are promoted to stable they can just be moved to the main index file.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react-dom/experimental"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react-dom/experimental'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react-dom/experimental" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.experimental.js to see how the exports are declared,
|
||||
// but confirm with published source code (e.g. https://unpkg.com/react-dom@experimental) that these exports end up in the published code
|
||||
|
||||
import React = require("react");
|
||||
import ReactDOM = require("./canary");
|
||||
|
||||
export {};
|
||||
|
||||
declare module "." {
|
||||
}
|
@@ -1,150 +0,0 @@
|
||||
// NOTE: Users of the `experimental` builds of React should add a reference
|
||||
// to 'react-dom/experimental' in their project. See experimental.d.ts's top comment
|
||||
// for reference and documentation on how exactly to do it.
|
||||
|
||||
export as namespace ReactDOM;
|
||||
|
||||
import {
|
||||
CElement,
|
||||
Component,
|
||||
ComponentState,
|
||||
DOMAttributes,
|
||||
DOMElement,
|
||||
FunctionComponentElement,
|
||||
Key,
|
||||
ReactElement,
|
||||
ReactInstance,
|
||||
ReactNode,
|
||||
ReactPortal,
|
||||
} from "react";
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/reference/react-dom/findDOMNode#alternatives
|
||||
*/
|
||||
export function findDOMNode(instance: ReactInstance | null | undefined): Element | null | Text;
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
export function unmountComponentAtNode(container: Element | DocumentFragment): boolean;
|
||||
|
||||
export function createPortal(
|
||||
children: ReactNode,
|
||||
container: Element | DocumentFragment,
|
||||
key?: Key | null,
|
||||
): ReactPortal;
|
||||
|
||||
export const version: string;
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
export const render: Renderer;
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
export const hydrate: Renderer;
|
||||
|
||||
export function flushSync<R>(fn: () => R): R;
|
||||
|
||||
export function unstable_batchedUpdates<A, R>(callback: (a: A) => R, a: A): R;
|
||||
export function unstable_batchedUpdates<R>(callback: () => R): R;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export function unstable_renderSubtreeIntoContainer<T extends Element>(
|
||||
parentComponent: Component<any>,
|
||||
element: DOMElement<DOMAttributes<T>, T>,
|
||||
container: Element,
|
||||
callback?: (element: T) => any,
|
||||
): T;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export function unstable_renderSubtreeIntoContainer<P, T extends Component<P, ComponentState>>(
|
||||
parentComponent: Component<any>,
|
||||
element: CElement<P, T>,
|
||||
container: Element,
|
||||
callback?: (component: T) => any,
|
||||
): T;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export function unstable_renderSubtreeIntoContainer<P>(
|
||||
parentComponent: Component<any>,
|
||||
element: ReactElement<P>,
|
||||
container: Element,
|
||||
callback?: (component?: Component<P, ComponentState> | Element) => any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
): Component<P, ComponentState> | Element | void;
|
||||
|
||||
export type Container = Element | Document | DocumentFragment;
|
||||
|
||||
export interface Renderer {
|
||||
// Deprecated(render): The return value is deprecated.
|
||||
// In future releases the render function's return type will be void.
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
<T extends Element>(
|
||||
element: DOMElement<DOMAttributes<T>, T>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
(
|
||||
element: Array<DOMElement<DOMAttributes<any>, any>>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): Element;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
(
|
||||
element: FunctionComponentElement<any> | Array<FunctionComponentElement<any>>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): void;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
<P, T extends Component<P, ComponentState>>(
|
||||
element: CElement<P, T>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
(
|
||||
element: Array<CElement<any, Component<any, ComponentState>>>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): Component<any, ComponentState>;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
<P>(
|
||||
element: ReactElement<P>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
): Component<P, ComponentState> | Element | void;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
(
|
||||
element: ReactElement[],
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
): Component<any, ComponentState> | Element | void;
|
||||
}
|
@@ -1,88 +0,0 @@
|
||||
{
|
||||
"name": "@types/react-dom",
|
||||
"version": "18.3.5",
|
||||
"description": "TypeScript definitions for react-dom",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Asana",
|
||||
"url": "https://asana.com"
|
||||
},
|
||||
{
|
||||
"name": "AssureSign",
|
||||
"url": "http://www.assuresign.com"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft",
|
||||
"url": "https://microsoft.com"
|
||||
},
|
||||
{
|
||||
"name": "MartynasZilinskas",
|
||||
"githubUsername": "MartynasZilinskas",
|
||||
"url": "https://github.com/MartynasZilinskas"
|
||||
},
|
||||
{
|
||||
"name": "Josh Rutherford",
|
||||
"githubUsername": "theruther4d",
|
||||
"url": "https://github.com/theruther4d"
|
||||
},
|
||||
{
|
||||
"name": "Jessica Franco",
|
||||
"githubUsername": "Jessidhia",
|
||||
"url": "https://github.com/Jessidhia"
|
||||
},
|
||||
{
|
||||
"name": "Sebastian Silbermann",
|
||||
"githubUsername": "eps1lon",
|
||||
"url": "https://github.com/eps1lon"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": {
|
||||
"default": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"./canary": {
|
||||
"types": {
|
||||
"default": "./canary.d.ts"
|
||||
}
|
||||
},
|
||||
"./client": {
|
||||
"types": {
|
||||
"default": "./client.d.ts"
|
||||
}
|
||||
},
|
||||
"./server": {
|
||||
"types": {
|
||||
"default": "./server.d.ts"
|
||||
}
|
||||
},
|
||||
"./experimental": {
|
||||
"types": {
|
||||
"default": "./experimental.d.ts"
|
||||
}
|
||||
},
|
||||
"./test-utils": {
|
||||
"types": {
|
||||
"default": "./test-utils/index.d.ts"
|
||||
}
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/react-dom"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"@types/react": "^18.0.0"
|
||||
},
|
||||
"typesPublisherContentHash": "15456a5462ef352f9e36979359f3f69058800e6b78eb73df502bca624fc31eb5",
|
||||
"typeScriptVersion": "5.0"
|
||||
}
|
@@ -1,126 +0,0 @@
|
||||
// forward declarations
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface ReadableStream {}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface WritableStream {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface AbortSignal {}
|
||||
|
||||
/**
|
||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface ReadableStream {}
|
||||
}
|
||||
|
||||
import { ReactNode } from "react";
|
||||
import { ErrorInfo } from "./client";
|
||||
|
||||
export interface RenderToPipeableStreamOptions {
|
||||
identifierPrefix?: string;
|
||||
namespaceURI?: string;
|
||||
nonce?: string;
|
||||
bootstrapScriptContent?: string;
|
||||
bootstrapScripts?: string[];
|
||||
bootstrapModules?: string[];
|
||||
progressiveChunkSize?: number;
|
||||
onShellReady?: () => void;
|
||||
onShellError?: (error: unknown) => void;
|
||||
onAllReady?: () => void;
|
||||
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|
||||
}
|
||||
|
||||
export interface PipeableStream {
|
||||
abort: (reason?: unknown) => void;
|
||||
pipe: <Writable extends NodeJS.WritableStream>(destination: Writable) => Writable;
|
||||
}
|
||||
|
||||
export interface ServerOptions {
|
||||
identifierPrefix?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Only available in the environments with [Node.js Streams](https://nodejs.dev/learn/nodejs-streams).
|
||||
*
|
||||
* @see [API](https://reactjs.org/docs/react-dom-server.html#rendertopipeablestream)
|
||||
*
|
||||
* @param children
|
||||
* @param options
|
||||
*/
|
||||
export function renderToPipeableStream(children: ReactNode, options?: RenderToPipeableStreamOptions): PipeableStream;
|
||||
|
||||
/**
|
||||
* Render a React element to its initial HTML. This should only be used on the server.
|
||||
* React will return an HTML string. You can use this method to generate HTML on the server
|
||||
* and send the markup down on the initial request for faster page loads and to allow search
|
||||
* engines to crawl your pages for SEO purposes.
|
||||
*
|
||||
* If you call `ReactDOMClient.hydrateRoot()` on a node that already has this server-rendered markup,
|
||||
* React will preserve it and only attach event handlers, allowing you
|
||||
* to have a very performant first-load experience.
|
||||
*/
|
||||
export function renderToString(element: ReactNode, options?: ServerOptions): string;
|
||||
|
||||
/**
|
||||
* Render a React element to its initial HTML. Returns a Readable stream that outputs
|
||||
* an HTML string. The HTML output by this stream is exactly equal to what
|
||||
* `ReactDOMServer.renderToString()` would return.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
export function renderToNodeStream(element: ReactNode, options?: ServerOptions): NodeJS.ReadableStream;
|
||||
|
||||
/**
|
||||
* Similar to `renderToString`, except this doesn't create extra DOM attributes
|
||||
* such as `data-reactid`, that React uses internally. This is useful if you want
|
||||
* to use React as a simple static page generator, as stripping away the extra
|
||||
* attributes can save lots of bytes.
|
||||
*/
|
||||
export function renderToStaticMarkup(element: ReactNode, options?: ServerOptions): string;
|
||||
|
||||
/**
|
||||
* Similar to `renderToNodeStream`, except this doesn't create extra DOM attributes
|
||||
* such as `data-reactid`, that React uses internally. The HTML output by this stream
|
||||
* is exactly equal to what `ReactDOMServer.renderToStaticMarkup()` would return.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
export function renderToStaticNodeStream(element: ReactNode, options?: ServerOptions): NodeJS.ReadableStream;
|
||||
|
||||
export interface RenderToReadableStreamOptions {
|
||||
identifierPrefix?: string;
|
||||
namespaceURI?: string;
|
||||
nonce?: string;
|
||||
bootstrapScriptContent?: string;
|
||||
bootstrapScripts?: string[];
|
||||
bootstrapModules?: string[];
|
||||
progressiveChunkSize?: number;
|
||||
signal?: AbortSignal;
|
||||
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|
||||
}
|
||||
|
||||
export interface ReactDOMServerReadableStream extends ReadableStream {
|
||||
allReady: Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) (this includes browsers, Deno, and some modern edge runtimes).
|
||||
*
|
||||
* @see [API](https://reactjs.org/docs/react-dom-server.html#rendertoreadablestream)
|
||||
*/
|
||||
export function renderToReadableStream(
|
||||
children: ReactNode,
|
||||
options?: RenderToReadableStreamOptions,
|
||||
): Promise<ReactDOMServerReadableStream>;
|
||||
|
||||
export const version: string;
|
||||
|
||||
export as namespace ReactDOMServer;
|
@@ -1,402 +0,0 @@
|
||||
import {
|
||||
AbstractView,
|
||||
CElement,
|
||||
ClassType,
|
||||
Component,
|
||||
ComponentClass,
|
||||
DOMAttributes,
|
||||
DOMElement,
|
||||
FC,
|
||||
FunctionComponentElement,
|
||||
ReactElement,
|
||||
ReactHTMLElement,
|
||||
ReactInstance,
|
||||
} from "react";
|
||||
|
||||
import * as ReactTestUtils from ".";
|
||||
|
||||
export {};
|
||||
|
||||
export interface OptionalEventProperties {
|
||||
bubbles?: boolean | undefined;
|
||||
cancelable?: boolean | undefined;
|
||||
currentTarget?: EventTarget | undefined;
|
||||
defaultPrevented?: boolean | undefined;
|
||||
eventPhase?: number | undefined;
|
||||
isTrusted?: boolean | undefined;
|
||||
nativeEvent?: Event | undefined;
|
||||
preventDefault?(): void;
|
||||
stopPropagation?(): void;
|
||||
target?: EventTarget | undefined;
|
||||
timeStamp?: Date | undefined;
|
||||
type?: string | undefined;
|
||||
}
|
||||
|
||||
export type ModifierKey =
|
||||
| "Alt"
|
||||
| "AltGraph"
|
||||
| "CapsLock"
|
||||
| "Control"
|
||||
| "Fn"
|
||||
| "FnLock"
|
||||
| "Hyper"
|
||||
| "Meta"
|
||||
| "NumLock"
|
||||
| "ScrollLock"
|
||||
| "Shift"
|
||||
| "Super"
|
||||
| "Symbol"
|
||||
| "SymbolLock";
|
||||
|
||||
export interface SyntheticEventData extends OptionalEventProperties {
|
||||
altKey?: boolean | undefined;
|
||||
button?: number | undefined;
|
||||
buttons?: number | undefined;
|
||||
clientX?: number | undefined;
|
||||
clientY?: number | undefined;
|
||||
changedTouches?: TouchList | undefined;
|
||||
charCode?: number | undefined;
|
||||
clipboardData?: DataTransfer | undefined;
|
||||
ctrlKey?: boolean | undefined;
|
||||
deltaMode?: number | undefined;
|
||||
deltaX?: number | undefined;
|
||||
deltaY?: number | undefined;
|
||||
deltaZ?: number | undefined;
|
||||
detail?: number | undefined;
|
||||
getModifierState?(key: ModifierKey): boolean;
|
||||
key?: string | undefined;
|
||||
keyCode?: number | undefined;
|
||||
locale?: string | undefined;
|
||||
location?: number | undefined;
|
||||
metaKey?: boolean | undefined;
|
||||
pageX?: number | undefined;
|
||||
pageY?: number | undefined;
|
||||
relatedTarget?: EventTarget | undefined;
|
||||
repeat?: boolean | undefined;
|
||||
screenX?: number | undefined;
|
||||
screenY?: number | undefined;
|
||||
shiftKey?: boolean | undefined;
|
||||
targetTouches?: TouchList | undefined;
|
||||
touches?: TouchList | undefined;
|
||||
view?: AbstractView | undefined;
|
||||
which?: number | undefined;
|
||||
}
|
||||
|
||||
export type EventSimulator = (element: Element | Component<any>, eventData?: SyntheticEventData) => void;
|
||||
|
||||
export interface MockedComponentClass {
|
||||
new(props: any): any;
|
||||
}
|
||||
|
||||
export interface ShallowRenderer {
|
||||
/**
|
||||
* After `shallowRenderer.render()` has been called, returns shallowly rendered output.
|
||||
*/
|
||||
getRenderOutput<E extends ReactElement>(): E;
|
||||
/**
|
||||
* Similar to `ReactDOM.render` but it doesn't require DOM and only renders a single level deep.
|
||||
*/
|
||||
render(element: ReactElement, context?: any): void;
|
||||
unmount(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Simulate an event dispatch on a DOM node with optional `eventData` event data.
|
||||
* `Simulate` has a method for every event that React understands.
|
||||
*/
|
||||
export namespace Simulate {
|
||||
const abort: EventSimulator;
|
||||
const animationEnd: EventSimulator;
|
||||
const animationIteration: EventSimulator;
|
||||
const animationStart: EventSimulator;
|
||||
const blur: EventSimulator;
|
||||
const cancel: EventSimulator;
|
||||
const canPlay: EventSimulator;
|
||||
const canPlayThrough: EventSimulator;
|
||||
const change: EventSimulator;
|
||||
const click: EventSimulator;
|
||||
const close: EventSimulator;
|
||||
const compositionEnd: EventSimulator;
|
||||
const compositionStart: EventSimulator;
|
||||
const compositionUpdate: EventSimulator;
|
||||
const contextMenu: EventSimulator;
|
||||
const copy: EventSimulator;
|
||||
const cut: EventSimulator;
|
||||
const auxClick: EventSimulator;
|
||||
const doubleClick: EventSimulator;
|
||||
const drag: EventSimulator;
|
||||
const dragEnd: EventSimulator;
|
||||
const dragEnter: EventSimulator;
|
||||
const dragExit: EventSimulator;
|
||||
const dragLeave: EventSimulator;
|
||||
const dragOver: EventSimulator;
|
||||
const dragStart: EventSimulator;
|
||||
const drop: EventSimulator;
|
||||
const durationChange: EventSimulator;
|
||||
const emptied: EventSimulator;
|
||||
const encrypted: EventSimulator;
|
||||
const ended: EventSimulator;
|
||||
const error: EventSimulator;
|
||||
const focus: EventSimulator;
|
||||
const input: EventSimulator;
|
||||
const invalid: EventSimulator;
|
||||
const keyDown: EventSimulator;
|
||||
const keyPress: EventSimulator;
|
||||
const keyUp: EventSimulator;
|
||||
const load: EventSimulator;
|
||||
const loadStart: EventSimulator;
|
||||
const loadedData: EventSimulator;
|
||||
const loadedMetadata: EventSimulator;
|
||||
const mouseDown: EventSimulator;
|
||||
const mouseEnter: EventSimulator;
|
||||
const mouseLeave: EventSimulator;
|
||||
const mouseMove: EventSimulator;
|
||||
const mouseOut: EventSimulator;
|
||||
const mouseOver: EventSimulator;
|
||||
const mouseUp: EventSimulator;
|
||||
const paste: EventSimulator;
|
||||
const pause: EventSimulator;
|
||||
const play: EventSimulator;
|
||||
const playing: EventSimulator;
|
||||
const progress: EventSimulator;
|
||||
const pointerCancel: EventSimulator;
|
||||
const pointerDown: EventSimulator;
|
||||
const pointerUp: EventSimulator;
|
||||
const pointerMove: EventSimulator;
|
||||
const pointerOut: EventSimulator;
|
||||
const pointerOver: EventSimulator;
|
||||
const pointerEnter: EventSimulator;
|
||||
const pointerLeave: EventSimulator;
|
||||
const gotPointerCapture: EventSimulator;
|
||||
const lostPointerCapture: EventSimulator;
|
||||
const rateChange: EventSimulator;
|
||||
const reset: EventSimulator;
|
||||
const resize: EventSimulator;
|
||||
const scroll: EventSimulator;
|
||||
const toggle: EventSimulator;
|
||||
const seeked: EventSimulator;
|
||||
const seeking: EventSimulator;
|
||||
const select: EventSimulator;
|
||||
const beforeInput: EventSimulator;
|
||||
const stalled: EventSimulator;
|
||||
const submit: EventSimulator;
|
||||
const suspend: EventSimulator;
|
||||
const timeUpdate: EventSimulator;
|
||||
const touchCancel: EventSimulator;
|
||||
const touchEnd: EventSimulator;
|
||||
const touchMove: EventSimulator;
|
||||
const touchStart: EventSimulator;
|
||||
const transitionEnd: EventSimulator;
|
||||
const volumeChange: EventSimulator;
|
||||
const waiting: EventSimulator;
|
||||
const wheel: EventSimulator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a React element into a detached DOM node in the document. __This function requires a DOM__.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function renderIntoDocument<T extends Element>(
|
||||
element: DOMElement<any, T>,
|
||||
): T;
|
||||
/** @deprecated https://react.dev/warnings/react-dom-test-utils */
|
||||
export function renderIntoDocument(
|
||||
element: FunctionComponentElement<any>,
|
||||
): void;
|
||||
// If we replace `P` with `any` in this overload, then some tests fail because
|
||||
// calls to `renderIntoDocument` choose the last overload on the
|
||||
// subtype-relation pass and get an undesirably broad return type. Using `P`
|
||||
// allows this overload to match on the subtype-relation pass.
|
||||
/**
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function renderIntoDocument<P, T extends Component<P>>(
|
||||
element: CElement<P, T>,
|
||||
): T;
|
||||
/**
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function renderIntoDocument<P>(
|
||||
element: ReactElement<P>,
|
||||
): Component<P> | Element | void;
|
||||
|
||||
/**
|
||||
* Pass a mocked component module to this method to augment it with useful methods that allow it to
|
||||
* be used as a dummy React component. Instead of rendering as usual, the component will become
|
||||
* a simple `<div>` (or other tag if `mockTagName` is provided) containing any provided children.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function mockComponent(
|
||||
mocked: MockedComponentClass,
|
||||
mockTagName?: string,
|
||||
): typeof ReactTestUtils;
|
||||
|
||||
/**
|
||||
* Returns `true` if `element` is any React element.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElement(element: any): boolean;
|
||||
|
||||
/**
|
||||
* Returns `true` if `element` is a React element whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElementOfType<T extends HTMLElement>(
|
||||
element: ReactElement,
|
||||
type: string,
|
||||
): element is ReactHTMLElement<T>;
|
||||
/**
|
||||
* Returns `true` if `element` is a React element whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElementOfType<P extends DOMAttributes<{}>, T extends Element>(
|
||||
element: ReactElement,
|
||||
type: string,
|
||||
): element is DOMElement<P, T>;
|
||||
/**
|
||||
* Returns `true` if `element` is a React element whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElementOfType<P>(
|
||||
element: ReactElement,
|
||||
type: FC<P>,
|
||||
): element is FunctionComponentElement<P>;
|
||||
/**
|
||||
* Returns `true` if `element` is a React element whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElementOfType<P, T extends Component<P>, C extends ComponentClass<P>>(
|
||||
element: ReactElement,
|
||||
type: ClassType<P, T, C>,
|
||||
): element is CElement<P, T>;
|
||||
|
||||
/**
|
||||
* Returns `true` if `instance` is a DOM component (such as a `<div>` or `<span>`).
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isDOMComponent(instance: ReactInstance): instance is Element;
|
||||
/**
|
||||
* Returns `true` if `instance` is a user-defined component, such as a class or a function.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isCompositeComponent(instance: ReactInstance): instance is Component<any>;
|
||||
/**
|
||||
* Returns `true` if `instance` is a component whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isCompositeComponentWithType<T extends Component<any>, C extends ComponentClass<any>>(
|
||||
instance: ReactInstance,
|
||||
type: ClassType<any, T, C>,
|
||||
): boolean;
|
||||
|
||||
/**
|
||||
* Traverse all components in `tree` and accumulate all components where
|
||||
* `test(component)` is `true`. This is not that useful on its own, but it's used
|
||||
* as a primitive for other test utils.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function findAllInRenderedTree(
|
||||
root: Component<any>,
|
||||
fn: (i: ReactInstance) => boolean,
|
||||
): ReactInstance[];
|
||||
|
||||
/**
|
||||
* Finds all DOM elements of components in the rendered tree that are
|
||||
* DOM components with the class name matching `className`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function scryRenderedDOMComponentsWithClass(
|
||||
root: Component<any>,
|
||||
className: string,
|
||||
): Element[];
|
||||
/**
|
||||
* Like `scryRenderedDOMComponentsWithClass()` but expects there to be one result,
|
||||
* and returns that one result, or throws exception if there is any other
|
||||
* number of matches besides one.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function findRenderedDOMComponentWithClass(
|
||||
root: Component<any>,
|
||||
className: string,
|
||||
): Element;
|
||||
|
||||
/**
|
||||
* Finds all DOM elements of components in the rendered tree that are
|
||||
* DOM components with the tag name matching `tagName`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function scryRenderedDOMComponentsWithTag(
|
||||
root: Component<any>,
|
||||
tagName: string,
|
||||
): Element[];
|
||||
/**
|
||||
* Like `scryRenderedDOMComponentsWithTag()` but expects there to be one result,
|
||||
* and returns that one result, or throws exception if there is any other
|
||||
* number of matches besides one.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function findRenderedDOMComponentWithTag(
|
||||
root: Component<any>,
|
||||
tagName: string,
|
||||
): Element;
|
||||
|
||||
/**
|
||||
* Finds all instances of components with type equal to `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function scryRenderedComponentsWithType<T extends Component<any>, C extends ComponentClass<any>>(
|
||||
root: Component<any>,
|
||||
type: ClassType<any, T, C>,
|
||||
): T[];
|
||||
|
||||
/**
|
||||
* Same as `scryRenderedComponentsWithType()` but expects there to be one result
|
||||
* and returns that one result, or throws exception if there is any other
|
||||
* number of matches besides one.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function findRenderedComponentWithType<T extends Component<any>, C extends ComponentClass<any>>(
|
||||
root: Component<any>,
|
||||
type: ClassType<any, T, C>,
|
||||
): T;
|
||||
|
||||
/**
|
||||
* Call this in your tests to create a shallow renderer.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function createRenderer(): ShallowRenderer;
|
||||
|
||||
// NOTES
|
||||
// - the order of these signatures matters - typescript will check the signatures in source order.
|
||||
// If the `() => VoidOrUndefinedOnly` signature is first, it'll erroneously match a Promise returning function for users with
|
||||
// `strictNullChecks: false`.
|
||||
// - VoidOrUndefinedOnly is there to forbid any non-void return values for users with `strictNullChecks: true`
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
/**
|
||||
* Wrap any code rendering and triggering updates to your components into `act()` calls.
|
||||
*
|
||||
* Ensures that the behavior in your tests matches what happens in the browser
|
||||
* more closely by executing pending `useEffect`s before returning. This also
|
||||
* reduces the amount of re-renders done.
|
||||
*
|
||||
* @param callback A synchronous, void callback that will execute as a single, complete React commit.
|
||||
*
|
||||
* @see https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks
|
||||
*
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
// While act does always return Thenable, if a void function is passed, we pretend the return value is also void to not trigger dangling Promise lint rules.
|
||||
export function act(callback: () => VoidOrUndefinedOnly): void;
|
||||
/**
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function act<T>(callback: () => T | Promise<T>): Promise<T>;
|
||||
|
||||
// Intentionally doesn't extend PromiseLike<never>.
|
||||
// Ideally this should be as hard to accidentally use as possible.
|
||||
export interface DebugPromiseLike {
|
||||
// the actual then() in here is 0-ary, but that doesn't count as a PromiseLike.
|
||||
then(onfulfilled: (value: never) => never, onrejected: (reason: never) => never): never;
|
||||
}
|
1
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/prop-types
generated
vendored
1
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/prop-types
generated
vendored
@@ -1 +0,0 @@
|
||||
../../../@types+prop-types@15.7.14/node_modules/@types/prop-types
|
21
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/LICENSE
generated
vendored
21
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/LICENSE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
15
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/README.md
generated
vendored
15
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/README.md
generated
vendored
@@ -1,15 +0,0 @@
|
||||
# Installation
|
||||
> `npm install --save @types/react`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for react (https://react.dev/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react/v18.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 16 Dec 2024 12:44:17 GMT
|
||||
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype)
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), [Priyanshu Rav](https://github.com/priyanshurav), [Dmitry Semigradsky](https://github.com/Semigradsky), and [Matt Pocock](https://github.com/mattpocock).
|
166
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/canary.d.ts
generated
vendored
166
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/canary.d.ts
generated
vendored
@@ -1,166 +0,0 @@
|
||||
/**
|
||||
* These are types for things that are present in the React `canary` release channel.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react/canary"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react/canary'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react/canary" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react/src/React.js to see how the exports are declared,
|
||||
|
||||
import React = require(".");
|
||||
|
||||
export {};
|
||||
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
|
||||
type NativeToggleEvent = ToggleEvent;
|
||||
|
||||
declare module "." {
|
||||
export type Usable<T> = PromiseLike<T> | Context<T>;
|
||||
|
||||
export function use<T>(usable: Usable<T>): T;
|
||||
|
||||
interface ServerContextJSONArray extends ReadonlyArray<ServerContextJSONValue> {}
|
||||
export type ServerContextJSONValue =
|
||||
| string
|
||||
| boolean
|
||||
| number
|
||||
| null
|
||||
| ServerContextJSONArray
|
||||
| { [key: string]: ServerContextJSONValue };
|
||||
export interface ServerContext<T extends ServerContextJSONValue> {
|
||||
Provider: Provider<T>;
|
||||
}
|
||||
/**
|
||||
* Accepts a context object (the value returned from `React.createContext` or `React.createServerContext`) and returns the current
|
||||
* context value, as given by the nearest context provider for the given context.
|
||||
*
|
||||
* @version 16.8.0
|
||||
* @see https://react.dev/reference/react/useContext
|
||||
*/
|
||||
function useContext<T extends ServerContextJSONValue>(context: ServerContext<T>): T;
|
||||
export function createServerContext<T extends ServerContextJSONValue>(
|
||||
globalName: string,
|
||||
defaultValue: T,
|
||||
): ServerContext<T>;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
|
||||
|
||||
export function unstable_useCacheRefresh(): () => void;
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {
|
||||
functions: (formData: FormData) => void | Promise<void>;
|
||||
}
|
||||
|
||||
export interface TransitionStartFunction {
|
||||
/**
|
||||
* Marks all state updates inside the async function as transitions
|
||||
*
|
||||
* @see {https://react.dev/reference/react/useTransition#starttransition}
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
(callback: () => Promise<VoidOrUndefinedOnly>): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to `useTransition` but allows uses where hooks are not available.
|
||||
*
|
||||
* @param callback An _asynchronous_ function which causes state updates that can be deferred.
|
||||
*/
|
||||
export function startTransition(scope: () => Promise<VoidOrUndefinedOnly>): void;
|
||||
|
||||
export function useOptimistic<State>(
|
||||
passthrough: State,
|
||||
): [State, (action: State | ((pendingState: State) => State)) => void];
|
||||
export function useOptimistic<State, Action>(
|
||||
passthrough: State,
|
||||
reducer: (state: State, action: Action) => State,
|
||||
): [State, (action: Action) => void];
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES {
|
||||
cleanup: () => VoidOrUndefinedOnly;
|
||||
}
|
||||
|
||||
export function useActionState<State>(
|
||||
action: (state: Awaited<State>) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: () => void, isPending: boolean];
|
||||
export function useActionState<State, Payload>(
|
||||
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: (payload: Payload) => void, isPending: boolean];
|
||||
|
||||
interface DOMAttributes<T> {
|
||||
// Transition Events
|
||||
onTransitionCancel?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionCancelCapture?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionRun?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionRunCapture?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionStart?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionStartCapture?: TransitionEventHandler<T> | undefined;
|
||||
}
|
||||
|
||||
type ToggleEventHandler<T = Element> = EventHandler<ToggleEvent<T>>;
|
||||
|
||||
interface HTMLAttributes<T> {
|
||||
popover?: "" | "auto" | "manual" | undefined;
|
||||
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
||||
popoverTarget?: string | undefined;
|
||||
onToggle?: ToggleEventHandler<T> | undefined;
|
||||
onBeforeToggle?: ToggleEventHandler<T> | undefined;
|
||||
}
|
||||
|
||||
interface ToggleEvent<T = Element> extends SyntheticEvent<T, NativeToggleEvent> {
|
||||
oldState: "closed" | "open";
|
||||
newState: "closed" | "open";
|
||||
}
|
||||
|
||||
interface LinkHTMLAttributes<T> {
|
||||
precedence?: string | undefined;
|
||||
}
|
||||
|
||||
interface StyleHTMLAttributes<T> {
|
||||
href?: string | undefined;
|
||||
precedence?: string | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal Use `Awaited<ReactNode>` instead
|
||||
*/
|
||||
// Helper type to enable `Awaited<ReactNode>`.
|
||||
// Must be a copy of the non-thenables of `ReactNode`.
|
||||
type AwaitedReactNode =
|
||||
| ReactElement
|
||||
| string
|
||||
| number
|
||||
| Iterable<AwaitedReactNode>
|
||||
| ReactPortal
|
||||
| boolean
|
||||
| null
|
||||
| undefined;
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
|
||||
promises: Promise<AwaitedReactNode>;
|
||||
bigints: bigint;
|
||||
}
|
||||
}
|
132
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/experimental.d.ts
generated
vendored
132
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/experimental.d.ts
generated
vendored
@@ -1,132 +0,0 @@
|
||||
/**
|
||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
||||
* on a stable build.
|
||||
*
|
||||
* Once they are promoted to stable they can just be moved to the main index file.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react/experimental"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react/experimental'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react/experimental" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/master/packages/react/src/React.js to see how the exports are declared,
|
||||
// and https://github.com/facebook/react/blob/master/packages/shared/ReactFeatureFlags.js to verify which APIs are
|
||||
// flagged experimental or not. Experimental APIs will be tagged with `__EXPERIMENTAL__`.
|
||||
//
|
||||
// For the inputs of types exported as simply a fiber tag, the `beginWork` function of ReactFiberBeginWork.js
|
||||
// is a good place to start looking for details; it generally calls prop validation functions or delegates
|
||||
// all tasks done as part of the render phase (the concurrent part of the React update cycle).
|
||||
//
|
||||
// Suspense-related handling can be found in ReactFiberThrow.js.
|
||||
|
||||
import React = require("./canary");
|
||||
|
||||
export {};
|
||||
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
|
||||
declare module "." {
|
||||
export interface SuspenseProps {
|
||||
/**
|
||||
* The presence of this prop indicates that the content is computationally expensive to render.
|
||||
* In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
|
||||
* @see {@link https://github.com/facebook/react/pull/19936}
|
||||
*/
|
||||
unstable_expectedLoadTime?: number | undefined;
|
||||
}
|
||||
|
||||
export type SuspenseListRevealOrder = "forwards" | "backwards" | "together";
|
||||
export type SuspenseListTailMode = "collapsed" | "hidden";
|
||||
|
||||
export interface SuspenseListCommonProps {
|
||||
/**
|
||||
* Note that SuspenseList require more than one child;
|
||||
* it is a runtime warning to provide only a single child.
|
||||
*
|
||||
* It does, however, allow those children to be wrapped inside a single
|
||||
* level of `<React.Fragment>`.
|
||||
*/
|
||||
children: ReactElement | Iterable<ReactElement>;
|
||||
}
|
||||
|
||||
interface DirectionalSuspenseListProps extends SuspenseListCommonProps {
|
||||
/**
|
||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
||||
*/
|
||||
revealOrder: "forwards" | "backwards";
|
||||
/**
|
||||
* Dictates how unloaded items in a SuspenseList is shown.
|
||||
*
|
||||
* - By default, `SuspenseList` will show all fallbacks in the list.
|
||||
* - `collapsed` shows only the next fallback in the list.
|
||||
* - `hidden` doesn’t show any unloaded items.
|
||||
*/
|
||||
tail?: SuspenseListTailMode | undefined;
|
||||
}
|
||||
|
||||
interface NonDirectionalSuspenseListProps extends SuspenseListCommonProps {
|
||||
/**
|
||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
||||
*/
|
||||
revealOrder?: Exclude<SuspenseListRevealOrder, DirectionalSuspenseListProps["revealOrder"]> | undefined;
|
||||
/**
|
||||
* The tail property is invalid when not using the `forwards` or `backwards` reveal orders.
|
||||
*/
|
||||
tail?: never | undefined;
|
||||
}
|
||||
|
||||
export type SuspenseListProps = DirectionalSuspenseListProps | NonDirectionalSuspenseListProps;
|
||||
|
||||
/**
|
||||
* `SuspenseList` helps coordinate many components that can suspend by orchestrating the order
|
||||
* in which these components are revealed to the user.
|
||||
*
|
||||
* When multiple components need to fetch data, this data may arrive in an unpredictable order.
|
||||
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
||||
* until previous items have been displayed (this behavior is adjustable).
|
||||
*
|
||||
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
||||
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
||||
*/
|
||||
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
||||
|
||||
/**
|
||||
* Warning: Only available in development builds.
|
||||
*/
|
||||
function captureOwnerStack(): string | null;
|
||||
|
||||
type Reference = object;
|
||||
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
||||
function experimental_taintUniqueValue(
|
||||
message: string | undefined,
|
||||
lifetime: Reference,
|
||||
value: TaintableUniqueValue,
|
||||
): void;
|
||||
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
||||
|
||||
export interface HTMLAttributes<T> {
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
||||
*/
|
||||
inert?: boolean | undefined;
|
||||
}
|
||||
}
|
160
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/global.d.ts
generated
vendored
160
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/global.d.ts
generated
vendored
@@ -1,160 +0,0 @@
|
||||
/*
|
||||
React projects that don't include the DOM library need these interfaces to compile.
|
||||
React Native applications use React, but there is no DOM available. The JavaScript runtime
|
||||
is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
|
||||
|
||||
Warning: all of these interfaces are empty. If you want type definitions for various properties
|
||||
(such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
|
||||
*/
|
||||
|
||||
interface Event {}
|
||||
interface AnimationEvent extends Event {}
|
||||
interface ClipboardEvent extends Event {}
|
||||
interface CompositionEvent extends Event {}
|
||||
interface DragEvent extends Event {}
|
||||
interface FocusEvent extends Event {}
|
||||
interface KeyboardEvent extends Event {}
|
||||
interface MouseEvent extends Event {}
|
||||
interface TouchEvent extends Event {}
|
||||
interface PointerEvent extends Event {}
|
||||
interface ToggleEvent extends Event {}
|
||||
interface TransitionEvent extends Event {}
|
||||
interface UIEvent extends Event {}
|
||||
interface WheelEvent extends Event {}
|
||||
|
||||
interface EventTarget {}
|
||||
interface Document {}
|
||||
interface DataTransfer {}
|
||||
interface StyleMedia {}
|
||||
|
||||
interface Element {}
|
||||
interface DocumentFragment {}
|
||||
|
||||
interface HTMLElement extends Element {}
|
||||
interface HTMLAnchorElement extends HTMLElement {}
|
||||
interface HTMLAreaElement extends HTMLElement {}
|
||||
interface HTMLAudioElement extends HTMLElement {}
|
||||
interface HTMLBaseElement extends HTMLElement {}
|
||||
interface HTMLBodyElement extends HTMLElement {}
|
||||
interface HTMLBRElement extends HTMLElement {}
|
||||
interface HTMLButtonElement extends HTMLElement {}
|
||||
interface HTMLCanvasElement extends HTMLElement {}
|
||||
interface HTMLDataElement extends HTMLElement {}
|
||||
interface HTMLDataListElement extends HTMLElement {}
|
||||
interface HTMLDetailsElement extends HTMLElement {}
|
||||
interface HTMLDialogElement extends HTMLElement {}
|
||||
interface HTMLDivElement extends HTMLElement {}
|
||||
interface HTMLDListElement extends HTMLElement {}
|
||||
interface HTMLEmbedElement extends HTMLElement {}
|
||||
interface HTMLFieldSetElement extends HTMLElement {}
|
||||
interface HTMLFormElement extends HTMLElement {}
|
||||
interface HTMLHeadingElement extends HTMLElement {}
|
||||
interface HTMLHeadElement extends HTMLElement {}
|
||||
interface HTMLHRElement extends HTMLElement {}
|
||||
interface HTMLHtmlElement extends HTMLElement {}
|
||||
interface HTMLIFrameElement extends HTMLElement {}
|
||||
interface HTMLImageElement extends HTMLElement {}
|
||||
interface HTMLInputElement extends HTMLElement {}
|
||||
interface HTMLModElement extends HTMLElement {}
|
||||
interface HTMLLabelElement extends HTMLElement {}
|
||||
interface HTMLLegendElement extends HTMLElement {}
|
||||
interface HTMLLIElement extends HTMLElement {}
|
||||
interface HTMLLinkElement extends HTMLElement {}
|
||||
interface HTMLMapElement extends HTMLElement {}
|
||||
interface HTMLMetaElement extends HTMLElement {}
|
||||
interface HTMLMeterElement extends HTMLElement {}
|
||||
interface HTMLObjectElement extends HTMLElement {}
|
||||
interface HTMLOListElement extends HTMLElement {}
|
||||
interface HTMLOptGroupElement extends HTMLElement {}
|
||||
interface HTMLOptionElement extends HTMLElement {}
|
||||
interface HTMLOutputElement extends HTMLElement {}
|
||||
interface HTMLParagraphElement extends HTMLElement {}
|
||||
interface HTMLParamElement extends HTMLElement {}
|
||||
interface HTMLPreElement extends HTMLElement {}
|
||||
interface HTMLProgressElement extends HTMLElement {}
|
||||
interface HTMLQuoteElement extends HTMLElement {}
|
||||
interface HTMLSlotElement extends HTMLElement {}
|
||||
interface HTMLScriptElement extends HTMLElement {}
|
||||
interface HTMLSelectElement extends HTMLElement {}
|
||||
interface HTMLSourceElement extends HTMLElement {}
|
||||
interface HTMLSpanElement extends HTMLElement {}
|
||||
interface HTMLStyleElement extends HTMLElement {}
|
||||
interface HTMLTableElement extends HTMLElement {}
|
||||
interface HTMLTableColElement extends HTMLElement {}
|
||||
interface HTMLTableDataCellElement extends HTMLElement {}
|
||||
interface HTMLTableHeaderCellElement extends HTMLElement {}
|
||||
interface HTMLTableRowElement extends HTMLElement {}
|
||||
interface HTMLTableSectionElement extends HTMLElement {}
|
||||
interface HTMLTemplateElement extends HTMLElement {}
|
||||
interface HTMLTextAreaElement extends HTMLElement {}
|
||||
interface HTMLTimeElement extends HTMLElement {}
|
||||
interface HTMLTitleElement extends HTMLElement {}
|
||||
interface HTMLTrackElement extends HTMLElement {}
|
||||
interface HTMLUListElement extends HTMLElement {}
|
||||
interface HTMLVideoElement extends HTMLElement {}
|
||||
interface HTMLWebViewElement extends HTMLElement {}
|
||||
|
||||
interface SVGElement extends Element {}
|
||||
interface SVGSVGElement extends SVGElement {}
|
||||
interface SVGCircleElement extends SVGElement {}
|
||||
interface SVGClipPathElement extends SVGElement {}
|
||||
interface SVGDefsElement extends SVGElement {}
|
||||
interface SVGDescElement extends SVGElement {}
|
||||
interface SVGEllipseElement extends SVGElement {}
|
||||
interface SVGFEBlendElement extends SVGElement {}
|
||||
interface SVGFEColorMatrixElement extends SVGElement {}
|
||||
interface SVGFEComponentTransferElement extends SVGElement {}
|
||||
interface SVGFECompositeElement extends SVGElement {}
|
||||
interface SVGFEConvolveMatrixElement extends SVGElement {}
|
||||
interface SVGFEDiffuseLightingElement extends SVGElement {}
|
||||
interface SVGFEDisplacementMapElement extends SVGElement {}
|
||||
interface SVGFEDistantLightElement extends SVGElement {}
|
||||
interface SVGFEDropShadowElement extends SVGElement {}
|
||||
interface SVGFEFloodElement extends SVGElement {}
|
||||
interface SVGFEFuncAElement extends SVGElement {}
|
||||
interface SVGFEFuncBElement extends SVGElement {}
|
||||
interface SVGFEFuncGElement extends SVGElement {}
|
||||
interface SVGFEFuncRElement extends SVGElement {}
|
||||
interface SVGFEGaussianBlurElement extends SVGElement {}
|
||||
interface SVGFEImageElement extends SVGElement {}
|
||||
interface SVGFEMergeElement extends SVGElement {}
|
||||
interface SVGFEMergeNodeElement extends SVGElement {}
|
||||
interface SVGFEMorphologyElement extends SVGElement {}
|
||||
interface SVGFEOffsetElement extends SVGElement {}
|
||||
interface SVGFEPointLightElement extends SVGElement {}
|
||||
interface SVGFESpecularLightingElement extends SVGElement {}
|
||||
interface SVGFESpotLightElement extends SVGElement {}
|
||||
interface SVGFETileElement extends SVGElement {}
|
||||
interface SVGFETurbulenceElement extends SVGElement {}
|
||||
interface SVGFilterElement extends SVGElement {}
|
||||
interface SVGForeignObjectElement extends SVGElement {}
|
||||
interface SVGGElement extends SVGElement {}
|
||||
interface SVGImageElement extends SVGElement {}
|
||||
interface SVGLineElement extends SVGElement {}
|
||||
interface SVGLinearGradientElement extends SVGElement {}
|
||||
interface SVGMarkerElement extends SVGElement {}
|
||||
interface SVGMaskElement extends SVGElement {}
|
||||
interface SVGMetadataElement extends SVGElement {}
|
||||
interface SVGPathElement extends SVGElement {}
|
||||
interface SVGPatternElement extends SVGElement {}
|
||||
interface SVGPolygonElement extends SVGElement {}
|
||||
interface SVGPolylineElement extends SVGElement {}
|
||||
interface SVGRadialGradientElement extends SVGElement {}
|
||||
interface SVGRectElement extends SVGElement {}
|
||||
interface SVGSetElement extends SVGElement {}
|
||||
interface SVGStopElement extends SVGElement {}
|
||||
interface SVGSwitchElement extends SVGElement {}
|
||||
interface SVGSymbolElement extends SVGElement {}
|
||||
interface SVGTextElement extends SVGElement {}
|
||||
interface SVGTextPathElement extends SVGElement {}
|
||||
interface SVGTSpanElement extends SVGElement {}
|
||||
interface SVGUseElement extends SVGElement {}
|
||||
interface SVGViewElement extends SVGElement {}
|
||||
|
||||
interface FormData {}
|
||||
interface Text {}
|
||||
interface TouchList {}
|
||||
interface WebGLRenderingContext {}
|
||||
interface WebGL2RenderingContext {}
|
||||
|
||||
interface TrustedHTML {}
|
4543
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/index.d.ts
generated
vendored
4543
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/index.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
45
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/jsx-dev-runtime.d.ts
generated
vendored
45
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/jsx-dev-runtime.d.ts
generated
vendored
@@ -1,45 +0,0 @@
|
||||
import * as React from "./";
|
||||
export { Fragment } from "./";
|
||||
|
||||
export namespace JSX {
|
||||
type ElementType = React.JSX.ElementType;
|
||||
interface Element extends React.JSX.Element {}
|
||||
interface ElementClass extends React.JSX.ElementClass {}
|
||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
||||
}
|
||||
|
||||
export interface JSXSource {
|
||||
/**
|
||||
* The source file where the element originates from.
|
||||
*/
|
||||
fileName?: string | undefined;
|
||||
|
||||
/**
|
||||
* The line number where the element was created.
|
||||
*/
|
||||
lineNumber?: number | undefined;
|
||||
|
||||
/**
|
||||
* The column number where the element was created.
|
||||
*/
|
||||
columnNumber?: number | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsxDEV(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key: React.Key | undefined,
|
||||
isStatic: boolean,
|
||||
source?: JSXSource,
|
||||
self?: unknown,
|
||||
): React.ReactElement;
|
36
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/jsx-runtime.d.ts
generated
vendored
36
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/jsx-runtime.d.ts
generated
vendored
@@ -1,36 +0,0 @@
|
||||
import * as React from "./";
|
||||
export { Fragment } from "./";
|
||||
|
||||
export namespace JSX {
|
||||
type ElementType = React.JSX.ElementType;
|
||||
interface Element extends React.JSX.Element {}
|
||||
interface ElementClass extends React.JSX.ElementClass {}
|
||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsx(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key?: React.Key,
|
||||
): React.ReactElement;
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsxs(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key?: React.Key,
|
||||
): React.ReactElement;
|
206
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/package.json
generated
vendored
206
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/package.json
generated
vendored
@@ -1,206 +0,0 @@
|
||||
{
|
||||
"name": "@types/react",
|
||||
"version": "18.3.17",
|
||||
"description": "TypeScript definitions for react",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Asana",
|
||||
"url": "https://asana.com"
|
||||
},
|
||||
{
|
||||
"name": "AssureSign",
|
||||
"url": "http://www.assuresign.com"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft",
|
||||
"url": "https://microsoft.com"
|
||||
},
|
||||
{
|
||||
"name": "John Reilly",
|
||||
"githubUsername": "johnnyreilly",
|
||||
"url": "https://github.com/johnnyreilly"
|
||||
},
|
||||
{
|
||||
"name": "Benoit Benezech",
|
||||
"githubUsername": "bbenezech",
|
||||
"url": "https://github.com/bbenezech"
|
||||
},
|
||||
{
|
||||
"name": "Patricio Zavolinsky",
|
||||
"githubUsername": "pzavolinsky",
|
||||
"url": "https://github.com/pzavolinsky"
|
||||
},
|
||||
{
|
||||
"name": "Eric Anderson",
|
||||
"githubUsername": "ericanderson",
|
||||
"url": "https://github.com/ericanderson"
|
||||
},
|
||||
{
|
||||
"name": "Dovydas Navickas",
|
||||
"githubUsername": "DovydasNavickas",
|
||||
"url": "https://github.com/DovydasNavickas"
|
||||
},
|
||||
{
|
||||
"name": "Josh Rutherford",
|
||||
"githubUsername": "theruther4d",
|
||||
"url": "https://github.com/theruther4d"
|
||||
},
|
||||
{
|
||||
"name": "Guilherme Hübner",
|
||||
"githubUsername": "guilhermehubner",
|
||||
"url": "https://github.com/guilhermehubner"
|
||||
},
|
||||
{
|
||||
"name": "Ferdy Budhidharma",
|
||||
"githubUsername": "ferdaber",
|
||||
"url": "https://github.com/ferdaber"
|
||||
},
|
||||
{
|
||||
"name": "Johann Rakotoharisoa",
|
||||
"githubUsername": "jrakotoharisoa",
|
||||
"url": "https://github.com/jrakotoharisoa"
|
||||
},
|
||||
{
|
||||
"name": "Olivier Pascal",
|
||||
"githubUsername": "pascaloliv",
|
||||
"url": "https://github.com/pascaloliv"
|
||||
},
|
||||
{
|
||||
"name": "Martin Hochel",
|
||||
"githubUsername": "hotell",
|
||||
"url": "https://github.com/hotell"
|
||||
},
|
||||
{
|
||||
"name": "Frank Li",
|
||||
"githubUsername": "franklixuefei",
|
||||
"url": "https://github.com/franklixuefei"
|
||||
},
|
||||
{
|
||||
"name": "Jessica Franco",
|
||||
"githubUsername": "Jessidhia",
|
||||
"url": "https://github.com/Jessidhia"
|
||||
},
|
||||
{
|
||||
"name": "Saransh Kataria",
|
||||
"githubUsername": "saranshkataria",
|
||||
"url": "https://github.com/saranshkataria"
|
||||
},
|
||||
{
|
||||
"name": "Kanitkorn Sujautra",
|
||||
"githubUsername": "lukyth",
|
||||
"url": "https://github.com/lukyth"
|
||||
},
|
||||
{
|
||||
"name": "Sebastian Silbermann",
|
||||
"githubUsername": "eps1lon",
|
||||
"url": "https://github.com/eps1lon"
|
||||
},
|
||||
{
|
||||
"name": "Kyle Scully",
|
||||
"githubUsername": "zieka",
|
||||
"url": "https://github.com/zieka"
|
||||
},
|
||||
{
|
||||
"name": "Cong Zhang",
|
||||
"githubUsername": "dancerphil",
|
||||
"url": "https://github.com/dancerphil"
|
||||
},
|
||||
{
|
||||
"name": "Dimitri Mitropoulos",
|
||||
"githubUsername": "dimitropoulos",
|
||||
"url": "https://github.com/dimitropoulos"
|
||||
},
|
||||
{
|
||||
"name": "JongChan Choi",
|
||||
"githubUsername": "disjukr",
|
||||
"url": "https://github.com/disjukr"
|
||||
},
|
||||
{
|
||||
"name": "Victor Magalhães",
|
||||
"githubUsername": "vhfmag",
|
||||
"url": "https://github.com/vhfmag"
|
||||
},
|
||||
{
|
||||
"name": "Priyanshu Rav",
|
||||
"githubUsername": "priyanshurav",
|
||||
"url": "https://github.com/priyanshurav"
|
||||
},
|
||||
{
|
||||
"name": "Dmitry Semigradsky",
|
||||
"githubUsername": "Semigradsky",
|
||||
"url": "https://github.com/Semigradsky"
|
||||
},
|
||||
{
|
||||
"name": "Matt Pocock",
|
||||
"githubUsername": "mattpocock",
|
||||
"url": "https://github.com/mattpocock"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"typesVersions": {
|
||||
"<=5.0": {
|
||||
"*": [
|
||||
"ts5.0/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/index.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"./canary": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/canary.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./canary.d.ts"
|
||||
}
|
||||
},
|
||||
"./experimental": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/experimental.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./experimental.d.ts"
|
||||
}
|
||||
},
|
||||
"./jsx-runtime": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/jsx-runtime.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./jsx-runtime.d.ts"
|
||||
}
|
||||
},
|
||||
"./jsx-dev-runtime": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/jsx-dev-runtime.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./jsx-dev-runtime.d.ts"
|
||||
}
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/react"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"@types/prop-types": "*",
|
||||
"csstype": "^3.0.2"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "f8c1650d1099e4f098246067ac4105b0fa376c5cb8197c08daab74d4dc2defbd",
|
||||
"typeScriptVersion": "5.0"
|
||||
}
|
166
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/canary.d.ts
generated
vendored
166
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/canary.d.ts
generated
vendored
@@ -1,166 +0,0 @@
|
||||
/**
|
||||
* These are types for things that are present in the React `canary` release channel.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react/canary"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react/canary'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react/canary" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react/src/React.js to see how the exports are declared,
|
||||
|
||||
import React = require(".");
|
||||
|
||||
export {};
|
||||
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
|
||||
type NativeToggleEvent = ToggleEvent;
|
||||
|
||||
declare module "." {
|
||||
export type Usable<T> = PromiseLike<T> | Context<T>;
|
||||
|
||||
export function use<T>(usable: Usable<T>): T;
|
||||
|
||||
interface ServerContextJSONArray extends ReadonlyArray<ServerContextJSONValue> {}
|
||||
export type ServerContextJSONValue =
|
||||
| string
|
||||
| boolean
|
||||
| number
|
||||
| null
|
||||
| ServerContextJSONArray
|
||||
| { [key: string]: ServerContextJSONValue };
|
||||
export interface ServerContext<T extends ServerContextJSONValue> {
|
||||
Provider: Provider<T>;
|
||||
}
|
||||
/**
|
||||
* Accepts a context object (the value returned from `React.createContext` or `React.createServerContext`) and returns the current
|
||||
* context value, as given by the nearest context provider for the given context.
|
||||
*
|
||||
* @version 16.8.0
|
||||
* @see https://react.dev/reference/react/useContext
|
||||
*/
|
||||
function useContext<T extends ServerContextJSONValue>(context: ServerContext<T>): T;
|
||||
export function createServerContext<T extends ServerContextJSONValue>(
|
||||
globalName: string,
|
||||
defaultValue: T,
|
||||
): ServerContext<T>;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
|
||||
|
||||
export function unstable_useCacheRefresh(): () => void;
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {
|
||||
functions: (formData: FormData) => void | Promise<void>;
|
||||
}
|
||||
|
||||
export interface TransitionStartFunction {
|
||||
/**
|
||||
* Marks all state updates inside the async function as transitions
|
||||
*
|
||||
* @see {https://react.dev/reference/react/useTransition#starttransition}
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
(callback: () => Promise<VoidOrUndefinedOnly>): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to `useTransition` but allows uses where hooks are not available.
|
||||
*
|
||||
* @param callback An _asynchronous_ function which causes state updates that can be deferred.
|
||||
*/
|
||||
export function startTransition(scope: () => Promise<VoidOrUndefinedOnly>): void;
|
||||
|
||||
export function useOptimistic<State>(
|
||||
passthrough: State,
|
||||
): [State, (action: State | ((pendingState: State) => State)) => void];
|
||||
export function useOptimistic<State, Action>(
|
||||
passthrough: State,
|
||||
reducer: (state: State, action: Action) => State,
|
||||
): [State, (action: Action) => void];
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES {
|
||||
cleanup: () => VoidOrUndefinedOnly;
|
||||
}
|
||||
|
||||
export function useActionState<State>(
|
||||
action: (state: Awaited<State>) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: () => void, isPending: boolean];
|
||||
export function useActionState<State, Payload>(
|
||||
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: (payload: Payload) => void, isPending: boolean];
|
||||
|
||||
interface DOMAttributes<T> {
|
||||
// Transition Events
|
||||
onTransitionCancel?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionCancelCapture?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionRun?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionRunCapture?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionStart?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionStartCapture?: TransitionEventHandler<T> | undefined;
|
||||
}
|
||||
|
||||
type ToggleEventHandler<T = Element> = EventHandler<ToggleEvent<T>>;
|
||||
|
||||
interface HTMLAttributes<T> {
|
||||
popover?: "" | "auto" | "manual" | undefined;
|
||||
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
||||
popoverTarget?: string | undefined;
|
||||
onToggle?: ToggleEventHandler<T> | undefined;
|
||||
onBeforeToggle?: ToggleEventHandler<T> | undefined;
|
||||
}
|
||||
|
||||
interface ToggleEvent<T = Element> extends SyntheticEvent<T, NativeToggleEvent> {
|
||||
oldState: "closed" | "open";
|
||||
newState: "closed" | "open";
|
||||
}
|
||||
|
||||
interface LinkHTMLAttributes<T> {
|
||||
precedence?: string | undefined;
|
||||
}
|
||||
|
||||
interface StyleHTMLAttributes<T> {
|
||||
href?: string | undefined;
|
||||
precedence?: string | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal Use `Awaited<ReactNode>` instead
|
||||
*/
|
||||
// Helper type to enable `Awaited<ReactNode>`.
|
||||
// Must be a copy of the non-thenables of `ReactNode`.
|
||||
type AwaitedReactNode =
|
||||
| ReactElement
|
||||
| string
|
||||
| number
|
||||
| Iterable<AwaitedReactNode>
|
||||
| ReactPortal
|
||||
| boolean
|
||||
| null
|
||||
| undefined;
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
|
||||
promises: Promise<AwaitedReactNode>;
|
||||
bigints: bigint;
|
||||
}
|
||||
}
|
132
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/experimental.d.ts
generated
vendored
132
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/experimental.d.ts
generated
vendored
@@ -1,132 +0,0 @@
|
||||
/**
|
||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
||||
* on a stable build.
|
||||
*
|
||||
* Once they are promoted to stable they can just be moved to the main index file.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react/experimental"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react/experimental'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react/experimental" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/master/packages/react/src/React.js to see how the exports are declared,
|
||||
// and https://github.com/facebook/react/blob/master/packages/shared/ReactFeatureFlags.js to verify which APIs are
|
||||
// flagged experimental or not. Experimental APIs will be tagged with `__EXPERIMENTAL__`.
|
||||
//
|
||||
// For the inputs of types exported as simply a fiber tag, the `beginWork` function of ReactFiberBeginWork.js
|
||||
// is a good place to start looking for details; it generally calls prop validation functions or delegates
|
||||
// all tasks done as part of the render phase (the concurrent part of the React update cycle).
|
||||
//
|
||||
// Suspense-related handling can be found in ReactFiberThrow.js.
|
||||
|
||||
import React = require("./canary");
|
||||
|
||||
export {};
|
||||
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
|
||||
declare module "." {
|
||||
export interface SuspenseProps {
|
||||
/**
|
||||
* The presence of this prop indicates that the content is computationally expensive to render.
|
||||
* In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
|
||||
* @see {@link https://github.com/facebook/react/pull/19936}
|
||||
*/
|
||||
unstable_expectedLoadTime?: number | undefined;
|
||||
}
|
||||
|
||||
export type SuspenseListRevealOrder = "forwards" | "backwards" | "together";
|
||||
export type SuspenseListTailMode = "collapsed" | "hidden";
|
||||
|
||||
export interface SuspenseListCommonProps {
|
||||
/**
|
||||
* Note that SuspenseList require more than one child;
|
||||
* it is a runtime warning to provide only a single child.
|
||||
*
|
||||
* It does, however, allow those children to be wrapped inside a single
|
||||
* level of `<React.Fragment>`.
|
||||
*/
|
||||
children: ReactElement | Iterable<ReactElement>;
|
||||
}
|
||||
|
||||
interface DirectionalSuspenseListProps extends SuspenseListCommonProps {
|
||||
/**
|
||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
||||
*/
|
||||
revealOrder: "forwards" | "backwards";
|
||||
/**
|
||||
* Dictates how unloaded items in a SuspenseList is shown.
|
||||
*
|
||||
* - By default, `SuspenseList` will show all fallbacks in the list.
|
||||
* - `collapsed` shows only the next fallback in the list.
|
||||
* - `hidden` doesn’t show any unloaded items.
|
||||
*/
|
||||
tail?: SuspenseListTailMode | undefined;
|
||||
}
|
||||
|
||||
interface NonDirectionalSuspenseListProps extends SuspenseListCommonProps {
|
||||
/**
|
||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
||||
*/
|
||||
revealOrder?: Exclude<SuspenseListRevealOrder, DirectionalSuspenseListProps["revealOrder"]> | undefined;
|
||||
/**
|
||||
* The tail property is invalid when not using the `forwards` or `backwards` reveal orders.
|
||||
*/
|
||||
tail?: never | undefined;
|
||||
}
|
||||
|
||||
export type SuspenseListProps = DirectionalSuspenseListProps | NonDirectionalSuspenseListProps;
|
||||
|
||||
/**
|
||||
* `SuspenseList` helps coordinate many components that can suspend by orchestrating the order
|
||||
* in which these components are revealed to the user.
|
||||
*
|
||||
* When multiple components need to fetch data, this data may arrive in an unpredictable order.
|
||||
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
||||
* until previous items have been displayed (this behavior is adjustable).
|
||||
*
|
||||
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
||||
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
||||
*/
|
||||
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
||||
|
||||
/**
|
||||
* Warning: Only available in development builds.
|
||||
*/
|
||||
function captureOwnerStack(): string | null;
|
||||
|
||||
type Reference = object;
|
||||
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
||||
function experimental_taintUniqueValue(
|
||||
message: string | undefined,
|
||||
lifetime: Reference,
|
||||
value: TaintableUniqueValue,
|
||||
): void;
|
||||
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
||||
|
||||
export interface HTMLAttributes<T> {
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
||||
*/
|
||||
inert?: boolean | undefined;
|
||||
}
|
||||
}
|
160
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/global.d.ts
generated
vendored
160
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/global.d.ts
generated
vendored
@@ -1,160 +0,0 @@
|
||||
/*
|
||||
React projects that don't include the DOM library need these interfaces to compile.
|
||||
React Native applications use React, but there is no DOM available. The JavaScript runtime
|
||||
is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
|
||||
|
||||
Warning: all of these interfaces are empty. If you want type definitions for various properties
|
||||
(such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
|
||||
*/
|
||||
|
||||
interface Event {}
|
||||
interface AnimationEvent extends Event {}
|
||||
interface ClipboardEvent extends Event {}
|
||||
interface CompositionEvent extends Event {}
|
||||
interface DragEvent extends Event {}
|
||||
interface FocusEvent extends Event {}
|
||||
interface KeyboardEvent extends Event {}
|
||||
interface MouseEvent extends Event {}
|
||||
interface TouchEvent extends Event {}
|
||||
interface PointerEvent extends Event {}
|
||||
interface ToggleEvent extends Event {}
|
||||
interface TransitionEvent extends Event {}
|
||||
interface UIEvent extends Event {}
|
||||
interface WheelEvent extends Event {}
|
||||
|
||||
interface EventTarget {}
|
||||
interface Document {}
|
||||
interface DataTransfer {}
|
||||
interface StyleMedia {}
|
||||
|
||||
interface Element {}
|
||||
interface DocumentFragment {}
|
||||
|
||||
interface HTMLElement extends Element {}
|
||||
interface HTMLAnchorElement extends HTMLElement {}
|
||||
interface HTMLAreaElement extends HTMLElement {}
|
||||
interface HTMLAudioElement extends HTMLElement {}
|
||||
interface HTMLBaseElement extends HTMLElement {}
|
||||
interface HTMLBodyElement extends HTMLElement {}
|
||||
interface HTMLBRElement extends HTMLElement {}
|
||||
interface HTMLButtonElement extends HTMLElement {}
|
||||
interface HTMLCanvasElement extends HTMLElement {}
|
||||
interface HTMLDataElement extends HTMLElement {}
|
||||
interface HTMLDataListElement extends HTMLElement {}
|
||||
interface HTMLDetailsElement extends HTMLElement {}
|
||||
interface HTMLDialogElement extends HTMLElement {}
|
||||
interface HTMLDivElement extends HTMLElement {}
|
||||
interface HTMLDListElement extends HTMLElement {}
|
||||
interface HTMLEmbedElement extends HTMLElement {}
|
||||
interface HTMLFieldSetElement extends HTMLElement {}
|
||||
interface HTMLFormElement extends HTMLElement {}
|
||||
interface HTMLHeadingElement extends HTMLElement {}
|
||||
interface HTMLHeadElement extends HTMLElement {}
|
||||
interface HTMLHRElement extends HTMLElement {}
|
||||
interface HTMLHtmlElement extends HTMLElement {}
|
||||
interface HTMLIFrameElement extends HTMLElement {}
|
||||
interface HTMLImageElement extends HTMLElement {}
|
||||
interface HTMLInputElement extends HTMLElement {}
|
||||
interface HTMLModElement extends HTMLElement {}
|
||||
interface HTMLLabelElement extends HTMLElement {}
|
||||
interface HTMLLegendElement extends HTMLElement {}
|
||||
interface HTMLLIElement extends HTMLElement {}
|
||||
interface HTMLLinkElement extends HTMLElement {}
|
||||
interface HTMLMapElement extends HTMLElement {}
|
||||
interface HTMLMetaElement extends HTMLElement {}
|
||||
interface HTMLMeterElement extends HTMLElement {}
|
||||
interface HTMLObjectElement extends HTMLElement {}
|
||||
interface HTMLOListElement extends HTMLElement {}
|
||||
interface HTMLOptGroupElement extends HTMLElement {}
|
||||
interface HTMLOptionElement extends HTMLElement {}
|
||||
interface HTMLOutputElement extends HTMLElement {}
|
||||
interface HTMLParagraphElement extends HTMLElement {}
|
||||
interface HTMLParamElement extends HTMLElement {}
|
||||
interface HTMLPreElement extends HTMLElement {}
|
||||
interface HTMLProgressElement extends HTMLElement {}
|
||||
interface HTMLQuoteElement extends HTMLElement {}
|
||||
interface HTMLSlotElement extends HTMLElement {}
|
||||
interface HTMLScriptElement extends HTMLElement {}
|
||||
interface HTMLSelectElement extends HTMLElement {}
|
||||
interface HTMLSourceElement extends HTMLElement {}
|
||||
interface HTMLSpanElement extends HTMLElement {}
|
||||
interface HTMLStyleElement extends HTMLElement {}
|
||||
interface HTMLTableElement extends HTMLElement {}
|
||||
interface HTMLTableColElement extends HTMLElement {}
|
||||
interface HTMLTableDataCellElement extends HTMLElement {}
|
||||
interface HTMLTableHeaderCellElement extends HTMLElement {}
|
||||
interface HTMLTableRowElement extends HTMLElement {}
|
||||
interface HTMLTableSectionElement extends HTMLElement {}
|
||||
interface HTMLTemplateElement extends HTMLElement {}
|
||||
interface HTMLTextAreaElement extends HTMLElement {}
|
||||
interface HTMLTimeElement extends HTMLElement {}
|
||||
interface HTMLTitleElement extends HTMLElement {}
|
||||
interface HTMLTrackElement extends HTMLElement {}
|
||||
interface HTMLUListElement extends HTMLElement {}
|
||||
interface HTMLVideoElement extends HTMLElement {}
|
||||
interface HTMLWebViewElement extends HTMLElement {}
|
||||
|
||||
interface SVGElement extends Element {}
|
||||
interface SVGSVGElement extends SVGElement {}
|
||||
interface SVGCircleElement extends SVGElement {}
|
||||
interface SVGClipPathElement extends SVGElement {}
|
||||
interface SVGDefsElement extends SVGElement {}
|
||||
interface SVGDescElement extends SVGElement {}
|
||||
interface SVGEllipseElement extends SVGElement {}
|
||||
interface SVGFEBlendElement extends SVGElement {}
|
||||
interface SVGFEColorMatrixElement extends SVGElement {}
|
||||
interface SVGFEComponentTransferElement extends SVGElement {}
|
||||
interface SVGFECompositeElement extends SVGElement {}
|
||||
interface SVGFEConvolveMatrixElement extends SVGElement {}
|
||||
interface SVGFEDiffuseLightingElement extends SVGElement {}
|
||||
interface SVGFEDisplacementMapElement extends SVGElement {}
|
||||
interface SVGFEDistantLightElement extends SVGElement {}
|
||||
interface SVGFEDropShadowElement extends SVGElement {}
|
||||
interface SVGFEFloodElement extends SVGElement {}
|
||||
interface SVGFEFuncAElement extends SVGElement {}
|
||||
interface SVGFEFuncBElement extends SVGElement {}
|
||||
interface SVGFEFuncGElement extends SVGElement {}
|
||||
interface SVGFEFuncRElement extends SVGElement {}
|
||||
interface SVGFEGaussianBlurElement extends SVGElement {}
|
||||
interface SVGFEImageElement extends SVGElement {}
|
||||
interface SVGFEMergeElement extends SVGElement {}
|
||||
interface SVGFEMergeNodeElement extends SVGElement {}
|
||||
interface SVGFEMorphologyElement extends SVGElement {}
|
||||
interface SVGFEOffsetElement extends SVGElement {}
|
||||
interface SVGFEPointLightElement extends SVGElement {}
|
||||
interface SVGFESpecularLightingElement extends SVGElement {}
|
||||
interface SVGFESpotLightElement extends SVGElement {}
|
||||
interface SVGFETileElement extends SVGElement {}
|
||||
interface SVGFETurbulenceElement extends SVGElement {}
|
||||
interface SVGFilterElement extends SVGElement {}
|
||||
interface SVGForeignObjectElement extends SVGElement {}
|
||||
interface SVGGElement extends SVGElement {}
|
||||
interface SVGImageElement extends SVGElement {}
|
||||
interface SVGLineElement extends SVGElement {}
|
||||
interface SVGLinearGradientElement extends SVGElement {}
|
||||
interface SVGMarkerElement extends SVGElement {}
|
||||
interface SVGMaskElement extends SVGElement {}
|
||||
interface SVGMetadataElement extends SVGElement {}
|
||||
interface SVGPathElement extends SVGElement {}
|
||||
interface SVGPatternElement extends SVGElement {}
|
||||
interface SVGPolygonElement extends SVGElement {}
|
||||
interface SVGPolylineElement extends SVGElement {}
|
||||
interface SVGRadialGradientElement extends SVGElement {}
|
||||
interface SVGRectElement extends SVGElement {}
|
||||
interface SVGSetElement extends SVGElement {}
|
||||
interface SVGStopElement extends SVGElement {}
|
||||
interface SVGSwitchElement extends SVGElement {}
|
||||
interface SVGSymbolElement extends SVGElement {}
|
||||
interface SVGTextElement extends SVGElement {}
|
||||
interface SVGTextPathElement extends SVGElement {}
|
||||
interface SVGTSpanElement extends SVGElement {}
|
||||
interface SVGUseElement extends SVGElement {}
|
||||
interface SVGViewElement extends SVGElement {}
|
||||
|
||||
interface FormData {}
|
||||
interface Text {}
|
||||
interface TouchList {}
|
||||
interface WebGLRenderingContext {}
|
||||
interface WebGL2RenderingContext {}
|
||||
|
||||
interface TrustedHTML {}
|
4530
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/index.d.ts
generated
vendored
4530
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/index.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,44 +0,0 @@
|
||||
import * as React from "./";
|
||||
export { Fragment } from "./";
|
||||
|
||||
export namespace JSX {
|
||||
interface Element extends React.JSX.Element {}
|
||||
interface ElementClass extends React.JSX.ElementClass {}
|
||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
||||
}
|
||||
|
||||
export interface JSXSource {
|
||||
/**
|
||||
* The source file where the element originates from.
|
||||
*/
|
||||
fileName?: string | undefined;
|
||||
|
||||
/**
|
||||
* The line number where the element was created.
|
||||
*/
|
||||
lineNumber?: number | undefined;
|
||||
|
||||
/**
|
||||
* The column number where the element was created.
|
||||
*/
|
||||
columnNumber?: number | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsxDEV(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key: React.Key | undefined,
|
||||
isStatic: boolean,
|
||||
source?: JSXSource,
|
||||
self?: unknown,
|
||||
): React.ReactElement;
|
35
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/jsx-runtime.d.ts
generated
vendored
35
node_modules/.pnpm/@types+react@18.3.17/node_modules/@types/react/ts5.0/jsx-runtime.d.ts
generated
vendored
@@ -1,35 +0,0 @@
|
||||
import * as React from "./";
|
||||
export { Fragment } from "./";
|
||||
|
||||
export namespace JSX {
|
||||
interface Element extends React.JSX.Element {}
|
||||
interface ElementClass extends React.JSX.ElementClass {}
|
||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsx(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key?: React.Key,
|
||||
): React.ReactElement;
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsxs(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key?: React.Key,
|
||||
): React.ReactElement;
|
1
node_modules/.pnpm/@types+react@18.3.17/node_modules/csstype
generated
vendored
1
node_modules/.pnpm/@types+react@18.3.17/node_modules/csstype
generated
vendored
@@ -1 +0,0 @@
|
||||
../../csstype@3.1.3/node_modules/csstype
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/eslint.js" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../typescript@5.7.2/node_modules/typescript/bin/tsc" "$@"
|
||||
|
@@ -6,9 +6,9 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
export NODE_PATH="/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/Snigdha-OS.github.io/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../../../typescript@5.7.2/node_modules/typescript/bin/tsserver" "$@"
|
||||
|
@@ -1 +0,0 @@
|
||||
../../../@eslint-community+regexpp@4.12.1/node_modules/@eslint-community/regexpp
|
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 typescript-eslint and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@@ -1,12 +0,0 @@
|
||||
# `@typescript-eslint/eslint-plugin`
|
||||
|
||||
An ESLint plugin which provides lint rules for TypeScript codebases.
|
||||
|
||||
[](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
|
||||
[](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
|
||||
|
||||
👉 See **https://typescript-eslint.io/getting-started** for our Getting Started docs.
|
||||
|
||||
> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
|
||||
|
||||
<!-- Local path for docs: docs/packages/ESLint_Plugin.mdx -->
|
@@ -1,161 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
||||
'@typescript-eslint/array-type': 'error',
|
||||
'@typescript-eslint/await-thenable': 'error',
|
||||
'@typescript-eslint/ban-ts-comment': 'error',
|
||||
'@typescript-eslint/ban-tslint-comment': 'error',
|
||||
'@typescript-eslint/class-literal-property-style': 'error',
|
||||
'class-methods-use-this': 'off',
|
||||
'@typescript-eslint/class-methods-use-this': 'error',
|
||||
'@typescript-eslint/consistent-generic-constructors': 'error',
|
||||
'@typescript-eslint/consistent-indexed-object-style': 'error',
|
||||
'consistent-return': 'off',
|
||||
'@typescript-eslint/consistent-return': 'error',
|
||||
'@typescript-eslint/consistent-type-assertions': 'error',
|
||||
'@typescript-eslint/consistent-type-definitions': 'error',
|
||||
'@typescript-eslint/consistent-type-exports': 'error',
|
||||
'@typescript-eslint/consistent-type-imports': 'error',
|
||||
'default-param-last': 'off',
|
||||
'@typescript-eslint/default-param-last': 'error',
|
||||
'dot-notation': 'off',
|
||||
'@typescript-eslint/dot-notation': 'error',
|
||||
'@typescript-eslint/explicit-function-return-type': 'error',
|
||||
'@typescript-eslint/explicit-member-accessibility': 'error',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'error',
|
||||
'init-declarations': 'off',
|
||||
'@typescript-eslint/init-declarations': 'error',
|
||||
'max-params': 'off',
|
||||
'@typescript-eslint/max-params': 'error',
|
||||
'@typescript-eslint/member-ordering': 'error',
|
||||
'@typescript-eslint/method-signature-style': 'error',
|
||||
'@typescript-eslint/naming-convention': 'error',
|
||||
'no-array-constructor': 'off',
|
||||
'@typescript-eslint/no-array-constructor': 'error',
|
||||
'@typescript-eslint/no-array-delete': 'error',
|
||||
'@typescript-eslint/no-base-to-string': 'error',
|
||||
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-confusing-void-expression': 'error',
|
||||
'@typescript-eslint/no-deprecated': 'error',
|
||||
'no-dupe-class-members': 'off',
|
||||
'@typescript-eslint/no-dupe-class-members': 'error',
|
||||
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
||||
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
||||
'@typescript-eslint/no-dynamic-delete': 'error',
|
||||
'no-empty-function': 'off',
|
||||
'@typescript-eslint/no-empty-function': 'error',
|
||||
'@typescript-eslint/no-empty-object-type': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-extraneous-class': 'error',
|
||||
'@typescript-eslint/no-floating-promises': 'error',
|
||||
'@typescript-eslint/no-for-in-array': 'error',
|
||||
'no-implied-eval': 'off',
|
||||
'@typescript-eslint/no-implied-eval': 'error',
|
||||
'@typescript-eslint/no-import-type-side-effects': 'error',
|
||||
'@typescript-eslint/no-inferrable-types': 'error',
|
||||
'no-invalid-this': 'off',
|
||||
'@typescript-eslint/no-invalid-this': 'error',
|
||||
'@typescript-eslint/no-invalid-void-type': 'error',
|
||||
'no-loop-func': 'off',
|
||||
'@typescript-eslint/no-loop-func': 'error',
|
||||
'no-magic-numbers': 'off',
|
||||
'@typescript-eslint/no-magic-numbers': 'error',
|
||||
'@typescript-eslint/no-meaningless-void-operator': 'error',
|
||||
'@typescript-eslint/no-misused-new': 'error',
|
||||
'@typescript-eslint/no-misused-promises': 'error',
|
||||
'@typescript-eslint/no-mixed-enums': 'error',
|
||||
'@typescript-eslint/no-namespace': 'error',
|
||||
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
||||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
||||
'@typescript-eslint/no-non-null-assertion': 'error',
|
||||
'no-redeclare': 'off',
|
||||
'@typescript-eslint/no-redeclare': 'error',
|
||||
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
||||
'@typescript-eslint/no-require-imports': 'error',
|
||||
'no-restricted-imports': 'off',
|
||||
'@typescript-eslint/no-restricted-imports': 'error',
|
||||
'@typescript-eslint/no-restricted-types': 'error',
|
||||
'no-shadow': 'off',
|
||||
'@typescript-eslint/no-shadow': 'error',
|
||||
'@typescript-eslint/no-this-alias': 'error',
|
||||
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
||||
'@typescript-eslint/no-unnecessary-condition': 'error',
|
||||
'@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error',
|
||||
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
||||
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
||||
'@typescript-eslint/no-unsafe-argument': 'error',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'error',
|
||||
'@typescript-eslint/no-unsafe-call': 'error',
|
||||
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
||||
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
||||
'@typescript-eslint/no-unsafe-function-type': 'error',
|
||||
'@typescript-eslint/no-unsafe-member-access': 'error',
|
||||
'@typescript-eslint/no-unsafe-return': 'error',
|
||||
'@typescript-eslint/no-unsafe-type-assertion': 'error',
|
||||
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
||||
'no-unused-expressions': 'off',
|
||||
'@typescript-eslint/no-unused-expressions': 'error',
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'error',
|
||||
'no-use-before-define': 'off',
|
||||
'@typescript-eslint/no-use-before-define': 'error',
|
||||
'no-useless-constructor': 'off',
|
||||
'@typescript-eslint/no-useless-constructor': 'error',
|
||||
'@typescript-eslint/no-useless-empty-export': 'error',
|
||||
'@typescript-eslint/no-wrapper-object-types': 'error',
|
||||
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
||||
'no-throw-literal': 'off',
|
||||
'@typescript-eslint/only-throw-error': 'error',
|
||||
'@typescript-eslint/parameter-properties': 'error',
|
||||
'@typescript-eslint/prefer-as-const': 'error',
|
||||
'prefer-destructuring': 'off',
|
||||
'@typescript-eslint/prefer-destructuring': 'error',
|
||||
'@typescript-eslint/prefer-enum-initializers': 'error',
|
||||
'@typescript-eslint/prefer-find': 'error',
|
||||
'@typescript-eslint/prefer-for-of': 'error',
|
||||
'@typescript-eslint/prefer-function-type': 'error',
|
||||
'@typescript-eslint/prefer-includes': 'error',
|
||||
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
||||
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
||||
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
||||
'@typescript-eslint/prefer-optional-chain': 'error',
|
||||
'prefer-promise-reject-errors': 'off',
|
||||
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
||||
'@typescript-eslint/prefer-readonly': 'error',
|
||||
'@typescript-eslint/prefer-readonly-parameter-types': 'error',
|
||||
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
||||
'@typescript-eslint/prefer-regexp-exec': 'error',
|
||||
'@typescript-eslint/prefer-return-this-type': 'error',
|
||||
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
||||
'@typescript-eslint/promise-function-async': 'error',
|
||||
'@typescript-eslint/related-getter-setter-pairs': 'error',
|
||||
'@typescript-eslint/require-array-sort-compare': 'error',
|
||||
'require-await': 'off',
|
||||
'@typescript-eslint/require-await': 'error',
|
||||
'@typescript-eslint/restrict-plus-operands': 'error',
|
||||
'@typescript-eslint/restrict-template-expressions': 'error',
|
||||
'no-return-await': 'off',
|
||||
'@typescript-eslint/return-await': 'error',
|
||||
'@typescript-eslint/strict-boolean-expressions': 'error',
|
||||
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
||||
'@typescript-eslint/triple-slash-reference': 'error',
|
||||
'@typescript-eslint/typedef': 'error',
|
||||
'@typescript-eslint/unbound-method': 'error',
|
||||
'@typescript-eslint/unified-signatures': 'error',
|
||||
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=all.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"all.js","sourceRoot":"","sources":["../../src/configs/all.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,iDAAiD,EAAE,OAAO;QAC1D,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,OAAO;QACpD,oDAAoD,EAAE,OAAO;QAC7D,oDAAoD,EAAE,OAAO;QAC7D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,4CAA4C,EAAE,OAAO;QACrD,4CAA4C,EAAE,OAAO;QACrD,oBAAoB,EAAE,KAAK;QAC3B,uCAAuC,EAAE,OAAO;QAChD,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,kDAAkD,EAAE,OAAO;QAC3D,kDAAkD,EAAE,OAAO;QAC3D,mDAAmD,EAAE,OAAO;QAC5D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,YAAY,EAAE,KAAK;QACnB,+BAA+B,EAAE,OAAO;QACxC,oCAAoC,EAAE,OAAO;QAC7C,2CAA2C,EAAE,OAAO;QACpD,sCAAsC,EAAE,OAAO;QAC/C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,oDAAoD,EAAE,OAAO;QAC7D,iDAAiD,EAAE,OAAO;QAC1D,kCAAkC,EAAE,OAAO;QAC3C,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,6CAA6C,EAAE,OAAO;QACtD,mDAAmD,EAAE,OAAO;QAC5D,sCAAsC,EAAE,OAAO;QAC/C,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,wCAAwC,EAAE,OAAO;QACjD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,wCAAwC,EAAE,OAAO;QACjD,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,yCAAyC,EAAE,OAAO;QAClD,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,iDAAiD,EAAE,OAAO;QAC1D,mCAAmC,EAAE,OAAO;QAC5C,wCAAwC,EAAE,OAAO;QACjD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,4DAA4D,EAAE,OAAO;QACrE,wDAAwD,EAAE,OAAO;QACjE,0CAA0C,EAAE,OAAO;QACnD,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,wCAAwC,EAAE,OAAO;QACjD,WAAW,EAAE,KAAK;QAClB,8BAA8B,EAAE,OAAO;QACvC,kCAAkC,EAAE,OAAO;QAC3C,2DAA2D,EAAE,OAAO;QACpE,6CAA6C,EAAE,OAAO;QACtD,iEAAiE,EAAE,OAAO;QAC1E,6CAA6C,EAAE,OAAO;QACtD,uDAAuD,EAAE,OAAO;QAChE,kDAAkD,EAAE,OAAO;QAC3D,kDAAkD,EAAE,OAAO;QAC3D,mDAAmD,EAAE,OAAO;QAC5D,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,kDAAkD,EAAE,OAAO;QAC3D,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,6CAA6C,EAAE,OAAO;QACtD,0CAA0C,EAAE,OAAO;QACnD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,OAAO;QACpD,4CAA4C,EAAE,OAAO;QACrD,4CAA4C,EAAE,OAAO;QACrD,sDAAsD,EAAE,OAAO;QAC/D,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,6CAA6C,EAAE,OAAO;QACtD,gCAAgC,EAAE,OAAO;QACzC,kCAAkC,EAAE,OAAO;QAC3C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,+CAA+C,EAAE,OAAO;QACxD,6CAA6C,EAAE,OAAO;QACtD,8CAA8C,EAAE,OAAO;QACvD,0CAA0C,EAAE,OAAO;QACnD,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,oCAAoC,EAAE,OAAO;QAC7C,oDAAoD,EAAE,OAAO;QAC7D,iDAAiD,EAAE,OAAO;QAC1D,uCAAuC,EAAE,OAAO;QAChD,4CAA4C,EAAE,OAAO;QACrD,mDAAmD,EAAE,OAAO;QAC5D,2CAA2C,EAAE,OAAO;QACpD,gDAAgD,EAAE,OAAO;QACzD,+CAA+C,EAAE,OAAO;QACxD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE,OAAO;QAC1C,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,2CAA2C,EAAE,OAAO;QACpD,4BAA4B,EAAE,OAAO;QACrC,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"}
|
@@ -1,7 +0,0 @@
|
||||
"use strict";
|
||||
module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: { sourceType: 'module' },
|
||||
plugins: ['@typescript-eslint'],
|
||||
};
|
||||
//# sourceMappingURL=base.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";AAEA,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IACvC,OAAO,EAAE,CAAC,oBAAoB,CAAC;CACD,CAAC"}
|
@@ -1,70 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
parserOptions: { project: false, program: null, projectService: false },
|
||||
rules: {
|
||||
'@typescript-eslint/await-thenable': 'off',
|
||||
'@typescript-eslint/consistent-return': 'off',
|
||||
'@typescript-eslint/consistent-type-exports': 'off',
|
||||
'@typescript-eslint/dot-notation': 'off',
|
||||
'@typescript-eslint/naming-convention': 'off',
|
||||
'@typescript-eslint/no-array-delete': 'off',
|
||||
'@typescript-eslint/no-base-to-string': 'off',
|
||||
'@typescript-eslint/no-confusing-void-expression': 'off',
|
||||
'@typescript-eslint/no-deprecated': 'off',
|
||||
'@typescript-eslint/no-duplicate-type-constituents': 'off',
|
||||
'@typescript-eslint/no-floating-promises': 'off',
|
||||
'@typescript-eslint/no-for-in-array': 'off',
|
||||
'@typescript-eslint/no-implied-eval': 'off',
|
||||
'@typescript-eslint/no-meaningless-void-operator': 'off',
|
||||
'@typescript-eslint/no-misused-promises': 'off',
|
||||
'@typescript-eslint/no-mixed-enums': 'off',
|
||||
'@typescript-eslint/no-redundant-type-constituents': 'off',
|
||||
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
|
||||
'@typescript-eslint/no-unnecessary-condition': 'off',
|
||||
'@typescript-eslint/no-unnecessary-qualifier': 'off',
|
||||
'@typescript-eslint/no-unnecessary-template-expression': 'off',
|
||||
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
|
||||
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
||||
'@typescript-eslint/no-unsafe-argument': 'off',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||
'@typescript-eslint/no-unsafe-call': 'off',
|
||||
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
|
||||
'@typescript-eslint/no-unsafe-member-access': 'off',
|
||||
'@typescript-eslint/no-unsafe-return': 'off',
|
||||
'@typescript-eslint/no-unsafe-type-assertion': 'off',
|
||||
'@typescript-eslint/no-unsafe-unary-minus': 'off',
|
||||
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
||||
'@typescript-eslint/only-throw-error': 'off',
|
||||
'@typescript-eslint/prefer-destructuring': 'off',
|
||||
'@typescript-eslint/prefer-find': 'off',
|
||||
'@typescript-eslint/prefer-includes': 'off',
|
||||
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
||||
'@typescript-eslint/prefer-optional-chain': 'off',
|
||||
'@typescript-eslint/prefer-promise-reject-errors': 'off',
|
||||
'@typescript-eslint/prefer-readonly': 'off',
|
||||
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
|
||||
'@typescript-eslint/prefer-reduce-type-parameter': 'off',
|
||||
'@typescript-eslint/prefer-regexp-exec': 'off',
|
||||
'@typescript-eslint/prefer-return-this-type': 'off',
|
||||
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
|
||||
'@typescript-eslint/promise-function-async': 'off',
|
||||
'@typescript-eslint/related-getter-setter-pairs': 'off',
|
||||
'@typescript-eslint/require-array-sort-compare': 'off',
|
||||
'@typescript-eslint/require-await': 'off',
|
||||
'@typescript-eslint/restrict-plus-operands': 'off',
|
||||
'@typescript-eslint/restrict-template-expressions': 'off',
|
||||
'@typescript-eslint/return-await': 'off',
|
||||
'@typescript-eslint/strict-boolean-expressions': 'off',
|
||||
'@typescript-eslint/switch-exhaustiveness-check': 'off',
|
||||
'@typescript-eslint/unbound-method': 'off',
|
||||
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=disable-type-checked.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"disable-type-checked.js","sourceRoot":"","sources":["../../src/configs/disable-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,aAAa,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE;IACvE,KAAK,EAAE;QACL,mCAAmC,EAAE,KAAK;QAC1C,sCAAsC,EAAE,KAAK;QAC7C,4CAA4C,EAAE,KAAK;QACnD,iCAAiC,EAAE,KAAK;QACxC,sCAAsC,EAAE,KAAK;QAC7C,oCAAoC,EAAE,KAAK;QAC3C,sCAAsC,EAAE,KAAK;QAC7C,iDAAiD,EAAE,KAAK;QACxD,kCAAkC,EAAE,KAAK;QACzC,mDAAmD,EAAE,KAAK;QAC1D,yCAAyC,EAAE,KAAK;QAChD,oCAAoC,EAAE,KAAK;QAC3C,oCAAoC,EAAE,KAAK;QAC3C,iDAAiD,EAAE,KAAK;QACxD,wCAAwC,EAAE,KAAK;QAC/C,mCAAmC,EAAE,KAAK;QAC1C,mDAAmD,EAAE,KAAK;QAC1D,2DAA2D,EAAE,KAAK;QAClE,6CAA6C,EAAE,KAAK;QACpD,6CAA6C,EAAE,KAAK;QACpD,uDAAuD,EAAE,KAAK;QAC9D,kDAAkD,EAAE,KAAK;QACzD,kDAAkD,EAAE,KAAK;QACzD,mDAAmD,EAAE,KAAK;QAC1D,uCAAuC,EAAE,KAAK;QAC9C,yCAAyC,EAAE,KAAK;QAChD,mCAAmC,EAAE,KAAK;QAC1C,8CAA8C,EAAE,KAAK;QACrD,4CAA4C,EAAE,KAAK;QACnD,qCAAqC,EAAE,KAAK;QAC5C,6CAA6C,EAAE,KAAK;QACpD,0CAA0C,EAAE,KAAK;QACjD,sDAAsD,EAAE,KAAK;QAC7D,qCAAqC,EAAE,KAAK;QAC5C,yCAAyC,EAAE,KAAK;QAChD,gCAAgC,EAAE,KAAK;QACvC,oCAAoC,EAAE,KAAK;QAC3C,8CAA8C,EAAE,KAAK;QACrD,0CAA0C,EAAE,KAAK;QACjD,iDAAiD,EAAE,KAAK;QACxD,oCAAoC,EAAE,KAAK;QAC3C,oDAAoD,EAAE,KAAK;QAC3D,iDAAiD,EAAE,KAAK;QACxD,uCAAuC,EAAE,KAAK;QAC9C,4CAA4C,EAAE,KAAK;QACnD,mDAAmD,EAAE,KAAK;QAC1D,2CAA2C,EAAE,KAAK;QAClD,gDAAgD,EAAE,KAAK;QACvD,+CAA+C,EAAE,KAAK;QACtD,kCAAkC,EAAE,KAAK;QACzC,2CAA2C,EAAE,KAAK;QAClD,kDAAkD,EAAE,KAAK;QACzD,iCAAiC,EAAE,KAAK;QACxC,+CAA+C,EAAE,KAAK;QACtD,gDAAgD,EAAE,KAAK;QACvD,mCAAmC,EAAE,KAAK;QAC1C,2DAA2D,EAAE,KAAK;KACnE;CAC6B,CAAC"}
|
@@ -1,43 +0,0 @@
|
||||
"use strict";
|
||||
// NOTE: this file is isolated to be shared across legacy and flat configs
|
||||
// it is exported via `./use-at-your-own-risk/eslint-recommended-raw`
|
||||
// and it has types manually defined in `./eslint-recommended-raw.d.ts`
|
||||
/**
|
||||
* This is a compatibility ruleset that:
|
||||
* - disables rules from eslint:recommended which are already handled by TypeScript.
|
||||
* - enables rules that make sense due to TS's typechecking / transpilation.
|
||||
*/
|
||||
const config = (style) => ({
|
||||
files: style === 'glob'
|
||||
? // classic configs use glob syntax
|
||||
['*.ts', '*.tsx', '*.mts', '*.cts']
|
||||
: // flat configs use minimatch syntax
|
||||
['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
|
||||
rules: {
|
||||
'constructor-super': 'off', // ts(2335) & ts(2377)
|
||||
'getter-return': 'off', // ts(2378)
|
||||
'no-class-assign': 'off', // ts(2629)
|
||||
'no-const-assign': 'off', // ts(2588)
|
||||
'no-dupe-args': 'off', // ts(2300)
|
||||
'no-dupe-class-members': 'off', // ts(2393) & ts(2300)
|
||||
'no-dupe-keys': 'off', // ts(1117)
|
||||
'no-func-assign': 'off', // ts(2630)
|
||||
'no-import-assign': 'off', // ts(2632) & ts(2540)
|
||||
// TODO - remove this once we no longer support ESLint v8
|
||||
'no-new-symbol': 'off', // ts(7009)
|
||||
'no-new-native-nonconstructor': 'off', // ts(7009)
|
||||
'no-obj-calls': 'off', // ts(2349)
|
||||
'no-redeclare': 'off', // ts(2451)
|
||||
'no-setter-return': 'off', // ts(2408)
|
||||
'no-this-before-super': 'off', // ts(2376) & ts(17009)
|
||||
'no-undef': 'off', // ts(2304) & ts(2552)
|
||||
'no-unreachable': 'off', // ts(7027)
|
||||
'no-unsafe-negation': 'off', // ts(2365) & ts(2322) & ts(2358)
|
||||
'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more
|
||||
'prefer-const': 'error', // ts provides better types with const
|
||||
'prefer-rest-params': 'error', // ts provides better types with rest args over arguments
|
||||
'prefer-spread': 'error', // ts transpiles spread to apply, so no need for manual apply
|
||||
},
|
||||
});
|
||||
module.exports = config;
|
||||
//# sourceMappingURL=eslint-recommended-raw.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"eslint-recommended-raw.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended-raw.ts"],"names":[],"mappings":";AAAA,0EAA0E;AAC1E,qEAAqE;AACrE,uEAAuE;AAEvE;;;;GAIG;AACH,MAAM,MAAM,GAAG,CACb,KAA2B,EAI3B,EAAE,CAAC,CAAC;IACJ,KAAK,EACH,KAAK,KAAK,MAAM;QACd,CAAC,CAAC,kCAAkC;YAClC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;QACrC,CAAC,CAAC,oCAAoC;YACpC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC;IACrD,KAAK,EAAE;QACL,mBAAmB,EAAE,KAAK,EAAE,sBAAsB;QAClD,eAAe,EAAE,KAAK,EAAE,WAAW;QACnC,iBAAiB,EAAE,KAAK,EAAE,WAAW;QACrC,iBAAiB,EAAE,KAAK,EAAE,WAAW;QACrC,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,uBAAuB,EAAE,KAAK,EAAE,sBAAsB;QACtD,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,gBAAgB,EAAE,KAAK,EAAE,WAAW;QACpC,kBAAkB,EAAE,KAAK,EAAE,sBAAsB;QACjD,yDAAyD;QACzD,eAAe,EAAE,KAAK,EAAE,WAAW;QACnC,8BAA8B,EAAE,KAAK,EAAE,WAAW;QAClD,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,kBAAkB,EAAE,KAAK,EAAE,WAAW;QACtC,sBAAsB,EAAE,KAAK,EAAE,uBAAuB;QACtD,UAAU,EAAE,KAAK,EAAE,sBAAsB;QACzC,gBAAgB,EAAE,KAAK,EAAE,WAAW;QACpC,oBAAoB,EAAE,KAAK,EAAE,iCAAiC;QAC9D,QAAQ,EAAE,OAAO,EAAE,+DAA+D;QAClF,cAAc,EAAE,OAAO,EAAE,sCAAsC;QAC/D,oBAAoB,EAAE,OAAO,EAAE,yDAAyD;QACxF,eAAe,EAAE,OAAO,EAAE,6DAA6D;KACxF;CACF,CAAC,CAAC;AAEH,iBAAS,MAAM,CAAC"}
|
@@ -1,14 +0,0 @@
|
||||
"use strict";
|
||||
/**
|
||||
* This is a compatibility ruleset that:
|
||||
* - disables rules from eslint:recommended which are already handled by TypeScript.
|
||||
* - enables rules that make sense due to TS's typechecking / transpilation.
|
||||
*/
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
const eslint_recommended_raw_1 = __importDefault(require("./eslint-recommended-raw"));
|
||||
module.exports = {
|
||||
overrides: [(0, eslint_recommended_raw_1.default)('glob')],
|
||||
};
|
||||
//# sourceMappingURL=eslint-recommended.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"eslint-recommended.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAIH,sFAA6D;AAE7D,iBAAS;IACP,SAAS,EAAE,CAAC,IAAA,gCAAqB,EAAC,MAAM,CAAC,CAAC;CACZ,CAAC"}
|
@@ -1,40 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/await-thenable': 'error',
|
||||
'@typescript-eslint/no-array-delete': 'error',
|
||||
'@typescript-eslint/no-base-to-string': 'error',
|
||||
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
||||
'@typescript-eslint/no-floating-promises': 'error',
|
||||
'@typescript-eslint/no-for-in-array': 'error',
|
||||
'no-implied-eval': 'off',
|
||||
'@typescript-eslint/no-implied-eval': 'error',
|
||||
'@typescript-eslint/no-misused-promises': 'error',
|
||||
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
||||
'@typescript-eslint/no-unsafe-argument': 'error',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'error',
|
||||
'@typescript-eslint/no-unsafe-call': 'error',
|
||||
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
||||
'@typescript-eslint/no-unsafe-member-access': 'error',
|
||||
'@typescript-eslint/no-unsafe-return': 'error',
|
||||
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
||||
'no-throw-literal': 'off',
|
||||
'@typescript-eslint/only-throw-error': 'error',
|
||||
'prefer-promise-reject-errors': 'off',
|
||||
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
||||
'require-await': 'off',
|
||||
'@typescript-eslint/require-await': 'error',
|
||||
'@typescript-eslint/restrict-plus-operands': 'error',
|
||||
'@typescript-eslint/restrict-template-expressions': 'error',
|
||||
'@typescript-eslint/unbound-method': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=recommended-type-checked-only.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"recommended-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/recommended-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,mDAAmD,EAAE,OAAO;QAC5D,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,wCAAwC,EAAE,OAAO;QACjD,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,mCAAmC,EAAE,OAAO;KAC7C;CAC6B,CAAC"}
|
@@ -1,63 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/await-thenable': 'error',
|
||||
'@typescript-eslint/ban-ts-comment': 'error',
|
||||
'no-array-constructor': 'off',
|
||||
'@typescript-eslint/no-array-constructor': 'error',
|
||||
'@typescript-eslint/no-array-delete': 'error',
|
||||
'@typescript-eslint/no-base-to-string': 'error',
|
||||
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
||||
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
||||
'@typescript-eslint/no-empty-object-type': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-floating-promises': 'error',
|
||||
'@typescript-eslint/no-for-in-array': 'error',
|
||||
'no-implied-eval': 'off',
|
||||
'@typescript-eslint/no-implied-eval': 'error',
|
||||
'@typescript-eslint/no-misused-new': 'error',
|
||||
'@typescript-eslint/no-misused-promises': 'error',
|
||||
'@typescript-eslint/no-namespace': 'error',
|
||||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
||||
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
||||
'@typescript-eslint/no-require-imports': 'error',
|
||||
'@typescript-eslint/no-this-alias': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
||||
'@typescript-eslint/no-unsafe-argument': 'error',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'error',
|
||||
'@typescript-eslint/no-unsafe-call': 'error',
|
||||
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
||||
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
||||
'@typescript-eslint/no-unsafe-function-type': 'error',
|
||||
'@typescript-eslint/no-unsafe-member-access': 'error',
|
||||
'@typescript-eslint/no-unsafe-return': 'error',
|
||||
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
||||
'no-unused-expressions': 'off',
|
||||
'@typescript-eslint/no-unused-expressions': 'error',
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'error',
|
||||
'@typescript-eslint/no-wrapper-object-types': 'error',
|
||||
'no-throw-literal': 'off',
|
||||
'@typescript-eslint/only-throw-error': 'error',
|
||||
'@typescript-eslint/prefer-as-const': 'error',
|
||||
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
||||
'prefer-promise-reject-errors': 'off',
|
||||
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
||||
'require-await': 'off',
|
||||
'@typescript-eslint/require-await': 'error',
|
||||
'@typescript-eslint/restrict-plus-operands': 'error',
|
||||
'@typescript-eslint/restrict-template-expressions': 'error',
|
||||
'@typescript-eslint/triple-slash-reference': 'error',
|
||||
'@typescript-eslint/unbound-method': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=recommended-type-checked.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"recommended-type-checked.js","sourceRoot":"","sources":["../../src/configs/recommended-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE,OAAO;QAC5C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,6CAA6C,EAAE,OAAO;QACtD,mDAAmD,EAAE,OAAO;QAC5D,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,mCAAmC,EAAE,OAAO;QAC5C,wCAAwC,EAAE,OAAO;QACjD,iCAAiC,EAAE,OAAO;QAC1C,wDAAwD,EAAE,OAAO;QACjE,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,kDAAkD,EAAE,OAAO;QAC3D,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,kDAAkD,EAAE,OAAO;QAC3D,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,4CAA4C,EAAE,OAAO;QACrD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,oCAAoC,EAAE,OAAO;QAC7C,6CAA6C,EAAE,OAAO;QACtD,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,2CAA2C,EAAE,OAAO;QACpD,mCAAmC,EAAE,OAAO;KAC7C;CAC6B,CAAC"}
|
@@ -1,36 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/ban-ts-comment': 'error',
|
||||
'no-array-constructor': 'off',
|
||||
'@typescript-eslint/no-array-constructor': 'error',
|
||||
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
||||
'@typescript-eslint/no-empty-object-type': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-misused-new': 'error',
|
||||
'@typescript-eslint/no-namespace': 'error',
|
||||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
||||
'@typescript-eslint/no-require-imports': 'error',
|
||||
'@typescript-eslint/no-this-alias': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
||||
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
||||
'@typescript-eslint/no-unsafe-function-type': 'error',
|
||||
'no-unused-expressions': 'off',
|
||||
'@typescript-eslint/no-unused-expressions': 'error',
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'error',
|
||||
'@typescript-eslint/no-wrapper-object-types': 'error',
|
||||
'@typescript-eslint/prefer-as-const': 'error',
|
||||
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
||||
'@typescript-eslint/triple-slash-reference': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=recommended.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,6CAA6C,EAAE,OAAO;QACtD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,wDAAwD,EAAE,OAAO;QACjE,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,4CAA4C,EAAE,OAAO;QACrD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,4CAA4C,EAAE,OAAO;QACrD,oCAAoC,EAAE,OAAO;QAC7C,6CAA6C,EAAE,OAAO;QACtD,2CAA2C,EAAE,OAAO;KACrD;CAC6B,CAAC"}
|
@@ -1,77 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/await-thenable': 'error',
|
||||
'@typescript-eslint/no-array-delete': 'error',
|
||||
'@typescript-eslint/no-base-to-string': 'error',
|
||||
'@typescript-eslint/no-confusing-void-expression': 'error',
|
||||
'@typescript-eslint/no-deprecated': 'error',
|
||||
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
||||
'@typescript-eslint/no-floating-promises': 'error',
|
||||
'@typescript-eslint/no-for-in-array': 'error',
|
||||
'no-implied-eval': 'off',
|
||||
'@typescript-eslint/no-implied-eval': 'error',
|
||||
'@typescript-eslint/no-meaningless-void-operator': 'error',
|
||||
'@typescript-eslint/no-misused-promises': 'error',
|
||||
'@typescript-eslint/no-mixed-enums': 'error',
|
||||
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
||||
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
||||
'@typescript-eslint/no-unnecessary-condition': 'error',
|
||||
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
||||
'@typescript-eslint/no-unsafe-argument': 'error',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'error',
|
||||
'@typescript-eslint/no-unsafe-call': 'error',
|
||||
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
||||
'@typescript-eslint/no-unsafe-member-access': 'error',
|
||||
'@typescript-eslint/no-unsafe-return': 'error',
|
||||
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
||||
'no-throw-literal': 'off',
|
||||
'@typescript-eslint/only-throw-error': 'error',
|
||||
'prefer-promise-reject-errors': 'off',
|
||||
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
||||
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
||||
'@typescript-eslint/prefer-return-this-type': 'error',
|
||||
'@typescript-eslint/related-getter-setter-pairs': 'error',
|
||||
'require-await': 'off',
|
||||
'@typescript-eslint/require-await': 'error',
|
||||
'@typescript-eslint/restrict-plus-operands': [
|
||||
'error',
|
||||
{
|
||||
allowAny: false,
|
||||
allowBoolean: false,
|
||||
allowNullish: false,
|
||||
allowNumberAndString: false,
|
||||
allowRegExp: false,
|
||||
},
|
||||
],
|
||||
'@typescript-eslint/restrict-template-expressions': [
|
||||
'error',
|
||||
{
|
||||
allowAny: false,
|
||||
allowBoolean: false,
|
||||
allowNullish: false,
|
||||
allowNumber: false,
|
||||
allowRegExp: false,
|
||||
allowNever: false,
|
||||
},
|
||||
],
|
||||
'no-return-await': 'off',
|
||||
'@typescript-eslint/return-await': [
|
||||
'error',
|
||||
'error-handling-correctness-only',
|
||||
],
|
||||
'@typescript-eslint/unbound-method': 'error',
|
||||
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=strict-type-checked-only.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"strict-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/strict-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,iDAAiD,EAAE,OAAO;QAC1D,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,iDAAiD,EAAE,OAAO;QAC1D,wCAAwC,EAAE,OAAO;QACjD,mCAAmC,EAAE,OAAO;QAC5C,mDAAmD,EAAE,OAAO;QAC5D,2DAA2D,EAAE,OAAO;QACpE,6CAA6C,EAAE,OAAO;QACtD,uDAAuD,EAAE,OAAO;QAChE,kDAAkD,EAAE,OAAO;QAC3D,kDAAkD,EAAE,OAAO;QAC3D,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,iDAAiD,EAAE,OAAO;QAC1D,4CAA4C,EAAE,OAAO;QACrD,gDAAgD,EAAE,OAAO;QACzD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE;YAC3C,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,oBAAoB,EAAE,KAAK;gBAC3B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,kDAAkD,EAAE;YAClD,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;gBAClB,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,KAAK;aAClB;SACF;QACD,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE;YACjC,OAAO;YACP,iCAAiC;SAClC;QACD,mCAAmC,EAAE,OAAO;QAC5C,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"}
|
@@ -1,112 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/await-thenable': 'error',
|
||||
'@typescript-eslint/ban-ts-comment': [
|
||||
'error',
|
||||
{ minimumDescriptionLength: 10 },
|
||||
],
|
||||
'no-array-constructor': 'off',
|
||||
'@typescript-eslint/no-array-constructor': 'error',
|
||||
'@typescript-eslint/no-array-delete': 'error',
|
||||
'@typescript-eslint/no-base-to-string': 'error',
|
||||
'@typescript-eslint/no-confusing-void-expression': 'error',
|
||||
'@typescript-eslint/no-deprecated': 'error',
|
||||
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
||||
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
||||
'@typescript-eslint/no-dynamic-delete': 'error',
|
||||
'@typescript-eslint/no-empty-object-type': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-extraneous-class': 'error',
|
||||
'@typescript-eslint/no-floating-promises': 'error',
|
||||
'@typescript-eslint/no-for-in-array': 'error',
|
||||
'no-implied-eval': 'off',
|
||||
'@typescript-eslint/no-implied-eval': 'error',
|
||||
'@typescript-eslint/no-invalid-void-type': 'error',
|
||||
'@typescript-eslint/no-meaningless-void-operator': 'error',
|
||||
'@typescript-eslint/no-misused-new': 'error',
|
||||
'@typescript-eslint/no-misused-promises': 'error',
|
||||
'@typescript-eslint/no-mixed-enums': 'error',
|
||||
'@typescript-eslint/no-namespace': 'error',
|
||||
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
||||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
||||
'@typescript-eslint/no-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
||||
'@typescript-eslint/no-require-imports': 'error',
|
||||
'@typescript-eslint/no-this-alias': 'error',
|
||||
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
||||
'@typescript-eslint/no-unnecessary-condition': 'error',
|
||||
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
||||
'@typescript-eslint/no-unsafe-argument': 'error',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'error',
|
||||
'@typescript-eslint/no-unsafe-call': 'error',
|
||||
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
||||
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
||||
'@typescript-eslint/no-unsafe-function-type': 'error',
|
||||
'@typescript-eslint/no-unsafe-member-access': 'error',
|
||||
'@typescript-eslint/no-unsafe-return': 'error',
|
||||
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
||||
'no-unused-expressions': 'off',
|
||||
'@typescript-eslint/no-unused-expressions': 'error',
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'error',
|
||||
'no-useless-constructor': 'off',
|
||||
'@typescript-eslint/no-useless-constructor': 'error',
|
||||
'@typescript-eslint/no-wrapper-object-types': 'error',
|
||||
'no-throw-literal': 'off',
|
||||
'@typescript-eslint/only-throw-error': 'error',
|
||||
'@typescript-eslint/prefer-as-const': 'error',
|
||||
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
||||
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
||||
'prefer-promise-reject-errors': 'off',
|
||||
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
||||
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
||||
'@typescript-eslint/prefer-return-this-type': 'error',
|
||||
'@typescript-eslint/related-getter-setter-pairs': 'error',
|
||||
'require-await': 'off',
|
||||
'@typescript-eslint/require-await': 'error',
|
||||
'@typescript-eslint/restrict-plus-operands': [
|
||||
'error',
|
||||
{
|
||||
allowAny: false,
|
||||
allowBoolean: false,
|
||||
allowNullish: false,
|
||||
allowNumberAndString: false,
|
||||
allowRegExp: false,
|
||||
},
|
||||
],
|
||||
'@typescript-eslint/restrict-template-expressions': [
|
||||
'error',
|
||||
{
|
||||
allowAny: false,
|
||||
allowBoolean: false,
|
||||
allowNever: false,
|
||||
allowNullish: false,
|
||||
allowNumber: false,
|
||||
allowRegExp: false,
|
||||
},
|
||||
],
|
||||
'no-return-await': 'off',
|
||||
'@typescript-eslint/return-await': [
|
||||
'error',
|
||||
'error-handling-correctness-only',
|
||||
],
|
||||
'@typescript-eslint/triple-slash-reference': 'error',
|
||||
'@typescript-eslint/unbound-method': 'error',
|
||||
'@typescript-eslint/unified-signatures': 'error',
|
||||
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=strict-type-checked.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"strict-type-checked.js","sourceRoot":"","sources":["../../src/configs/strict-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,wBAAwB,EAAE,EAAE,EAAE;SACjC;QACD,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,iDAAiD,EAAE,OAAO;QAC1D,kCAAkC,EAAE,OAAO;QAC3C,6CAA6C,EAAE,OAAO;QACtD,mDAAmD,EAAE,OAAO;QAC5D,sCAAsC,EAAE,OAAO;QAC/C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,wCAAwC,EAAE,OAAO;QACjD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,yCAAyC,EAAE,OAAO;QAClD,iDAAiD,EAAE,OAAO;QAC1D,mCAAmC,EAAE,OAAO;QAC5C,wCAAwC,EAAE,OAAO;QACjD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,4DAA4D,EAAE,OAAO;QACrE,wDAAwD,EAAE,OAAO;QACjE,0CAA0C,EAAE,OAAO;QACnD,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,2DAA2D,EAAE,OAAO;QACpE,6CAA6C,EAAE,OAAO;QACtD,uDAAuD,EAAE,OAAO;QAChE,kDAAkD,EAAE,OAAO;QAC3D,kDAAkD,EAAE,OAAO;QAC3D,mDAAmD,EAAE,OAAO;QAC5D,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,kDAAkD,EAAE,OAAO;QAC3D,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,OAAO;QACpD,4CAA4C,EAAE,OAAO;QACrD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,oCAAoC,EAAE,OAAO;QAC7C,+CAA+C,EAAE,OAAO;QACxD,6CAA6C,EAAE,OAAO;QACtD,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,iDAAiD,EAAE,OAAO;QAC1D,4CAA4C,EAAE,OAAO;QACrD,gDAAgD,EAAE,OAAO;QACzD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE;YAC3C,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,oBAAoB,EAAE,KAAK;gBAC3B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,kDAAkD,EAAE;YAClD,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;gBAClB,WAAW,EAAE,KAAK;aACnB;SACF;QACD,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE;YACjC,OAAO;YACP,iCAAiC;SAClC;QACD,2CAA2C,EAAE,OAAO;QACpD,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"}
|
@@ -1,48 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/ban-ts-comment': [
|
||||
'error',
|
||||
{ minimumDescriptionLength: 10 },
|
||||
],
|
||||
'no-array-constructor': 'off',
|
||||
'@typescript-eslint/no-array-constructor': 'error',
|
||||
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
||||
'@typescript-eslint/no-dynamic-delete': 'error',
|
||||
'@typescript-eslint/no-empty-object-type': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-extraneous-class': 'error',
|
||||
'@typescript-eslint/no-invalid-void-type': 'error',
|
||||
'@typescript-eslint/no-misused-new': 'error',
|
||||
'@typescript-eslint/no-namespace': 'error',
|
||||
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
||||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
||||
'@typescript-eslint/no-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-require-imports': 'error',
|
||||
'@typescript-eslint/no-this-alias': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
||||
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
||||
'@typescript-eslint/no-unsafe-function-type': 'error',
|
||||
'no-unused-expressions': 'off',
|
||||
'@typescript-eslint/no-unused-expressions': 'error',
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'error',
|
||||
'no-useless-constructor': 'off',
|
||||
'@typescript-eslint/no-useless-constructor': 'error',
|
||||
'@typescript-eslint/no-wrapper-object-types': 'error',
|
||||
'@typescript-eslint/prefer-as-const': 'error',
|
||||
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
||||
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
||||
'@typescript-eslint/triple-slash-reference': 'error',
|
||||
'@typescript-eslint/unified-signatures': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=strict.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"strict.js","sourceRoot":"","sources":["../../src/configs/strict.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,wBAAwB,EAAE,EAAE,EAAE;SACjC;QACD,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,6CAA6C,EAAE,OAAO;QACtD,sCAAsC,EAAE,OAAO;QAC/C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,wCAAwC,EAAE,OAAO;QACjD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,4DAA4D,EAAE,OAAO;QACrE,wDAAwD,EAAE,OAAO;QACjE,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,4CAA4C,EAAE,OAAO;QACrD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,OAAO;QACpD,4CAA4C,EAAE,OAAO;QACrD,oCAAoC,EAAE,OAAO;QAC7C,+CAA+C,EAAE,OAAO;QACxD,6CAA6C,EAAE,OAAO;QACtD,2CAA2C,EAAE,OAAO;QACpD,uCAAuC,EAAE,OAAO;KACjD;CAC6B,CAAC"}
|
@@ -1,22 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'dot-notation': 'off',
|
||||
'@typescript-eslint/dot-notation': 'error',
|
||||
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
||||
'@typescript-eslint/prefer-find': 'error',
|
||||
'@typescript-eslint/prefer-includes': 'error',
|
||||
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
||||
'@typescript-eslint/prefer-optional-chain': 'error',
|
||||
'@typescript-eslint/prefer-regexp-exec': 'error',
|
||||
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=stylistic-type-checked-only.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"stylistic-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,sDAAsD,EAAE,OAAO;QAC/D,gCAAgC,EAAE,OAAO;QACzC,oCAAoC,EAAE,OAAO;QAC7C,8CAA8C,EAAE,OAAO;QACvD,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,mDAAmD,EAAE,OAAO;KAC7D;CAC6B,CAAC"}
|
@@ -1,36 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
||||
'@typescript-eslint/array-type': 'error',
|
||||
'@typescript-eslint/ban-tslint-comment': 'error',
|
||||
'@typescript-eslint/class-literal-property-style': 'error',
|
||||
'@typescript-eslint/consistent-generic-constructors': 'error',
|
||||
'@typescript-eslint/consistent-indexed-object-style': 'error',
|
||||
'@typescript-eslint/consistent-type-assertions': 'error',
|
||||
'@typescript-eslint/consistent-type-definitions': 'error',
|
||||
'dot-notation': 'off',
|
||||
'@typescript-eslint/dot-notation': 'error',
|
||||
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
||||
'no-empty-function': 'off',
|
||||
'@typescript-eslint/no-empty-function': 'error',
|
||||
'@typescript-eslint/no-inferrable-types': 'error',
|
||||
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
||||
'@typescript-eslint/prefer-find': 'error',
|
||||
'@typescript-eslint/prefer-for-of': 'error',
|
||||
'@typescript-eslint/prefer-function-type': 'error',
|
||||
'@typescript-eslint/prefer-includes': 'error',
|
||||
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
||||
'@typescript-eslint/prefer-optional-chain': 'error',
|
||||
'@typescript-eslint/prefer-regexp-exec': 'error',
|
||||
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=stylistic-type-checked.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"stylistic-type-checked.js","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,uCAAuC,EAAE,OAAO;QAChD,iDAAiD,EAAE,OAAO;QAC1D,oDAAoD,EAAE,OAAO;QAC7D,oDAAoD,EAAE,OAAO;QAC7D,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,oDAAoD,EAAE,OAAO;QAC7D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,wCAAwC,EAAE,OAAO;QACjD,sDAAsD,EAAE,OAAO;QAC/D,gCAAgC,EAAE,OAAO;QACzC,kCAAkC,EAAE,OAAO;QAC3C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,8CAA8C,EAAE,OAAO;QACvD,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,mDAAmD,EAAE,OAAO;KAC7D;CAC6B,CAAC"}
|
@@ -1,27 +0,0 @@
|
||||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// SEE https://typescript-eslint.io/users/configs
|
||||
//
|
||||
// For developers working in the typescript-eslint monorepo:
|
||||
// You can regenerate it using `yarn generate:configs`
|
||||
module.exports = {
|
||||
extends: ['./configs/base', './configs/eslint-recommended'],
|
||||
rules: {
|
||||
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
||||
'@typescript-eslint/array-type': 'error',
|
||||
'@typescript-eslint/ban-tslint-comment': 'error',
|
||||
'@typescript-eslint/class-literal-property-style': 'error',
|
||||
'@typescript-eslint/consistent-generic-constructors': 'error',
|
||||
'@typescript-eslint/consistent-indexed-object-style': 'error',
|
||||
'@typescript-eslint/consistent-type-assertions': 'error',
|
||||
'@typescript-eslint/consistent-type-definitions': 'error',
|
||||
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
||||
'no-empty-function': 'off',
|
||||
'@typescript-eslint/no-empty-function': 'error',
|
||||
'@typescript-eslint/no-inferrable-types': 'error',
|
||||
'@typescript-eslint/prefer-for-of': 'error',
|
||||
'@typescript-eslint/prefer-function-type': 'error',
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=stylistic.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../../src/configs/stylistic.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,uCAAuC,EAAE,OAAO;QAChD,iDAAiD,EAAE,OAAO;QAC1D,oDAAoD,EAAE,OAAO;QAC7D,oDAAoD,EAAE,OAAO;QAC7D,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,oDAAoD,EAAE,OAAO;QAC7D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,wCAAwC,EAAE,OAAO;QACjD,kCAAkC,EAAE,OAAO;QAC3C,yCAAyC,EAAE,OAAO;KACnD;CAC6B,CAAC"}
|
@@ -1,47 +0,0 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
const all_1 = __importDefault(require("./configs/all"));
|
||||
const base_1 = __importDefault(require("./configs/base"));
|
||||
const disable_type_checked_1 = __importDefault(require("./configs/disable-type-checked"));
|
||||
const eslint_recommended_1 = __importDefault(require("./configs/eslint-recommended"));
|
||||
const recommended_1 = __importDefault(require("./configs/recommended"));
|
||||
const recommended_type_checked_1 = __importDefault(require("./configs/recommended-type-checked"));
|
||||
const recommended_type_checked_only_1 = __importDefault(require("./configs/recommended-type-checked-only"));
|
||||
const strict_1 = __importDefault(require("./configs/strict"));
|
||||
const strict_type_checked_1 = __importDefault(require("./configs/strict-type-checked"));
|
||||
const strict_type_checked_only_1 = __importDefault(require("./configs/strict-type-checked-only"));
|
||||
const stylistic_1 = __importDefault(require("./configs/stylistic"));
|
||||
const stylistic_type_checked_1 = __importDefault(require("./configs/stylistic-type-checked"));
|
||||
const stylistic_type_checked_only_1 = __importDefault(require("./configs/stylistic-type-checked-only"));
|
||||
const rules_1 = __importDefault(require("./rules"));
|
||||
// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
|
||||
const { name, version } = require('../package.json');
|
||||
const configs = {
|
||||
all: all_1.default,
|
||||
base: base_1.default,
|
||||
'disable-type-checked': disable_type_checked_1.default,
|
||||
'eslint-recommended': eslint_recommended_1.default,
|
||||
recommended: recommended_1.default,
|
||||
/** @deprecated - please use "recommended-type-checked" instead. */
|
||||
'recommended-requiring-type-checking': recommended_type_checked_1.default,
|
||||
'recommended-type-checked': recommended_type_checked_1.default,
|
||||
'recommended-type-checked-only': recommended_type_checked_only_1.default,
|
||||
strict: strict_1.default,
|
||||
'strict-type-checked': strict_type_checked_1.default,
|
||||
'strict-type-checked-only': strict_type_checked_only_1.default,
|
||||
stylistic: stylistic_1.default,
|
||||
'stylistic-type-checked': stylistic_type_checked_1.default,
|
||||
'stylistic-type-checked-only': stylistic_type_checked_only_1.default,
|
||||
};
|
||||
const meta = {
|
||||
name,
|
||||
version,
|
||||
};
|
||||
module.exports = {
|
||||
configs,
|
||||
meta,
|
||||
rules: rules_1.default,
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAEA,wDAAgC;AAChC,0DAAkC;AAClC,0FAAgE;AAChE,sFAA6D;AAC7D,wEAAgD;AAChD,kGAAwE;AACxE,4GAAiF;AACjF,8DAAsC;AACtC,wFAA8D;AAC9D,kGAAuE;AACvE,oEAA4C;AAC5C,8FAAoE;AACpE,wGAA6E;AAC7E,oDAA4B;AAE5B,sHAAsH;AACtH,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAGlD,CAAC;AAEF,MAAM,OAAO,GAAG;IACd,GAAG,EAAH,aAAG;IACH,IAAI,EAAJ,cAAI;IACJ,sBAAsB,EAAE,8BAAkB;IAC1C,oBAAoB,EAAE,4BAAiB;IACvC,WAAW,EAAX,qBAAW;IACX,mEAAmE;IACnE,qCAAqC,EAAE,kCAAsB;IAC7D,0BAA0B,EAAE,kCAAsB;IAClD,+BAA+B,EAAE,uCAA0B;IAC3D,MAAM,EAAN,gBAAM;IACN,qBAAqB,EAAE,6BAAiB;IACxC,0BAA0B,EAAE,kCAAqB;IACjD,SAAS,EAAT,mBAAS;IACT,wBAAwB,EAAE,gCAAoB;IAC9C,6BAA6B,EAAE,qCAAwB;CACxD,CAAC;AAEF,MAAM,IAAI,GAAG;IACX,IAAI;IACJ,OAAO;CACR,CAAC;AAEF,iBAAS;IACP,OAAO;IACP,IAAI;IACJ,KAAK,EAAL,eAAK;CACkB,CAAC"}
|
@@ -1,125 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("@typescript-eslint/utils");
|
||||
const util_1 = require("../util");
|
||||
exports.default = (0, util_1.createRule)({
|
||||
name: 'adjacent-overload-signatures',
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
description: 'Require that function overload signatures be consecutive',
|
||||
recommended: 'stylistic',
|
||||
},
|
||||
messages: {
|
||||
adjacentSignature: 'All {{name}} signatures should be adjacent.',
|
||||
},
|
||||
schema: [],
|
||||
},
|
||||
defaultOptions: [],
|
||||
create(context) {
|
||||
/**
|
||||
* Gets the name and attribute of the member being processed.
|
||||
* @param member the member being processed.
|
||||
* @returns the name and attribute of the member or null if it's a member not relevant to the rule.
|
||||
*/
|
||||
function getMemberMethod(member) {
|
||||
switch (member.type) {
|
||||
case utils_1.AST_NODE_TYPES.ExportDefaultDeclaration:
|
||||
case utils_1.AST_NODE_TYPES.ExportNamedDeclaration: {
|
||||
// export statements (e.g. export { a };)
|
||||
// have no declarations, so ignore them
|
||||
if (!member.declaration) {
|
||||
return null;
|
||||
}
|
||||
return getMemberMethod(member.declaration);
|
||||
}
|
||||
case utils_1.AST_NODE_TYPES.TSDeclareFunction:
|
||||
case utils_1.AST_NODE_TYPES.FunctionDeclaration: {
|
||||
const name = member.id?.name ?? null;
|
||||
if (name == null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
name,
|
||||
type: util_1.MemberNameType.Normal,
|
||||
callSignature: false,
|
||||
};
|
||||
}
|
||||
case utils_1.AST_NODE_TYPES.TSMethodSignature:
|
||||
case utils_1.AST_NODE_TYPES.MethodDefinition:
|
||||
return {
|
||||
...(0, util_1.getNameFromMember)(member, context.sourceCode),
|
||||
callSignature: false,
|
||||
static: !!member.static,
|
||||
};
|
||||
case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration:
|
||||
return {
|
||||
name: 'call',
|
||||
type: util_1.MemberNameType.Normal,
|
||||
callSignature: true,
|
||||
};
|
||||
case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration:
|
||||
return {
|
||||
name: 'new',
|
||||
type: util_1.MemberNameType.Normal,
|
||||
callSignature: false,
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function isSameMethod(method1, method2) {
|
||||
return (!!method2 &&
|
||||
method1.name === method2.name &&
|
||||
method1.static === method2.static &&
|
||||
method1.callSignature === method2.callSignature &&
|
||||
method1.type === method2.type);
|
||||
}
|
||||
function getMembers(node) {
|
||||
switch (node.type) {
|
||||
case utils_1.AST_NODE_TYPES.ClassBody:
|
||||
case utils_1.AST_NODE_TYPES.Program:
|
||||
case utils_1.AST_NODE_TYPES.TSModuleBlock:
|
||||
case utils_1.AST_NODE_TYPES.TSInterfaceBody:
|
||||
case utils_1.AST_NODE_TYPES.BlockStatement:
|
||||
return node.body;
|
||||
case utils_1.AST_NODE_TYPES.TSTypeLiteral:
|
||||
return node.members;
|
||||
}
|
||||
}
|
||||
function checkBodyForOverloadMethods(node) {
|
||||
const members = getMembers(node);
|
||||
let lastMethod = null;
|
||||
const seenMethods = [];
|
||||
members.forEach(member => {
|
||||
const method = getMemberMethod(member);
|
||||
if (method == null) {
|
||||
lastMethod = null;
|
||||
return;
|
||||
}
|
||||
const index = seenMethods.findIndex(seenMethod => isSameMethod(method, seenMethod));
|
||||
if (index > -1 && !isSameMethod(method, lastMethod)) {
|
||||
context.report({
|
||||
node: member,
|
||||
messageId: 'adjacentSignature',
|
||||
data: {
|
||||
name: `${method.static ? 'static ' : ''}${method.name}`,
|
||||
},
|
||||
});
|
||||
}
|
||||
else if (index === -1) {
|
||||
seenMethods.push(method);
|
||||
}
|
||||
lastMethod = method;
|
||||
});
|
||||
}
|
||||
return {
|
||||
BlockStatement: checkBodyForOverloadMethods,
|
||||
ClassBody: checkBodyForOverloadMethods,
|
||||
Program: checkBodyForOverloadMethods,
|
||||
TSInterfaceBody: checkBodyForOverloadMethods,
|
||||
TSModuleBlock: checkBodyForOverloadMethods,
|
||||
TSTypeLiteral: checkBodyForOverloadMethods,
|
||||
};
|
||||
},
|
||||
});
|
||||
//# sourceMappingURL=adjacent-overload-signatures.js.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"adjacent-overload-signatures.js","sourceRoot":"","sources":["../../src/rules/adjacent-overload-signatures.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAwE;AAmBxE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0DAA0D;YACvE,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,6CAA6C;SACjE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QAQZ;;;;WAIG;QACH,SAAS,eAAe,CACtB,MAAkC;YAElC,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;gBACpB,KAAK,sBAAc,CAAC,wBAAwB,CAAC;gBAC7C,KAAK,sBAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC;oBAC3C,yCAAyC;oBACzC,uCAAuC;oBACvC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;wBACxB,OAAO,IAAI,CAAC;oBACd,CAAC;oBAED,OAAO,eAAe,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBAC7C,CAAC;gBACD,KAAK,sBAAc,CAAC,iBAAiB,CAAC;gBACtC,KAAK,sBAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;oBACxC,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,EAAE,IAAI,IAAI,IAAI,CAAC;oBACrC,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;wBACjB,OAAO,IAAI,CAAC;oBACd,CAAC;oBACD,OAAO;wBACL,IAAI;wBACJ,IAAI,EAAE,qBAAc,CAAC,MAAM;wBAC3B,aAAa,EAAE,KAAK;qBACrB,CAAC;gBACJ,CAAC;gBACD,KAAK,sBAAc,CAAC,iBAAiB,CAAC;gBACtC,KAAK,sBAAc,CAAC,gBAAgB;oBAClC,OAAO;wBACL,GAAG,IAAA,wBAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC;wBAChD,aAAa,EAAE,KAAK;wBACpB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM;qBACxB,CAAC;gBACJ,KAAK,sBAAc,CAAC,0BAA0B;oBAC5C,OAAO;wBACL,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,qBAAc,CAAC,MAAM;wBAC3B,aAAa,EAAE,IAAI;qBACpB,CAAC;gBACJ,KAAK,sBAAc,CAAC,+BAA+B;oBACjD,OAAO;wBACL,IAAI,EAAE,KAAK;wBACX,IAAI,EAAE,qBAAc,CAAC,MAAM;wBAC3B,aAAa,EAAE,KAAK;qBACrB,CAAC;YACN,CAAC;YAED,OAAO,IAAI,CAAC;QACd,CAAC;QAED,SAAS,YAAY,CAAC,OAAe,EAAE,OAAsB;YAC3D,OAAO,CACL,CAAC,CAAC,OAAO;gBACT,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI;gBAC7B,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM;gBACjC,OAAO,CAAC,aAAa,KAAK,OAAO,CAAC,aAAa;gBAC/C,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,CAC9B,CAAC;QACJ,CAAC;QAED,SAAS,UAAU,CAAC,IAAc;YAChC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;gBAClB,KAAK,sBAAc,CAAC,SAAS,CAAC;gBAC9B,KAAK,sBAAc,CAAC,OAAO,CAAC;gBAC5B,KAAK,sBAAc,CAAC,aAAa,CAAC;gBAClC,KAAK,sBAAc,CAAC,eAAe,CAAC;gBACpC,KAAK,sBAAc,CAAC,cAAc;oBAChC,OAAO,IAAI,CAAC,IAAI,CAAC;gBAEnB,KAAK,sBAAc,CAAC,aAAa;oBAC/B,OAAO,IAAI,CAAC,OAAO,CAAC;YACxB,CAAC;QACH,CAAC;QAED,SAAS,2BAA2B,CAAC,IAAc;YACjD,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;YAEjC,IAAI,UAAU,GAAkB,IAAI,CAAC;YACrC,MAAM,WAAW,GAAa,EAAE,CAAC;YAEjC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACvB,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;gBACvC,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;oBACnB,UAAU,GAAG,IAAI,CAAC;oBAClB,OAAO;gBACT,CAAC;gBAED,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAC/C,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CACjC,CAAC;gBACF,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC;oBACpD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,MAAM;wBACZ,SAAS,EAAE,mBAAmB;wBAC9B,IAAI,EAAE;4BACJ,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE;yBACxD;qBACF,CAAC,CAAC;gBACL,CAAC;qBAAM,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;oBACxB,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBAC3B,CAAC;gBAED,UAAU,GAAG,MAAM,CAAC;YACtB,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,cAAc,EAAE,2BAA2B;YAC3C,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE,2BAA2B;YACpC,eAAe,EAAE,2BAA2B;YAC5C,aAAa,EAAE,2BAA2B;YAC1C,aAAa,EAAE,2BAA2B;SAC3C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
@@ -1,232 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("@typescript-eslint/utils");
|
||||
const util_1 = require("../util");
|
||||
/**
|
||||
* Check whatever node can be considered as simple
|
||||
* @param node the node to be evaluated.
|
||||
*/
|
||||
function isSimpleType(node) {
|
||||
switch (node.type) {
|
||||
case utils_1.AST_NODE_TYPES.Identifier:
|
||||
case utils_1.AST_NODE_TYPES.TSAnyKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSBooleanKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSNeverKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSNumberKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSBigIntKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSObjectKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSStringKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSSymbolKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSUnknownKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSVoidKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSNullKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSArrayType:
|
||||
case utils_1.AST_NODE_TYPES.TSUndefinedKeyword:
|
||||
case utils_1.AST_NODE_TYPES.TSThisType:
|
||||
case utils_1.AST_NODE_TYPES.TSQualifiedName:
|
||||
return true;
|
||||
case utils_1.AST_NODE_TYPES.TSTypeReference:
|
||||
if (node.typeName.type === utils_1.AST_NODE_TYPES.Identifier &&
|
||||
node.typeName.name === 'Array') {
|
||||
if (!node.typeArguments) {
|
||||
return true;
|
||||
}
|
||||
if (node.typeArguments.params.length === 1) {
|
||||
return isSimpleType(node.typeArguments.params[0]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (node.typeArguments) {
|
||||
return false;
|
||||
}
|
||||
return isSimpleType(node.typeName);
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Check if node needs parentheses
|
||||
* @param node the node to be evaluated.
|
||||
*/
|
||||
function typeNeedsParentheses(node) {
|
||||
switch (node.type) {
|
||||
case utils_1.AST_NODE_TYPES.TSTypeReference:
|
||||
return typeNeedsParentheses(node.typeName);
|
||||
case utils_1.AST_NODE_TYPES.TSUnionType:
|
||||
case utils_1.AST_NODE_TYPES.TSFunctionType:
|
||||
case utils_1.AST_NODE_TYPES.TSIntersectionType:
|
||||
case utils_1.AST_NODE_TYPES.TSTypeOperator:
|
||||
case utils_1.AST_NODE_TYPES.TSInferType:
|
||||
case utils_1.AST_NODE_TYPES.TSConstructorType:
|
||||
return true;
|
||||
case utils_1.AST_NODE_TYPES.Identifier:
|
||||
return node.name === 'ReadonlyArray';
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
exports.default = (0, util_1.createRule)({
|
||||
name: 'array-type',
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
description: 'Require consistently using either `T[]` or `Array<T>` for arrays',
|
||||
recommended: 'stylistic',
|
||||
},
|
||||
fixable: 'code',
|
||||
messages: {
|
||||
errorStringArray: "Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}[]' instead.",
|
||||
errorStringArrayReadonly: "Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}' instead.",
|
||||
errorStringArraySimple: "Array type using '{{className}}<{{type}}>' is forbidden for simple types. Use '{{readonlyPrefix}}{{type}}[]' instead.",
|
||||
errorStringArraySimpleReadonly: "Array type using '{{className}}<{{type}}>' is forbidden for simple types. Use '{{readonlyPrefix}}{{type}}' instead.",
|
||||
errorStringGeneric: "Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden. Use '{{className}}<{{type}}>' instead.",
|
||||
errorStringGenericSimple: "Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden for non-simple types. Use '{{className}}<{{type}}>' instead.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: 'object',
|
||||
$defs: {
|
||||
arrayOption: {
|
||||
type: 'string',
|
||||
enum: ['array', 'generic', 'array-simple'],
|
||||
},
|
||||
},
|
||||
additionalProperties: false,
|
||||
properties: {
|
||||
default: {
|
||||
$ref: '#/items/0/$defs/arrayOption',
|
||||
description: 'The array type expected for mutable cases.',
|
||||
},
|
||||
readonly: {
|
||||
$ref: '#/items/0/$defs/arrayOption',
|
||||
description: 'The array type expected for readonly cases. If omitted, the value for `default` will be used.',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
defaultOptions: [
|
||||
{
|
||||
default: 'array',
|
||||
},
|
||||
],
|
||||
create(context, [options]) {
|
||||
const defaultOption = options.default;
|
||||
const readonlyOption = options.readonly ?? defaultOption;
|
||||
/**
|
||||
* @param node the node to be evaluated.
|
||||
*/
|
||||
function getMessageType(node) {
|
||||
if (isSimpleType(node)) {
|
||||
return context.sourceCode.getText(node);
|
||||
}
|
||||
return 'T';
|
||||
}
|
||||
return {
|
||||
TSArrayType(node) {
|
||||
const isReadonly = node.parent.type === utils_1.AST_NODE_TYPES.TSTypeOperator &&
|
||||
node.parent.operator === 'readonly';
|
||||
const currentOption = isReadonly ? readonlyOption : defaultOption;
|
||||
if (currentOption === 'array' ||
|
||||
(currentOption === 'array-simple' && isSimpleType(node.elementType))) {
|
||||
return;
|
||||
}
|
||||
const messageId = currentOption === 'generic'
|
||||
? 'errorStringGeneric'
|
||||
: 'errorStringGenericSimple';
|
||||
const errorNode = isReadonly ? node.parent : node;
|
||||
context.report({
|
||||
node: errorNode,
|
||||
messageId,
|
||||
data: {
|
||||
type: getMessageType(node.elementType),
|
||||
className: isReadonly ? 'ReadonlyArray' : 'Array',
|
||||
readonlyPrefix: isReadonly ? 'readonly ' : '',
|
||||
},
|
||||
fix(fixer) {
|
||||
const typeNode = node.elementType;
|
||||
const arrayType = isReadonly ? 'ReadonlyArray' : 'Array';
|
||||
return [
|
||||
fixer.replaceTextRange([errorNode.range[0], typeNode.range[0]], `${arrayType}<`),
|
||||
fixer.replaceTextRange([typeNode.range[1], errorNode.range[1]], '>'),
|
||||
];
|
||||
},
|
||||
});
|
||||
},
|
||||
TSTypeReference(node) {
|
||||
if (node.typeName.type !== utils_1.AST_NODE_TYPES.Identifier ||
|
||||
!(node.typeName.name === 'Array' ||
|
||||
node.typeName.name === 'ReadonlyArray' ||
|
||||
node.typeName.name === 'Readonly') ||
|
||||
(node.typeName.name === 'Readonly' &&
|
||||
node.typeArguments?.params[0].type !== utils_1.AST_NODE_TYPES.TSArrayType)) {
|
||||
return;
|
||||
}
|
||||
const isReadonlyWithGenericArrayType = node.typeName.name === 'Readonly' &&
|
||||
node.typeArguments?.params[0].type === utils_1.AST_NODE_TYPES.TSArrayType;
|
||||
const isReadonlyArrayType = node.typeName.name === 'ReadonlyArray' ||
|
||||
isReadonlyWithGenericArrayType;
|
||||
const currentOption = isReadonlyArrayType
|
||||
? readonlyOption
|
||||
: defaultOption;
|
||||
if (currentOption === 'generic') {
|
||||
return;
|
||||
}
|
||||
const readonlyPrefix = isReadonlyArrayType ? 'readonly ' : '';
|
||||
const typeParams = node.typeArguments?.params;
|
||||
const messageId = currentOption === 'array'
|
||||
? isReadonlyWithGenericArrayType
|
||||
? 'errorStringArrayReadonly'
|
||||
: 'errorStringArray'
|
||||
: isReadonlyArrayType && node.typeName.name !== 'ReadonlyArray'
|
||||
? 'errorStringArraySimpleReadonly'
|
||||
: 'errorStringArraySimple';
|
||||
if (!typeParams || typeParams.length === 0) {
|
||||
// Create an 'any' array
|
||||
context.report({
|
||||
node,
|
||||
messageId,
|
||||
data: {
|
||||
type: 'any',
|
||||
className: isReadonlyArrayType ? 'ReadonlyArray' : 'Array',
|
||||
readonlyPrefix,
|
||||
},
|
||||
fix(fixer) {
|
||||
return fixer.replaceText(node, `${readonlyPrefix}any[]`);
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (typeParams.length !== 1 ||
|
||||
(currentOption === 'array-simple' && !isSimpleType(typeParams[0]))) {
|
||||
return;
|
||||
}
|
||||
const type = typeParams[0];
|
||||
const typeParens = typeNeedsParentheses(type);
|
||||
const parentParens = readonlyPrefix &&
|
||||
node.parent.type === utils_1.AST_NODE_TYPES.TSArrayType &&
|
||||
!(0, util_1.isParenthesized)(node.parent.elementType, context.sourceCode);
|
||||
const start = `${parentParens ? '(' : ''}${readonlyPrefix}${typeParens ? '(' : ''}`;
|
||||
const end = `${typeParens ? ')' : ''}${isReadonlyWithGenericArrayType ? '' : `[]`}${parentParens ? ')' : ''}`;
|
||||
context.report({
|
||||
node,
|
||||
messageId,
|
||||
data: {
|
||||
type: getMessageType(type),
|
||||
className: isReadonlyArrayType ? node.typeName.name : 'Array',
|
||||
readonlyPrefix,
|
||||
},
|
||||
fix(fixer) {
|
||||
return [
|
||||
fixer.replaceTextRange([node.range[0], type.range[0]], start),
|
||||
fixer.replaceTextRange([type.range[1], node.range[1]], end),
|
||||
];
|
||||
},
|
||||
});
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
//# sourceMappingURL=array-type.js.map
|
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user