Skip to content

Commit d01ae5f

Browse files
committed
init
0 parents  commit d01ae5f

Some content is hidden

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

44 files changed

+12033
-0
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
indent_style = space
6+
indent_size = 2
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true

.env.example

Whitespace-only changes.

.eslintrc

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es2021": true,
6+
"node": true,
7+
"jest": true
8+
},
9+
"parser": "@typescript-eslint/parser",
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"plugin:prettier/recommended",
14+
"prettier"
15+
],
16+
"plugins": [
17+
"import"
18+
],
19+
"parserOptions": {
20+
"project": "tsconfig.json",
21+
"sourceType": "module"
22+
},
23+
"rules": {
24+
"linebreak-style": ["error", "unix"],
25+
"no-empty": 1,
26+
"no-useless-catch": 1,
27+
"no-prototype-builtins": 1,
28+
"no-constant-condition": 0,
29+
"no-useless-escape": 0,
30+
"no-console": "error",
31+
"no-restricted-globals": [
32+
"error",
33+
{
34+
"name": "global",
35+
"message": "Use `globalThis` instead"
36+
},
37+
{
38+
"name": "window",
39+
"message": "Use `globalThis` instead"
40+
}
41+
],
42+
"require-yield": 0,
43+
"eqeqeq": ["error", "smart"],
44+
"spaced-comment": [
45+
"warn",
46+
"always",
47+
{
48+
"line": {
49+
"exceptions": ["-"]
50+
},
51+
"block": {
52+
"exceptions": ["*"]
53+
},
54+
"markers": ["/"]
55+
}
56+
],
57+
"capitalized-comments": [
58+
"warn",
59+
"always",
60+
{
61+
"ignoreInlineComments": true,
62+
"ignoreConsecutiveComments": true
63+
}
64+
],
65+
"curly": [
66+
"error",
67+
"multi-line",
68+
"consistent"
69+
],
70+
"import/order": [
71+
"error",
72+
{
73+
"groups": [
74+
"type",
75+
"builtin",
76+
"external",
77+
"internal",
78+
"index",
79+
"sibling",
80+
"parent",
81+
"object"
82+
],
83+
"pathGroups": [
84+
{
85+
"pattern": "@",
86+
"group": "internal"
87+
},
88+
{
89+
"pattern": "@/**",
90+
"group": "internal"
91+
}
92+
],
93+
"pathGroupsExcludedImportTypes": [
94+
"type"
95+
],
96+
"newlines-between": "never"
97+
}
98+
],
99+
"@typescript-eslint/no-namespace": 0,
100+
"@typescript-eslint/no-explicit-any": 0,
101+
"@typescript-eslint/explicit-module-boundary-types": 0,
102+
"@typescript-eslint/no-unused-vars": [
103+
"warn",
104+
{
105+
"varsIgnorePattern": "^_",
106+
"argsIgnorePattern": "^_"
107+
}
108+
],
109+
"@typescript-eslint/no-inferrable-types": 0,
110+
"@typescript-eslint/no-non-null-assertion": 0,
111+
"@typescript-eslint/no-this-alias": 0,
112+
"@typescript-eslint/no-var-requires": 0,
113+
"@typescript-eslint/no-empty-function": 0,
114+
"@typescript-eslint/no-empty-interface": 0,
115+
"@typescript-eslint/consistent-type-imports": ["error"],
116+
"@typescript-eslint/consistent-type-exports": ["error"],
117+
"no-throw-literal": "off",
118+
"@typescript-eslint/no-throw-literal": "off",
119+
"@typescript-eslint/no-floating-promises": ["error", {
120+
"ignoreVoid": true,
121+
"ignoreIIFE": true
122+
}],
123+
"@typescript-eslint/no-misused-promises": ["error", {
124+
"checksVoidReturn": false
125+
}],
126+
"@typescript-eslint/await-thenable": ["error"],
127+
"@typescript-eslint/naming-convention": [
128+
"error",
129+
{
130+
"selector": "default",
131+
"format": ["camelCase"],
132+
"leadingUnderscore": "allow",
133+
"trailingUnderscore": "allowSingleOrDouble"
134+
},
135+
{
136+
"selector": "function",
137+
"format": ["camelCase", "PascalCase"],
138+
"leadingUnderscore": "allow",
139+
"trailingUnderscore": "allowSingleOrDouble"
140+
},
141+
{
142+
"selector": "variable",
143+
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
144+
"leadingUnderscore": "allow",
145+
"trailingUnderscore": "allowSingleOrDouble"
146+
},
147+
{
148+
"selector": "parameter",
149+
"format": ["camelCase"],
150+
"leadingUnderscore": "allow",
151+
"trailingUnderscore": "allowSingleOrDouble"
152+
},
153+
{
154+
"selector": "typeLike",
155+
"format": ["PascalCase"],
156+
"trailingUnderscore": "allowSingleOrDouble"
157+
},
158+
{
159+
"selector": "enumMember",
160+
"format": ["PascalCase", "UPPER_CASE"]
161+
},
162+
{
163+
"selector": "objectLiteralProperty",
164+
"format": null
165+
},
166+
{
167+
"selector": "typeProperty",
168+
"format": null
169+
}
170+
],
171+
"@typescript-eslint/ban-ts-comment": [
172+
"error",
173+
{
174+
"ts-ignore": "allow-with-description"
175+
}
176+
]
177+
}
178+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow was added by CodeSee. Learn more at https://codesee.io/
2+
# This is v2.0 of this workflow file
3+
on:
4+
push:
5+
branches:
6+
- staging
7+
pull_request_target:
8+
types: [opened, synchronize, reopened]
9+
10+
name: CodeSee
11+
12+
permissions: read-all
13+
14+
jobs:
15+
codesee:
16+
runs-on: ubuntu-latest
17+
continue-on-error: true
18+
name: Analyze the repo with CodeSee
19+
steps:
20+
- uses: Codesee-io/codesee-action@v2
21+
with:
22+
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
23+
codesee-url: https://app.codesee.io

