generated from didinele/typescript-docker-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
3,215 additions
and
2,696 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import common from 'eslint-config-neon/flat/common.js'; | ||
import node from 'eslint-config-neon/flat/node.js'; | ||
import prettier from 'eslint-config-neon/flat/prettier.js'; | ||
import typescript from 'eslint-config-neon/flat/typescript.js'; | ||
import merge from 'lodash.merge'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
const commonFiles = '{js,mjs,cjs,ts,mts,cts,jsx,tsx}'; | ||
|
||
const commonRuleset = merge(...common, { | ||
files: [`**/*${commonFiles}`], | ||
rules: { | ||
'no-eq-null': ['off'], | ||
eqeqeq: ['error', 'always', { null: 'ignore' }], | ||
}, | ||
}); | ||
|
||
const nodeRuleset = merge(...node, { files: [`**/*${commonFiles}`] }); | ||
|
||
const typeScriptRuleset = merge(...typescript, { | ||
files: [`**/*${commonFiles}`], | ||
languageOptions: { | ||
parserOptions: { | ||
warnOnUnsupportedTypeScriptVersion: false, | ||
allowAutomaticSingleRunInference: true, | ||
project: ['tsconfig.eslint.json', 'services/*/tsconfig.eslint.json', 'packages/*/tsconfig.eslint.json'], | ||
}, | ||
}, | ||
rules: { | ||
'@typescript-eslint/consistent-type-definitions': [2, 'interface'], | ||
'@typescript-eslint/naming-convention': [ | ||
2, | ||
{ | ||
selector: 'typeParameter', | ||
format: ['PascalCase'], | ||
custom: { | ||
regex: '^\\w{3,}', | ||
match: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
typescript: { | ||
project: ['tsconfig.eslint.json', 'services/*/tsconfig.eslint.json', 'packages/*/tsconfig.eslint.json'], | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
const prettierRuleset = merge(...prettier, { files: [`**/*${commonFiles}`] }); | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: ['**/node_modules/', '.git/', '**/dist/', '**/coverage/', 'packages/core/src/db.ts'], | ||
}, | ||
commonRuleset, | ||
nodeRuleset, | ||
typeScriptRuleset, | ||
prettierRuleset, | ||
); |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"packageManager": "[email protected]", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"workspaces": [ | ||
"packages/*", | ||
"services/*" | ||
|
@@ -25,21 +26,23 @@ | |
"update": "yarn upgrade-interactive" | ||
}, | ||
"dependencies": { | ||
"prisma": "^5.3.1" | ||
"prisma": "^5.15.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.7.1", | ||
"@commitlint/config-angular": "^17.7.0", | ||
"dotenv-cli": "^7.3.0", | ||
"eslint": "^8.49.0", | ||
"eslint-config-neon": "^0.1.56", | ||
"eslint-formatter-pretty": "^5.0.0", | ||
"husky": "^8.0.3", | ||
"@commitlint/cli": "^19.3.0", | ||
"@commitlint/config-angular": "^19.3.0", | ||
"dotenv-cli": "^7.4.2", | ||
"eslint": "^8.57.0", | ||
"eslint-config-neon": "^0.1.62", | ||
"eslint-formatter-pretty": "^6.0.1", | ||
"husky": "^9.0.11", | ||
"is-ci": "^3.0.1", | ||
"prettier": "^3.0.3", | ||
"prisma-kysely": "^1.7.0", | ||
"rimraf": "^5.0.1", | ||
"turbo": "^1.10.14", | ||
"typescript": "^5.2.2" | ||
"lodash.merge": "^4.6.2", | ||
"prettier": "^3.3.2", | ||
"prisma-kysely": "^1.8.0", | ||
"rimraf": "^5.0.7", | ||
"turbo": "^2.0.4", | ||
"typescript": "^5.4.5", | ||
"typescript-eslint": "^7.13.1" | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/** | ||
* Responsible for caching data in Redis. | ||
*/ | ||
export interface ICache<T> { | ||
export interface ICache<ValueType> { | ||
delete(id: string): Promise<void>; | ||
get(id: string): Promise<T | null>; | ||
getOld(id: string): Promise<T | null>; | ||
get(id: string): Promise<ValueType | null>; | ||
getOld(id: string): Promise<ValueType | null>; | ||
has(id: string): Promise<boolean>; | ||
set(id: string, value: T): Promise<void>; | ||
set(id: string, value: ValueType): Promise<void>; | ||
} |
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
Oops, something went wrong.