-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update node to 20.12.2 * circleci update * circleci to cimg * bump version * update dependencies * ts-node upgrade * typescript 4.4 * dockerfile change * fix some more * not working * best working * multer lts version * multer update again * start typeorm fixes * remove base entity * update all to datamapper * fix tests and factories * seed works * event repository * everything put merch and user handles * all tests work * something * change migration * migrations in datasource * migration fixed hopefully * lint * fix stuff * bad typescript * lockfile * lint * typescript and jest, sometimes works, sometimes doesn't * hopeuflly works * changed yarn lock * updated eslint * faker * rest of packages * remove uneeded types package * eslint small change * package.json datasource: * goofy ah * shuffle stuff --------- Co-authored-by: = <[email protected]>
- Loading branch information
Showing
88 changed files
with
4,930 additions
and
4,684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Container from 'typedi'; | ||
import { DataSource } from 'typeorm'; | ||
import { models } from './models'; | ||
|
||
require('dotenv').config(); | ||
|
||
export const dataSource = new DataSource({ | ||
type: 'postgres', | ||
host: process.env.RDS_HOST, | ||
port: Number(process.env.RDS_PORT), | ||
username: process.env.RDS_USER, | ||
password: process.env.RDS_PASSWORD, | ||
database: process.env.RDS_DATABASE, | ||
entities: models, | ||
migrations: ['migrations/*.ts'], | ||
// synchronize: true, // DO NOT USE IN PRODUCTION, make migrations | ||
}); | ||
|
||
// important for dependency injection for repositories | ||
Container.set(DataSource, dataSource); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
const eslintParser = require('@typescript-eslint/parser'); | ||
|
||
module.exports = [ | ||
{ | ||
// Apply to all files | ||
files: ['**/*.ts', '**/*.tsx'], | ||
ignores: ['node_modules/**', 'build/**', 'logs/**', '.env'], | ||
languageOptions: { | ||
parser: eslintParser, | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
}, | ||
globals: { | ||
browser: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
}, | ||
plugins: { | ||
'@typescript-eslint': require('@typescript-eslint/eslint-plugin'), | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-misused-promises': 'error', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
argsIgnorePattern: 'type|_*', | ||
}, | ||
], | ||
'class-methods-use-this': 'off', | ||
'consistent-return': 'off', | ||
'func-names': 'off', | ||
'global-require': 'off', | ||
'import/no-cycle': 'off', | ||
'import/prefer-default-export': 'off', | ||
'max-classes-per-file': 'off', | ||
'max-len': [ | ||
'error', | ||
{ | ||
code: 120, | ||
}, | ||
], | ||
'no-bitwise': [ | ||
'error', | ||
{ | ||
allow: ['^'], | ||
}, | ||
], | ||
'no-param-reassign': 'off', | ||
'no-unused-vars': 'off', | ||
'object-curly-newline': [ | ||
'error', | ||
{ | ||
consistent: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
// Specific rules for test files | ||
files: ['tests/*.test.ts'], | ||
rules: { | ||
'no-await-in-loop': 'off', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.