1. Search and select up to 5 players
2. Browse through each players season averages
3. Compare players stats visually by using the graph
Fantasy scoring on this site are based on ESPN's old scoring style calculated as follows: Points + Rebounds + Steals + Blocks + (Field Goals Made - Field Goals Attemped) + (Free Throws Made - Free Throws Attemped) + (Assists - Turnovers)
Why global.d.ts instead of compilerOptions.types inside jsconfig.json or tsconfig.json?
Setting compilerOptions.types shuts out all other types not explicitly listed in the configuration. Using triple-slash references keeps the default TypeScript setting of accepting type information from the entire workspace, while also adding svelte and vite/client type information.
# install dependencies
npm install
# start dev server
npm run dev
# bundle for production (the build output will be placed in the /dist folder)
npm run buildWhy is HMR not preserving my local component state?
HMR state preservation comes with a number of gotchas! It has been disabled by default in both svelte-hmr and @sveltejs/vite-plugin-svelte due to its often surprising behavior. You can read the details here.
If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
// store.ts
// An extremely simple external store
import { writable } from 'svelte/store'
export default writable(0)This app was made possible with the BallDontLie API created by Github user ynnadkrap