Skip to content

Commit 3d0b33b

Browse files
committed
TSified
1 parent 2795a75 commit 3d0b33b

Some content is hidden

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

55 files changed

+8058
-26356
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 2
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.eslintignore

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

.eslintrc.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

.eslintrc.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint", "@stylistic", "prettier"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/strict-type-checked",
8+
"plugin:@typescript-eslint/stylistic-type-checked",
9+
"airbnb-base",
10+
"airbnb-typescript/base",
11+
"prettier",
12+
"plugin:@stylistic/disable-legacy"
13+
],
14+
"parserOptions": {
15+
"project": "./tsconfig.json"
16+
},
17+
"rules": {
18+
// Below this line rule exist to remove overlap with prettify
19+
"@stylistic/brace-style": "off",
20+
"@stylistic/indent": "off",
21+
// Above this line rule exist to remove overlap with prettify
22+
"@stylistic/lines-between-class-members": ["error", "always", { "exceptAfterOverload": true }],
23+
"class-methods-use-this": "off",
24+
"no-param-reassign": [
25+
"error",
26+
{
27+
"props": false
28+
}
29+
],
30+
"no-underscore-dangle": "error",
31+
"import/extensions": ["error", "always", { "ignorePackages": true }],
32+
"import/prefer-default-export": "off",
33+
"@typescript-eslint/no-use-before-define": [
34+
"error",
35+
{
36+
"functions": false // functions are hoisted
37+
}
38+
],
39+
"@typescript-eslint/consistent-type-definitions": "off",
40+
"@typescript-eslint/prefer-nullish-coalescing": "off",
41+
"@typescript-eslint/prefer-readonly": "error",
42+
"@typescript-eslint/consistent-type-imports": "error",
43+
"@typescript-eslint/explicit-function-return-type": "error",
44+
"@typescript-eslint/naming-convention": [
45+
"error",
46+
{
47+
"selector": "default",
48+
"format": ["camelCase"]
49+
},
50+
{
51+
"selector": "property",
52+
"format": ["camelCase", "PascalCase"]
53+
},
54+
{
55+
"selector": "variable",
56+
"format": ["camelCase", "UPPER_CASE", "PascalCase"]
57+
},
58+
{
59+
"selector": "parameter",
60+
"format": ["camelCase", "PascalCase"],
61+
"leadingUnderscore": "allow"
62+
},
63+
{
64+
"selector": "typeLike",
65+
"format": ["PascalCase"]
66+
},
67+
{
68+
"selector": "enumMember",
69+
"format": ["PascalCase"]
70+
},
71+
{
72+
"selector": "objectLiteralProperty",
73+
"format": ["camelCase", "PascalCase"]
74+
},
75+
{
76+
"selector": "import",
77+
"format": ["camelCase", "PascalCase"]
78+
},
79+
{
80+
"selector": "classProperty",
81+
"format": ["camelCase"],
82+
"leadingUnderscore": "allow"
83+
}
84+
],
85+
"@typescript-eslint/array-type": [
86+
"error",
87+
{
88+
"default": "array"
89+
}
90+
],
91+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "args": "all" }]
92+
}
93+
}

.gitignore

Lines changed: 77 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,78 @@
1-
**/node_modules
2-
**/.idea
3-
**/.DS_STORE
4-
report
5-
build
6-
tmp/
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
firebase-debug.log*
8+
firebase-debug.*.log*
9+
pnpm-debug.log*
10+
lerna-debug.log*
11+
12+
# Firebase cache
13+
.firebase/
14+
15+
# Runtime data
16+
pids
17+
*.pid
18+
*.seed
19+
*.pid.lock
20+
21+
# Directory for instrumented libs generated by jscoverage/JSCover
22+
lib-cov
23+
24+
# Coverage directory used by tools like istanbul
25+
coverage
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (http://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Dependency directories
43+
node_modules/
44+
45+
# Optional npm cache directory
46+
.npm
47+
48+
# Optional eslint cache
49+
.eslintcache
50+
51+
# Optional REPL history
52+
.node_repl_history
53+
54+
# Output of 'npm pack'
55+
*.tgz
56+
57+
# Yarn Integrity file
58+
.yarn-integrity
59+
60+
# dotenv environment variables file
761
.env
8-
dist
9-
.cache
62+
63+
# junit
64+
coverage
65+
junit.xml
66+
gl-codequality.json
67+
68+
# Apple
69+
.DS_*
70+
71+
# Build output
72+
build/
73+
74+
# Configs and Environments
75+
.npmrc
76+
.npmtoken
77+
.env
78+
.env.*

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
case $- in
5+
*i*) echo This shell is already interactive;;
6+
*) exec < /dev/tty && echo This shell is now interactive;;
7+
esac
8+
9+
npm test && npm run lint && npm run jscpd && npm run build

.jscpd.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"threshold": 0,
3+
"reporters": ["consoleFull"],
4+
"ignore": [
5+
"node_modules/**",
6+
"build/**",
7+
"**/*.test.[tj]s",
8+
"coverage/**",
9+
"**/package.json",
10+
".idea/**"
11+
],
12+
"absolute": true
13+
}

.npmignore

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
**/node_modules
2-
**/.idea
3-
**/.DS_STORE
4-
report
5-
tmp/
6-
.env
7-
dist
8-
.cache
9-
.github
1+
.*
2+
src/
3+
tsconfig.*

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build/
2+
node_modules/
3+
package-lock.json
4+
/html
5+
/coverage
6+
.yo-rc.json

0 commit comments

Comments
 (0)