.gitignore

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
/tmp
2+
/dist
3+
.env*
4+
!.env.example
5+
# nix
6+
/result*
7+
/builds
8+
# native
9+
/build
10+
/prebuild
11+
/prepublishOnly
12+
/target
13+
14+
15+
# Logs
16+
logs
17+
*.log
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*
21+
lerna-debug.log*
22+
23+
# Diagnostic reports (https://nodejs.org/api/report.html)
24+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
25+
26+
# Runtime data
27+
pids
28+
*.pid
29+
*.seed
30+
*.pid.lock
31+
32+
# Directory for instrumented libs generated by jscoverage/JSCover
33+
lib-cov
34+
35+
# Coverage directory used by tools like istanbul
36+
coverage
37+
*.lcov
38+
39+
# nyc test coverage
40+
.nyc_output
41+
42+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
43+
.grunt
44+
45+
# Bower dependency directory (https://bower.io/)
46+
bower_components
47+
48+
# node-waf configuration
49+
.lock-wscript
50+
51+
# Compiled binary addons (https://nodejs.org/api/addons.html)
52+
build/Release
53+
54+
# Dependency directories
55+
node_modules/
56+
jspm_packages/
57+
58+
# Snowpack dependency directory (https://snowpack.dev/)
59+
web_modules/
60+
61+
# TypeScript cache
62+
*.tsbuildinfo
63+
64+
# Optional npm cache directory
65+
.npm
66+
67+
# Optional eslint cache
68+
.eslintcache
69+
70+
# Microbundle cache
71+
.rpt2_cache/
72+
.rts2_cache_cjs/
73+
.rts2_cache_es/
74+
.rts2_cache_umd/
75+
76+
# Optional REPL history
77+
.node_repl_history
78+
79+
# Output of 'npm pack'
80+
*.tgz
81+
82+
# Yarn Integrity file
83+
.yarn-integrity
84+
85+
# dotenv environment variables file
86+
.env
87+
.env.test
88+
89+
# parcel-bundler cache (https://parceljs.org/)
90+
.cache
91+
.parcel-cache
92+
93+
# Next.js build output
94+
.next
95+
out
96+
97+
# Nuxt.js build / generate output
98+
.nuxt
99+
dist
100+
101+
# Gatsby files
102+
.cache/
103+
# Comment in the public line in if your project uses Gatsby and not Next.js
104+
# https://nextjs.org/blog/next-9-1#public-directory-support
105+
# public
106+
107+
# vuepress build output
108+
.vuepress/dist
109+
110+
# Serverless directories
111+
.serverless/
112+
113+
# FuseBox cache
114+
.fusebox/
115+
116+
# DynamoDB Local files
117+
.dynamodb/
118+
119+
# TernJS port file
120+
.tern-port
121+
122+
# Stores VSCode versions used for testing VSCode extensions
123+
.vscode-test
124+
125+
# yarn v2
126+
.yarn/cache
127+
.yarn/unplugged
128+
.yarn/build-state.yml
129+
.yarn/install-state.gz
130+
.pnp.*

.npmignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.*
2+
/*.nix
3+
/nix
4+
/tsconfig.json
5+
/tsconfig.build.json
6+
/babel.config.js
7+
/jest.config.js
8+
/scripts
9+
/src
10+
/tests
11+
/tmp
12+
/docs
13+
/benches
14+
/build
15+
/builds
16+
/prebuild
17+
/prepublishOnly
18+
/dist/tsbuildinfo

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Enables npm link
2+
prefix=~/.npm

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"tabWidth": 2
7+
}

0 commit comments

Comments
 (0)