Skip to content

Commit d3ee7a8

Browse files
committed
Migrated to typescript
1 parent fb3e7a1 commit d3ee7a8

25 files changed

Lines changed: 3304 additions & 1207 deletions

.eslintrc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@typescript-eslint/parser",
33
"env": {
44
"browser": true,
55
"es2021": true,
@@ -10,19 +10,24 @@
1010
"sourceType": "module",
1111
"allowImportExportEverywhere": true
1212
},
13-
"extends": "airbnb-base",
13+
"extends": [
14+
"eslint:recommended",
15+
"plugin:@typescript-eslint/eslint-recommended",
16+
"plugin:@typescript-eslint/recommended"
17+
],
1418
"plugins": [
15-
"import"
19+
"@typescript-eslint"
1620
],
1721
"rules": {
1822
"arrow-body-style": ["error", "always"],
1923
"class-methods-use-this": "off",
2024
"func-names": "off",
2125
"max-len": ["error", {
22-
"code": 100,
26+
"code": 120,
2327
"ignoreComments": true
2428
}],
2529
"prefer-template": "off",
30+
"no-await-in-loop": "off",
2631
"no-console": "off",
2732
"no-control-regex": "off",
2833
"no-new-func": "off",
@@ -32,9 +37,10 @@
3237
"no-underscore-dangle": "off",
3338
"no-undef": "off",
3439
"no-useless-escape": "off",
35-
"import/no-unresolved": ["error", { "ignore": ["^meteor/"] }],
3640
"import/extensions": "off",
3741
"import/no-extraneous-dependencies": "off",
38-
"import/prefer-default-export": "off"
42+
"import/prefer-default-export": "off",
43+
"@typescript-eslint/no-explicit-any": "off",
44+
"@typescript-eslint/ban-ts-comment": "off"
3945
}
4046
}

.gitignore

Lines changed: 65 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,67 @@
1-
*.swp
2-
*~
3-
.DS_Store
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
firebase-debug.log*
8+
9+
# Firebase cache
10+
.firebase
11+
.firebase/
12+
.firebaserc
13+
firebase.json
14+
15+
# Firebase config
16+
17+
# Uncomment this if you'd like others to create their own Firebase project.
18+
# For a team working on the same Firebase project(s), it is recommended to leave
19+
# it commented so all members can deploy to the same project(s) in .firebaserc.
20+
# .firebaserc
21+
22+
# Runtime data
23+
pids
24+
*.pid
25+
*.seed
26+
*.pid.lock
27+
28+
# Directory for instrumented libs generated by jscoverage/JSCover
29+
lib-cov
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (http://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
40+
# Optional npm cache directory
41+
.npm
42+
43+
# Optional eslint cache
44+
.eslintcache
45+
46+
# Optional REPL history
47+
.node_repl_history
48+
49+
# Output of 'npm pack'
50+
*.tgz
51+
52+
# Yarn Integrity file
53+
.yarn-integrity
54+
55+
# dotenv environment variables file
56+
.env
57+
58+
# WebStorm
459
.idea
5-
npm-debug.log
6-
node_modules
60+
.DS_Store
61+
todo.md
62+
63+
# Deployment
64+
dist
765
coverage
66+
module
67+
docs

.npmignore

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
*.swp
2-
*~
3-
*.iml
4-
.*.haste_cache.*
1+
bower_components
2+
node_modules
3+
test
4+
*.log
55
.DS_Store
66
.idea
7-
.babelrc
8-
.eslintrc
9-
npm-debug.log
10-
lib
11-
.editorconfig
7+
examples/
8+
.github
9+
.firebase
10+
.firebase/
11+
.firebaserc
12+
firebase.json
13+
todo.md
14+
dist
15+
.goreleaser.yml
16+
Makefile

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', {targets: {node: 'current'}}],
4+
'@babel/preset-typescript',
5+
],
6+
};

dist/constants.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/id.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)