Skip to content

Commit cbaafc4

Browse files
authored
Merge pull request #8 from mdingena/v3
Version 3.0
2 parents 11db888 + 2400e3a commit cbaafc4

File tree

254 files changed

+66867
-45087
lines changed

Some content is hidden

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

254 files changed

+66867
-45087
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

.eslintrc

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"root": true,
3+
"env": { "node": true },
4+
"parser": "@typescript-eslint/parser",
5+
"parserOptions": {
6+
"project": ["./tsconfig.json", "./scripts/tsconfig.json"]
7+
},
8+
"plugins": ["@typescript-eslint", "import"],
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:import/recommended",
13+
"plugin:import/typescript",
14+
"prettier"
15+
],
16+
"settings": {
17+
"import/resolver": {
18+
"typescript": {
19+
"extensions": [".js"],
20+
"extensionAlias": {
21+
".js": [".ts"]
22+
},
23+
"project": ["./tsconfig.json"]
24+
}
25+
}
26+
},
27+
"rules": {
28+
"no-return-await": "off",
29+
"@typescript-eslint/return-await": ["error", "always"],
30+
"import/no-unresolved": "error",
31+
"import/extensions": ["error", "never", { "js": "always" }],
32+
"import/order": [
33+
"warn",
34+
{
35+
"alphabetize": { "order": "asc", "caseInsensitive": false },
36+
"groups": ["type", ["builtin", "external", "internal"], "parent", "sibling", "index", "object"],
37+
"newlines-between": "always"
38+
}
39+
]
40+
}
41+
}

.github/workflows/lint-compile-test.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,25 @@ name: Lint, compile and test
33

44
on:
55
push:
6-
branches: [ "main" ]
6+
branches: ['main']
77
pull_request:
8-
branches: [ "main" ]
8+
branches: ['main']
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413

1514
strategy:
1615
matrix:
1716
node-version: [20.x]
1817

1918
steps:
20-
- uses: actions/checkout@v3
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
- run: npm install
26-
- run: npm run lint
27-
- run: npm run compile
28-
- run: npm run test
19+
- uses: actions/checkout@v3
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: npm install --force
25+
- run: npm run lint
26+
- run: npm run compile
27+
- run: npm run test

.gitignore

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

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged
5+
npm run compile

.lintstagedrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"**/*.{js,ts,jsx,tsx,json,css,html}": "prettier --write"
2+
"src/**/*.{js,ts}": ["eslint --cache --fix"],
3+
"+(*.md|src/**/*.{js,ts,json,md})": ["prettier --write"]
34
}

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package-lock.json
22
node_modules/
33
src/
4-
tests/

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
build/
1+
dist/

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"arrowParens": "avoid",
3+
"jsxSingleQuote": true,
34
"printWidth": 120,
45
"quoteProps": "preserve",
56
"semi": true,

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

0 commit comments

Comments
 (0)