Skip to content

Commit cd5903f

Browse files
committed
feat: initial commit
0 parents  commit cd5903f

36 files changed

+6574
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.{js,json,yml}]
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2

.eslintignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
node_modules
2+
dist
3+
.vscode
4+
tests
5+
__tests__
6+
__mocks__
7+
coverage
8+
jest.config.js
9+
webpack.config.js
10+
.eslintignore
11+
.eslintrc.json
12+
.gitignore
13+
.prettierrc.json
14+
tsconfig.json
15+
yarn-error.log
16+
yarn.lock
17+
package-lock.json
18+
scripts
19+
bin

.eslintrc.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"plugins": [
3+
"@typescript-eslint"
4+
],
5+
"env": {
6+
"browser": true,
7+
"es2021": true
8+
},
9+
"extends": [
10+
"prettier",
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/eslint-recommended",
13+
"plugin:@typescript-eslint/recommended"
14+
],
15+
"parser": "@typescript-eslint/parser",
16+
"parserOptions": {
17+
"project": "./tsconfig.json",
18+
"ecmaVersion": 12,
19+
"sourceType": "module"
20+
},
21+
"rules": {
22+
"max-len": [
23+
2,
24+
80,
25+
4,
26+
{
27+
"ignoreUrls": true,
28+
"ignoreStrings": true,
29+
"ignoreRegExpLiterals": true,
30+
"ignoreTemplateLiterals": true
31+
}
32+
],
33+
"linebreak-style": [
34+
"error",
35+
"unix"
36+
],
37+
"quotes": [
38+
"error",
39+
"double",
40+
{
41+
"avoidEscape": true
42+
}
43+
],
44+
"semi": [
45+
"error",
46+
"always"
47+
],
48+
"@typescript-eslint/consistent-type-imports": 2,
49+
"@typescript-eslint/consistent-type-exports": 2,
50+
"@typescript-eslint/member-delimiter-style": 2,
51+
"@typescript-eslint/no-confusing-non-null-assertion": 2,
52+
"@typescript-eslint/no-misused-new": 2,
53+
"@typescript-eslint/no-require-imports": 2,
54+
"@typescript-eslint/prefer-for-of": 2,
55+
"@typescript-eslint/restrict-plus-operands": 2,
56+
"@typescript-eslint/switch-exhaustiveness-check": 2,
57+
"@typescript-eslint/no-base-to-string": 2,
58+
"@typescript-eslint/prefer-nullish-coalescing": 1,
59+
"@typescript-eslint/require-array-sort-compare": 1,
60+
"@typescript-eslint/no-empty-interface": 1,
61+
"@typescript-eslint/no-this-alias": 0,
62+
"@typescript-eslint/no-non-null-assertion": 0,
63+
"@typescript-eslint/no-explicit-any": 0,
64+
"@typescript-eslint/unbound-method": 0,
65+
"@typescript-eslint/explicit-module-boundary-types": 0,
66+
"no-async-promise-executor": 0,
67+
"@typescript-eslint/no-floating-promises": 0,
68+
"@typescript-eslint/no-empty-function": 0,
69+
"@typescript-eslint/no-namespace": 0,
70+
"@typescript-eslint/ban-ts-comment": 0,
71+
"no-constant-condition": 0,
72+
"no-prototype-builtins": 0,
73+
"no-control-regex": 0,
74+
"@typescript-eslint/ban-types": [
75+
"error",
76+
{
77+
"types": {
78+
"object": false,
79+
"Function": false
80+
},
81+
"extendDefaults": true
82+
}
83+
]
84+
}
85+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
coverage
3+
dist
4+
yarn-error.log
5+
.npmrc

.husky/post-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn git-hook-tasks post-commit

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn git-hook-tasks pre-commit

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn git-hook-tasks pre-push

.npmignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
__mocks__
2+
__tests__
3+
.husky
4+
.vscode
5+
coverage
6+
src
7+
.eslintignore
8+
.eslintrc.json
9+
.gitignore
10+
.prettierrc.json
11+
jest.config.js
12+
yarn-error.log

.prettierrc.json

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

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.codeActionsOnSave": {
4+
"source.organizeImports": true,
5+
"source.fixAll.eslint": true
6+
},
7+
"json.schemas": [
8+
{
9+
"fileMatch": ["git-hook-tasks.config.json"],
10+
"url": "./node_modules/git-hook-tasks/dist/config/json-schema.json"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)