Skip to content

Commit 3b50fa0

Browse files
committed
Full overhaul of codebase
1 parent f2f3c8d commit 3b50fa0

File tree

1,414 files changed

+211584
-20836
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,414 files changed

+211584
-20836
lines changed

.eslintrc.json

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"es2021": true
6+
},
7+
"extends": [
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:prettier/recommended"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"ecmaVersion": "latest",
14+
"sourceType": "module",
15+
"project": [
16+
"./tsconfig.json",
17+
"./packages/**/tsconfig.json",
18+
"./examples/**/tsconfig.json"
19+
]
20+
},
21+
"settings": {
22+
"import/resolver": {
23+
"node": {
24+
"extensions": [".js", ".ts"]
25+
}
26+
}
27+
},
28+
"ignorePatterns": [
29+
"node_modules/",
30+
"submodules/",
31+
"dist/",
32+
"*.js",
33+
"*.jsx",
34+
"vitest.config.ts"
35+
],
36+
"plugins": ["@typescript-eslint", "import", "unused-imports", "prettier"],
37+
"rules": {
38+
"object-shorthand": ["error", "always"],
39+
"import/prefer-default-export": "off",
40+
"import/extensions": [
41+
"error",
42+
"ignorePackages",
43+
{
44+
"js": "never",
45+
"jsx": "never",
46+
"ts": "never",
47+
"tsx": "never"
48+
}
49+
],
50+
"import/order": [
51+
"error",
52+
{
53+
"groups": [
54+
"builtin", // Node.js builtins
55+
"external", // All npm modules
56+
"internal", // Alias for src or other internal paths
57+
["sibling", "parent"], // Relative imports
58+
"index", // import from index files
59+
"object" // object imports (e.g., `import('./foo')`)
60+
],
61+
"pathGroups": [
62+
{
63+
"pattern": "react",
64+
"group": "external",
65+
"position": "before"
66+
},
67+
{
68+
"pattern": "react-*",
69+
"group": "external",
70+
"position": "before"
71+
}
72+
],
73+
"pathGroupsExcludedImportTypes": ["react"],
74+
"newlines-between": "always",
75+
"alphabetize": {
76+
"order": "asc",
77+
"caseInsensitive": true
78+
}
79+
}
80+
],
81+
"import/no-unresolved": "error",
82+
"import/newline-after-import": "error",
83+
"import/no-cycle": [
84+
2,
85+
{
86+
"maxDepth": 4
87+
}
88+
],
89+
"unused-imports/no-unused-imports": "error",
90+
"no-redeclare": "error",
91+
"no-continue": "off",
92+
"no-extra-boolean-cast": "off",
93+
"no-use-before-define": "off",
94+
"no-await-in-loop": "error",
95+
"no-return-await": "error",
96+
"no-restricted-syntax": ["error", "ForInStatement"],
97+
"no-console": [
98+
"error",
99+
{
100+
"allow": ["error", "log"]
101+
}
102+
],
103+
"max-classes-per-file": ["error", 2],
104+
"@typescript-eslint/no-explicit-any": "off",
105+
"@typescript-eslint/no-unused-vars": "error",
106+
"@typescript-eslint/ban-ts-comment": "off"
107+
},
108+
"overrides": [
109+
{
110+
"files": ["**/*.spec.ts"],
111+
"rules": {
112+
"import/no-extraneous-dependencies": "off"
113+
}
114+
}
115+
]
116+
}

.gitignore

+91-51
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1+
# Dependency directories
2+
node_modules/
3+
jspm_packages/
4+
5+
# Optional npm cache directory
6+
.npm
7+
8+
# Optional eslint cache
9+
.eslintcache
10+
11+
# dotenv environment variables file
12+
.env
13+
.env.test
14+
.env.production
15+
16+
# parcel-bundler cache
17+
.cache
18+
.parcel-cache
19+
20+
# Next.js build output
21+
.next
22+
out
23+
24+
# Nuxt.js build / generate output
25+
.nuxt
26+
dist
27+
28+
# Gatsby files
29+
.cache/
30+
public
31+
32+
# vuepress build output
33+
.vuepress/dist
34+
35+
# Serverless directories
36+
.serverless/
37+
38+
# FuseBox cache
39+
.fusebox/
40+
41+
# DynamoDB Local files
42+
.dynamodb/
43+
44+
# TernJS port file
45+
.tern-port
46+
47+
# Stores VSCode versions used for testing VSCode extensions
48+
.vscode-test
49+
50+
# yarn v2
51+
.yarn/cache
52+
.yarn/unplugged
53+
.yarn/build-state.yml
54+
.yarn/install-state.gz
55+
.pnp.*
56+
157
# Logs
258
logs
359
*.log
@@ -37,28 +93,9 @@ bower_components
3793
# Compiled binary addons (https://nodejs.org/api/addons.html)
3894
build/Release
3995

40-
# Dependency directories
41-
node_modules/
42-
jspm_packages/
43-
44-
# TypeScript v1 declaration files
45-
typings/
46-
4796
# TypeScript cache
4897
*.tsbuildinfo
4998

50-
# Optional npm cache directory
51-
.npm
52-
53-
# Optional eslint cache
54-
.eslintcache
55-
56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
6299
# Optional REPL history
63100
.node_repl_history
64101

@@ -68,37 +105,40 @@ typings/
68105
# Yarn Integrity file
69106
.yarn-integrity
70107

71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
75108
# parcel-bundler cache (https://parceljs.org/)
76109
.cache
77-
78-
# Next.js build output
79-
.next
80-
81-
# Nuxt.js build / generate output
82-
.nuxt
83-
dist
84-
85-
# Gatsby files
86-
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88-
# https://nextjs.org/blog/next-9-1#public-directory-support
89-
# public
90-
91-
# vuepress build output
92-
.vuepress/dist
93-
94-
# Serverless directories
95-
.serverless/
96-
97-
# FuseBox cache
98-
.fusebox/
99-
100-
# DynamoDB Local files
101-
.dynamodb/
102-
103-
# TernJS port file
104-
.tern-port
110+
.parcel-cache
111+
112+
# Build output
113+
dist/
114+
build/
115+
116+
# IDE - VSCode
117+
.vscode/*
118+
!.vscode/settings.json
119+
!.vscode/tasks.json
120+
!.vscode/launch.json
121+
!.vscode/extensions.json
122+
123+
# IDE - IntelliJ/WebStorm/etc
124+
.idea/
125+
126+
# macOS
127+
.DS_Store
128+
.AppleDouble
129+
.LSOverride
130+
131+
# Windows
132+
Thumbs.db
133+
Thumbs.db:encryptable
134+
ehthumbs.db
135+
ehthumbs_vista.db
136+
137+
# Linux
138+
*~
139+
140+
# Temporary files
141+
*.swp
142+
*.swo
143+
*.tmp
144+
*.bak

.npmrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
shamefully-hoist=true
2+
link-workspace-packages=deep
3+
# Important! Never install from registry
4+
prefer-workspace-packages=true
5+
# This prevents the examples from having the `workspace:` prefix
6+
save-workspace-protocol=false
7+
auto-install-peers=false

.prettierignore

+17-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
**
1+
node_modules
2+
submodules
3+
coverage
4+
dist
5+
docs
6+
.github
7+
.vscode
8+
.eslintrc.json
9+
.prettierrc.json
10+
.prettierignore
11+
.yaml
12+
tsconfig.json
13+
tsconfig.build.json
14+
vitest.config.ts
15+
README.md
16+
LICENSE
17+
images

.prettierrc.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": false,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"bracketSpacing": true
9+
}

0 commit comments

Comments
 (0)