Skip to content

Commit

Permalink
chore: init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Jun 13, 2024
0 parents commit 7a2d2a2
Show file tree
Hide file tree
Showing 537 changed files with 43,147 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules

dist

.DS_Store
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
registry=https://registry.npmjs.org

resolution-mode=time-based
shared-workspace-lockfile=false
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mdx.validate.validateFileLinks": "ignore"
}
161 changes: 161 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"./scripts/**/*.ts",
"./website/**/*.ts",
"./website/**/*.tsx",
"./testing/**/*.ts",
"./testing/**/*.tsx"
],
"ignore": ["./src/utils/react-fast-compare.ts"],
"ignoreUnknown": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"useExhaustiveDependencies": {
"level": "warn",
"options": {
"hooks": [
{ "name": "useSafeState", "stableResult": [1] },
{ "name": "useSetState", "stableResult": [1] },
{ "name": "useSignalState", "stableResult": [1] },
{ "name": "useCounter", "stableResult": [1] },
{ "name": "useToggle", "stableResult": [1] },
{ "name": "useTextDirection", "stableResult": [1] },
{ "name": "usePausable", "stableResult": true },
{ "name": "useStableFn", "stableResult": true },
{ "name": "useLatest", "stableResult": true },
{ "name": "useIntervalFn", "stableResult": true },
{ "name": "useRafLoop", "stableResult": true },
{ "name": "useAsyncLock", "stableResult": true },
{
"name": "useAsyncEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useAsyncUpdateEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useDebouncedEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useDeepCompareEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useDeepCompareLayoutEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useEffectOnce",
"closureIndex": 0,
"stableResult": true
},
{
"name": "useIsomorphicLayoutEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useLayoutEffectOnce",
"closureIndex": 0,
"stableResult": true
},
{
"name": "usePausableEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "usePausableLayoutEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "usePausableUpdateDeepCompareEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "usePausableUpdateEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useThrottledEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useTrackedEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useUpdateDeepCompareEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useUpdateEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
},
{
"name": "useUpdateLayoutEffect",
"closureIndex": 0,
"dependenciesIndex": 1,
"stableResult": true
}
]
}
}
}
}
},
"formatter": {
"indentStyle": "space",
"lineWidth": 120
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single"
}
},
"css": {
"formatter": {
"quoteStyle": "single"
}
}
}
36 changes: 36 additions & 0 deletions examples/nextjs-ssr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
4 changes: 4 additions & 0 deletions examples/nextjs-ssr/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}

export default nextConfig
26 changes: 26 additions & 0 deletions examples/nextjs-ssr/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "nextjs-ssr",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --port 3006",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@shined/use": "workspace:*",
"next": "14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"braces": ">=3.0.3"
},
"devDependencies": {
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
}
}
Loading

0 comments on commit 7a2d2a2

Please sign in to comment.