-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from BinaryStudioAcademy/development
development to production
- Loading branch information
Showing
617 changed files
with
14,048 additions
and
25,378 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 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
18.18 | ||
20.11 |
This file was deleted.
Oops, something went wrong.
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
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,54 @@ | ||
import baseConfig from '../../eslint.config.js'; | ||
|
||
/** @typedef {import("eslint").Linter.FlatConfig} */ | ||
let FlatConfig; | ||
|
||
/** @type {FlatConfig} */ | ||
const ignoresConfig = { | ||
ignores: ['build'] | ||
}; | ||
|
||
/** @type {FlatConfig[]} */ | ||
const overridesConfigs = [ | ||
{ | ||
files: ['knexfile.ts'], | ||
rules: { | ||
'import/no-default-export': ['off'] | ||
} | ||
}, | ||
{ | ||
files: ['jest.config.js'], | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': ['off'], | ||
'@typescript-eslint/no-magic-numbers': ['off'], | ||
'@typescript-eslint/no-unsafe-argument': ['off'], | ||
'@typescript-eslint/no-unsafe-assignment': ['off'], | ||
'@typescript-eslint/no-unsafe-call': ['off'], | ||
'@typescript-eslint/no-unsafe-member-access': ['off'], | ||
'@typescript-eslint/no-unsafe-return': ['off'], | ||
'import/no-default-export': ['off'] | ||
} | ||
}, | ||
{ | ||
files: ['src/db/migrations/**/*.ts'], | ||
rules: { | ||
'unicorn/filename-case': [ | ||
'error', | ||
{ | ||
case: 'snakeCase' | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
files: ['src/libs/modules/controller/controller.module.ts'], | ||
rules: { | ||
'@typescript-eslint/no-magic-numbers': ['off'] | ||
} | ||
} | ||
]; | ||
|
||
/** @type {FlatConfig[]} */ | ||
const config = [...baseConfig, ignoresConfig, ...overridesConfigs]; | ||
|
||
export default config; |
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,3 @@ | ||
import { database } from '~/libs/modules/database/database.js'; | ||
|
||
export default database.environmentsConfig; |
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,12 @@ | ||
import { default as baseConfig } from '../../lint-staged.config.js'; | ||
|
||
/** @type {import('lint-staged').Config} */ | ||
const config = { | ||
...baseConfig, | ||
'**/*.ts': [ | ||
() => 'npm run lint:js -w apps/backend', | ||
() => 'npm run lint:type -w apps/backend' | ||
] | ||
}; | ||
|
||
export default config; |
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,53 @@ | ||
{ | ||
"name": "@thread-js/backend", | ||
"private": true, | ||
"engines": { | ||
"node": "20.11.x", | ||
"npm": "10.2.x" | ||
}, | ||
"type": "module", | ||
"scripts": { | ||
"knex": "cross-env NODE_OPTIONS=\"--loader ts-paths-esm-loader\" knex", | ||
"migrate:dev": "npm run knex migrate:latest", | ||
"migrate:dev:make": "npm run knex migrate:make -- -x ts", | ||
"migrate:dev:down": "npm run knex migrate:down", | ||
"migrate:dev:rollback": "npm run knex migrate:rollback -- --all", | ||
"migrate:dev:unlock": "npm run knex migrate:unlock", | ||
"migrate:dev:reset": "npm run migrate:dev:rollback && npm run migrate:dev", | ||
"seed:run": "npm run knex seed:run", | ||
"start:dev": "tsx watch ./src/index.ts", | ||
"lint:type": "npx tsc --noEmit", | ||
"lint:js": "npx eslint . --max-warnings=0", | ||
"lint": "concurrently \"npm:lint:*\"", | ||
"build": "tsc && tsc-alias", | ||
"pretest": "cross-env NODE_ENV=test npm run migrate:dev", | ||
"test": "cross-env NODE_ENV=test node --experimental-vm-modules --expose-gc --no-compilation-cache ../../node_modules/jest/bin/jest.js --config jest.config.js --runInBand --forceExit --detectOpenHandles", | ||
"test:auth": "npm run test -- --verbose --rootDir=tests/modules/auth/" | ||
}, | ||
"dependencies": { | ||
"@fastify/static": "7.0.4", | ||
"@thread-js/shared": "*", | ||
"convict": "6.2.4", | ||
"dotenv": "16.4.5", | ||
"fastify": "4.27.0", | ||
"knex": "3.1.0", | ||
"objection": "3.1.4", | ||
"pg": "8.12.0", | ||
"pino": "9.1.0", | ||
"qs": "6.12.1" | ||
}, | ||
"devDependencies": { | ||
"@faker-js/faker": "8.4.1", | ||
"@jest/globals": "29.7.0", | ||
"@types/convict": "6.1.6", | ||
"@types/jest": "29.5.12", | ||
"@types/pg": "8.11.6", | ||
"@types/qs": "6.9.15", | ||
"cross-env": "7.0.3", | ||
"jest": "29.7.0", | ||
"pino-pretty": "11.2.0", | ||
"ts-jest": "29.1.4", | ||
"ts-paths-esm-loader": "1.4.3", | ||
"tsx": "4.15.1" | ||
} | ||
} |
Oops, something went wrong.