mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2026-06-10 11:49:46 +02:00
🛠 refactor(bump): node modules cache
This commit is contained in:
+1
-18
@@ -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
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
-21
@@ -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.
|
||||
Generated
Vendored
-37
@@ -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.
|
||||
Generated
Vendored
-2059
File diff suppressed because it is too large
Load Diff
Generated
Vendored
-1
File diff suppressed because one or more lines are too long
Generated
Vendored
-2018
File diff suppressed because it is too large
Load Diff
Generated
Vendored
-1
File diff suppressed because one or more lines are too long
Generated
Vendored
-17
@@ -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
|
||||
Generated
Vendored
-80
@@ -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"
|
||||
}
|
||||
Generated
Vendored
-1
@@ -1 +0,0 @@
|
||||
../../eslint@9.17.0_jiti@1.21.6/node_modules/eslint
|
||||
Generated
Vendored
-1
@@ -1 +0,0 @@
|
||||
../../eslint-visitor-keys@3.4.3/node_modules/eslint-visitor-keys
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
-3
@@ -1,3 +0,0 @@
|
||||
# `@rollup/rollup-linux-x64-gnu`
|
||||
|
||||
This is the **x86_64-unknown-linux-gnu** binary for `rollup`
|
||||
Generated
Vendored
-22
@@ -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"
|
||||
}
|
||||
Generated
Vendored
BIN
Binary file not shown.
Generated
Vendored
-3
@@ -1,3 +0,0 @@
|
||||
# `@rollup/rollup-linux-x64-musl`
|
||||
|
||||
This is the **x86_64-unknown-linux-musl** binary for `rollup`
|
||||
Generated
Vendored
-22
@@ -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"
|
||||
}
|
||||
Generated
Vendored
BIN
Binary file not shown.
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -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" "$@"
|
||||
|
||||
Generated
Vendored
-1
@@ -1 +0,0 @@
|
||||
../../../@types+react@18.3.17/node_modules/@types/react
|
||||
Generated
Vendored
-21
@@ -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
|
||||
Generated
Vendored
-16
@@ -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).
|
||||
Generated
Vendored
-184
@@ -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;
|
||||
}
|
||||
}
|
||||
Generated
Vendored
-72
@@ -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;
|
||||
Generated
Vendored
-36
@@ -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 "." {
|
||||
}
|
||||
Generated
Vendored
-150
@@ -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;
|
||||
}
|
||||
Generated
Vendored
-88
@@ -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"
|
||||
}
|
||||
Generated
Vendored
-126
@@ -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;
|
||||
Generated
Vendored
-402
@@ -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
@@ -1 +0,0 @@
|
||||
../../../@types+prop-types@15.7.14/node_modules/@types/prop-types
|
||||
-21
@@ -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
@@ -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
@@ -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;
|
||||
}
|
||||
}
|
||||
Generated
Vendored
-132
@@ -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
@@ -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
File diff suppressed because it is too large
Load Diff
Generated
Vendored
-45
@@ -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;
|
||||
Generated
Vendored
-36
@@ -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
@@ -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"
|
||||
}
|
||||
Generated
Vendored
-166
@@ -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;
|
||||
}
|
||||
}
|
||||
Generated
Vendored
-132
@@ -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;
|
||||
}
|
||||
}
|
||||
Generated
Vendored
-160
@@ -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 {}
|
||||
Generated
Vendored
-4530
File diff suppressed because it is too large
Load Diff
Generated
Vendored
-44
@@ -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;
|
||||
Generated
Vendored
-35
@@ -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
@@ -1 +0,0 @@
|
||||
../../csstype@3.1.3/node_modules/csstype
|
||||
+2
-2
@@ -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" "$@"
|
||||
|
||||
+2
-2
@@ -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" "$@"
|
||||
|
||||
+2
-2
@@ -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
@@ -1 +0,0 @@
|
||||
../../../@eslint-community+regexpp@4.12.1/node_modules/@eslint-community/regexpp
|
||||
-21
@@ -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.
|
||||
-12
@@ -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 -->
|
||||
-161
@@ -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
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"all.js","sourceRoot":"","sources":["../../src/configs/all.ts"],"names":[],"mappings":"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"}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
"use strict";
|
||||
module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: { sourceType: 'module' },
|
||||
plugins: ['@typescript-eslint'],
|
||||
};
|
||||
//# sourceMappingURL=base.js.map
|
||||
-1
@@ -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"}
|
||||
-70
@@ -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
@@ -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"}
|
||||
-43
@@ -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
@@ -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"}
|
||||
-14
@@ -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
@@ -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"}
|
||||
-40
@@ -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
@@ -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"}
|
||||
-63
@@ -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
@@ -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"}
|
||||
-36
@@ -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
@@ -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"}
|
||||
-77
@@ -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
@@ -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"}
|
||||
-112
@@ -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
@@ -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"}
|
||||
-48
@@ -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
@@ -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"}
|
||||
-22
@@ -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
@@ -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"}
|
||||
-36
@@ -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
@@ -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"}
|
||||
-27
@@ -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
@@ -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"}
|
||||
-47
@@ -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
@@ -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"}
|
||||
-125
@@ -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
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"adjacent-overload-signatures.js","sourceRoot":"","sources":["../../src/rules/adjacent-overload-signatures.ts"],"names":[],"mappings":"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"}
|
||||
-232
@@ -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
|
||||
-1
File diff suppressed because one or more lines are too long
-146
@@ -1,146 +0,0 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tsutils = __importStar(require("ts-api-utils"));
|
||||
const util_1 = require("../util");
|
||||
const getForStatementHeadLoc_1 = require("../util/getForStatementHeadLoc");
|
||||
exports.default = (0, util_1.createRule)({
|
||||
name: 'await-thenable',
|
||||
meta: {
|
||||
type: 'problem',
|
||||
docs: {
|
||||
description: 'Disallow awaiting a value that is not a Thenable',
|
||||
recommended: 'recommended',
|
||||
requiresTypeChecking: true,
|
||||
},
|
||||
hasSuggestions: true,
|
||||
messages: {
|
||||
await: 'Unexpected `await` of a non-Promise (non-"Thenable") value.',
|
||||
awaitUsingOfNonAsyncDisposable: 'Unexpected `await using` of a value that is not async disposable.',
|
||||
convertToOrdinaryFor: 'Convert to an ordinary `for...of` loop.',
|
||||
forAwaitOfNonAsyncIterable: 'Unexpected `for await...of` of a value that is not async iterable.',
|
||||
removeAwait: 'Remove unnecessary `await`.',
|
||||
},
|
||||
schema: [],
|
||||
},
|
||||
defaultOptions: [],
|
||||
create(context) {
|
||||
const services = (0, util_1.getParserServices)(context);
|
||||
const checker = services.program.getTypeChecker();
|
||||
return {
|
||||
AwaitExpression(node) {
|
||||
const type = services.getTypeAtLocation(node.argument);
|
||||
const originalNode = services.esTreeNodeToTSNodeMap.get(node);
|
||||
const certainty = (0, util_1.needsToBeAwaited)(checker, originalNode, type);
|
||||
if (certainty === util_1.Awaitable.Never) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: 'await',
|
||||
suggest: [
|
||||
{
|
||||
messageId: 'removeAwait',
|
||||
fix(fixer) {
|
||||
const awaitKeyword = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword), util_1.NullThrowsReasons.MissingToken('await', 'await expression'));
|
||||
return fixer.remove(awaitKeyword);
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
},
|
||||
'ForOfStatement[await=true]'(node) {
|
||||
const type = services.getTypeAtLocation(node.right);
|
||||
if ((0, util_1.isTypeAnyType)(type)) {
|
||||
return;
|
||||
}
|
||||
const hasAsyncIteratorSymbol = tsutils
|
||||
.unionTypeParts(type)
|
||||
.some(typePart => tsutils.getWellKnownSymbolPropertyOfType(typePart, 'asyncIterator', checker) != null);
|
||||
if (!hasAsyncIteratorSymbol) {
|
||||
context.report({
|
||||
loc: (0, getForStatementHeadLoc_1.getForStatementHeadLoc)(context.sourceCode, node),
|
||||
messageId: 'forAwaitOfNonAsyncIterable',
|
||||
suggest: [
|
||||
// Note that this suggestion causes broken code for sync iterables
|
||||
// of promises, since the loop variable is not awaited.
|
||||
{
|
||||
messageId: 'convertToOrdinaryFor',
|
||||
fix(fixer) {
|
||||
const awaitToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword), util_1.NullThrowsReasons.MissingToken('await', 'for await loop'));
|
||||
return fixer.remove(awaitToken);
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
},
|
||||
'VariableDeclaration[kind="await using"]'(node) {
|
||||
for (const declarator of node.declarations) {
|
||||
const init = declarator.init;
|
||||
if (init == null) {
|
||||
continue;
|
||||
}
|
||||
const type = services.getTypeAtLocation(init);
|
||||
if ((0, util_1.isTypeAnyType)(type)) {
|
||||
continue;
|
||||
}
|
||||
const hasAsyncDisposeSymbol = tsutils
|
||||
.unionTypeParts(type)
|
||||
.some(typePart => tsutils.getWellKnownSymbolPropertyOfType(typePart, 'asyncDispose', checker) != null);
|
||||
if (!hasAsyncDisposeSymbol) {
|
||||
context.report({
|
||||
node: init,
|
||||
messageId: 'awaitUsingOfNonAsyncDisposable',
|
||||
// let the user figure out what to do if there's
|
||||
// await using a = b, c = d, e = f;
|
||||
// it's rare and not worth the complexity to handle.
|
||||
...(0, util_1.getFixOrSuggest)({
|
||||
fixOrSuggest: node.declarations.length === 1 ? 'suggest' : 'none',
|
||||
suggestion: {
|
||||
messageId: 'removeAwait',
|
||||
fix(fixer) {
|
||||
const awaitToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword), util_1.NullThrowsReasons.MissingToken('await', 'await using'));
|
||||
return fixer.remove(awaitToken);
|
||||
},
|
||||
},
|
||||
}),
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
//# sourceMappingURL=await-thenable.js.map
|
||||
-1
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"await-thenable.js","sourceRoot":"","sources":["../../src/rules/await-thenable.ts"],"names":[],"mappings":"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"}
|
||||
-185
@@ -1,185 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("@typescript-eslint/utils");
|
||||
const util_1 = require("../util");
|
||||
const defaultMinimumDescriptionLength = 3;
|
||||
exports.default = (0, util_1.createRule)({
|
||||
name: 'ban-ts-comment',
|
||||
meta: {
|
||||
type: 'problem',
|
||||
docs: {
|
||||
description: 'Disallow `@ts-<directive>` comments or require descriptions after directives',
|
||||
recommended: {
|
||||
recommended: true,
|
||||
strict: [{ minimumDescriptionLength: 10 }],
|
||||
},
|
||||
},
|
||||
hasSuggestions: true,
|
||||
messages: {
|
||||
replaceTsIgnoreWithTsExpectError: 'Replace "@ts-ignore" with "@ts-expect-error".',
|
||||
tsDirectiveComment: 'Do not use "@ts-{{directive}}" because it alters compilation errors.',
|
||||
tsDirectiveCommentDescriptionNotMatchPattern: 'The description for the "@ts-{{directive}}" directive must match the {{format}} format.',
|
||||
tsDirectiveCommentRequiresDescription: 'Include a description after the "@ts-{{directive}}" directive to explain why the @ts-{{directive}} is necessary. The description must be {{minimumDescriptionLength}} characters or longer.',
|
||||
tsIgnoreInsteadOfExpectError: 'Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free.',
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: 'object',
|
||||
$defs: {
|
||||
directiveConfigSchema: {
|
||||
oneOf: [
|
||||
{
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
},
|
||||
{
|
||||
type: 'string',
|
||||
enum: ['allow-with-description'],
|
||||
},
|
||||
{
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
properties: {
|
||||
descriptionFormat: { type: 'string' },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
additionalProperties: false,
|
||||
properties: {
|
||||
minimumDescriptionLength: {
|
||||
type: 'number',
|
||||
default: defaultMinimumDescriptionLength,
|
||||
description: 'A minimum character length for descriptions when `allow-with-description` is enabled.',
|
||||
},
|
||||
'ts-check': { $ref: '#/items/0/$defs/directiveConfigSchema' },
|
||||
'ts-expect-error': { $ref: '#/items/0/$defs/directiveConfigSchema' },
|
||||
'ts-ignore': { $ref: '#/items/0/$defs/directiveConfigSchema' },
|
||||
'ts-nocheck': { $ref: '#/items/0/$defs/directiveConfigSchema' },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
defaultOptions: [
|
||||
{
|
||||
minimumDescriptionLength: defaultMinimumDescriptionLength,
|
||||
'ts-check': false,
|
||||
'ts-expect-error': 'allow-with-description',
|
||||
'ts-ignore': true,
|
||||
'ts-nocheck': true,
|
||||
},
|
||||
],
|
||||
create(context, [options]) {
|
||||
// https://github.com/microsoft/TypeScript/blob/6f1ad5ad8bec5671f7e951a3524b62d82ec4be68/src/compiler/parser.ts#L10591
|
||||
const singleLinePragmaRegEx = /^\/\/\/?\s*@ts-(?<directive>check|nocheck)(?<description>.*)$/;
|
||||
/*
|
||||
The regex used are taken from the ones used in the official TypeScript repo -
|
||||
https://github.com/microsoft/TypeScript/blob/6f1ad5ad8bec5671f7e951a3524b62d82ec4be68/src/compiler/scanner.ts#L340-L348
|
||||
*/
|
||||
const commentDirectiveRegExSingleLine = /^\/*\s*@ts-(?<directive>expect-error|ignore)(?<description>.*)/;
|
||||
const commentDirectiveRegExMultiLine = /^\s*(?:\/|\*)*\s*@ts-(?<directive>expect-error|ignore)(?<description>.*)/;
|
||||
const descriptionFormats = new Map();
|
||||
for (const directive of [
|
||||
'ts-expect-error',
|
||||
'ts-ignore',
|
||||
'ts-nocheck',
|
||||
'ts-check',
|
||||
]) {
|
||||
const option = options[directive];
|
||||
if (typeof option === 'object' && option.descriptionFormat) {
|
||||
descriptionFormats.set(directive, new RegExp(option.descriptionFormat));
|
||||
}
|
||||
}
|
||||
function execDirectiveRegEx(regex, str) {
|
||||
const match = regex.exec(str);
|
||||
if (!match) {
|
||||
return null;
|
||||
}
|
||||
const { description, directive } = (0, util_1.nullThrows)(match.groups, 'RegExp should contain groups');
|
||||
return {
|
||||
description: (0, util_1.nullThrows)(description, 'RegExp should contain "description" group'),
|
||||
directive: (0, util_1.nullThrows)(directive, 'RegExp should contain "directive" group'),
|
||||
};
|
||||
}
|
||||
function findDirectiveInComment(comment) {
|
||||
if (comment.type === utils_1.AST_TOKEN_TYPES.Line) {
|
||||
const matchedPragma = execDirectiveRegEx(singleLinePragmaRegEx, `//${comment.value}`);
|
||||
if (matchedPragma) {
|
||||
return matchedPragma;
|
||||
}
|
||||
return execDirectiveRegEx(commentDirectiveRegExSingleLine, comment.value);
|
||||
}
|
||||
const commentLines = comment.value.split('\n');
|
||||
return execDirectiveRegEx(commentDirectiveRegExMultiLine, commentLines[commentLines.length - 1]);
|
||||
}
|
||||
return {
|
||||
Program(node) {
|
||||
const firstStatement = node.body.at(0);
|
||||
const comments = context.sourceCode.getAllComments();
|
||||
comments.forEach(comment => {
|
||||
const match = findDirectiveInComment(comment);
|
||||
if (!match) {
|
||||
return;
|
||||
}
|
||||
const { description, directive } = match;
|
||||
if (directive === 'nocheck' &&
|
||||
firstStatement &&
|
||||
firstStatement.loc.start.line <= comment.loc.start.line) {
|
||||
return;
|
||||
}
|
||||
const fullDirective = `ts-${directive}`;
|
||||
const option = options[fullDirective];
|
||||
if (option === true) {
|
||||
if (directive === 'ignore') {
|
||||
// Special case to suggest @ts-expect-error instead of @ts-ignore
|
||||
context.report({
|
||||
node: comment,
|
||||
messageId: 'tsIgnoreInsteadOfExpectError',
|
||||
suggest: [
|
||||
{
|
||||
messageId: 'replaceTsIgnoreWithTsExpectError',
|
||||
fix(fixer) {
|
||||
const commentText = comment.value.replace(/@ts-ignore/, '@ts-expect-error');
|
||||
return fixer.replaceText(comment, comment.type === utils_1.AST_TOKEN_TYPES.Line
|
||||
? `//${commentText}`
|
||||
: `/*${commentText}*/`);
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
else {
|
||||
context.report({
|
||||
node: comment,
|
||||
messageId: 'tsDirectiveComment',
|
||||
data: { directive },
|
||||
});
|
||||
}
|
||||
}
|
||||
if (option === 'allow-with-description' ||
|
||||
(typeof option === 'object' && option.descriptionFormat)) {
|
||||
const { minimumDescriptionLength } = options;
|
||||
const format = descriptionFormats.get(fullDirective);
|
||||
if ((0, util_1.getStringLength)(description.trim()) <
|
||||
(0, util_1.nullThrows)(minimumDescriptionLength, 'Expected minimumDescriptionLength to be set')) {
|
||||
context.report({
|
||||
node: comment,
|
||||
messageId: 'tsDirectiveCommentRequiresDescription',
|
||||
data: { directive, minimumDescriptionLength },
|
||||
});
|
||||
}
|
||||
else if (format && !format.test(description)) {
|
||||
context.report({
|
||||
node: comment,
|
||||
messageId: 'tsDirectiveCommentDescriptionNotMatchPattern',
|
||||
data: { directive, format: format.source },
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
//# sourceMappingURL=ban-ts-comment.js.map
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user