Skip to content

Commit

Permalink
🔀 Merge pull request #397 from williamchong/feature/typescript
Browse files Browse the repository at this point in the history
🏷️ Feature/typescript
  • Loading branch information
williamchong authored Nov 24, 2022
2 parents 4535e73 + 317d1c8 commit aa3ddba
Show file tree
Hide file tree
Showing 150 changed files with 23,389 additions and 33,051 deletions.
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ jobs:
working_directory: ~/likecoin-api-public
docker:
- image: node:16
resource_class: medium+
steps:
- checkout
# - restore_cache:
Expand Down Expand Up @@ -36,7 +37,7 @@ jobs:
command: npm run test
- run:
name: Upload coverage
command: npm run report-coverage && codecov
command: codecov
# - save_cache:
# key: likecoin-api-public-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
# paths:
Expand Down
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
.git
.gitignore
node_modules/
config
build
dist
webpack-cache
37 changes: 36 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
module.exports = {
extends: 'airbnb-base',
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended'
],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint'
],
settings: {
'import/parsers': {
'@typescript-eslint/parser': [
'.ts',
'.tsx'
]
},
'import/resolver': {
node: {
extensions: [
'.js',
'.jsx',
'.ts',
'.tsx'
]
}
}
},
rules: {
'import/extensions': [
'error',
'ignorePackages',
{
'js': 'never',
'jsx': 'never',
'ts': 'never',
'tsx': 'never'
}
],
'no-console': 'error',
'no-await-in-loop': 'off',
'no-restricted-syntax': [
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ typings/
.next

build/
dist/
config/serviceAccountKey.json
18 changes: 18 additions & 0 deletions ava.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// CI HACK: https://github.com/lovell/sharp/issues/3164
require('sharp');

module.exports = {
require: [
'source-map-support/register',
],
files: [
'test/**/*.test.ts',
],
typescript: {
rewritePaths: {
'test/': 'dist/test/',
'src/': 'dist/src/',
},
compile: false,
},
};
43 changes: 0 additions & 43 deletions backpack.config.js

This file was deleted.

2 changes: 2 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ config.MEDIUM_APP_SECRET = '';
config.MATTERS_APP_ID = '';
config.MATTERS_APP_SECRET = '';

config.SENDGRID_API_KEY = '';

config.REGISTER_LIMIT_WINDOW = 3600000; // 1hour
config.REGISTER_LIMIT_COUNT = 0; // 0 = disable
config.NEW_USER_BONUS_COOLDOWN = 259200000; // 3 days
Expand Down
20 changes: 10 additions & 10 deletions config/serviceAccountKey.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"type": "",
"project_id": "",
"private_key_id": "",
"private_key": "",
"client_email": "",
"client_id": "",
"auth_uri": "",
"token_uri": "",
"auth_provider_x509_cert_url": "",
"client_x509_cert_url": ""
"type": "",
"project_id": "",
"private_key_id": "",
"private_key": "",
"client_email": "",
"client_id": "",
"auth_uri": "",
"token_uri": "",
"auth_provider_x509_cert_url": "",
"client_x509_cert_url": ""
}
Loading

0 comments on commit aa3ddba

Please sign in to comment.