Skip to content
This repository was archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
feat: change entities to generate CTE correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielDeSouzza committed May 18, 2024
1 parent 49fff97 commit 703475a
Show file tree
Hide file tree
Showing 138 changed files with 4,594 additions and 6,536 deletions.
121 changes: 26 additions & 95 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,15 @@
"import/resolver": {
"typescript": {},
"node": {
"extensions": [
".js",
".ts"
]
"extensions": [".js", ".ts"]
}
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module",
"project": [
"./tsconfig.eslint.json"
]
"project": ["./tsconfig.eslint.json"]
},
"extends": [
"prettier",
Expand All @@ -49,58 +44,42 @@
],
"overrides": [
{
"files": [
"main.ts"
],
"files": ["main.ts"],
"rules": {
"unicorn/prefer-top-level-await": "off",
"@typescript-eslint/no-floating-promises": "off"
}
},
{
"files": [
"prisma.service.ts"
],
"files": ["prisma.service.ts"],
"rules": {
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-misused-promises": "off"
}
},
{
"files": [
"test/**"
],
"files": ["test/**"],
"rules": {
"jest/expect-expect": "off"
}
},
{
"files": [
"jest.config.ts",
"commitlint.config.ts"
],
"files": ["jest.config.ts", "commitlint.config.ts"],
"rules": {
"import/no-default-export": "off"
}
},
{
"files": [
"**.js"
],
"files": ["**.js"],
"rules": {
"no-undef": "off",
"unicorn/prefer-module": "off",
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": [
"spec.ts",
"spec.tsx",
"test.ts",
"test.tsx"
],
"files": ["spec.ts", "spec.tsx", "test.ts", "test.tsx"],
"rules": {
"unicorn/prefer-module": "off",
"@typescript-eslint/no-var-requires": "off"
Expand All @@ -113,9 +92,7 @@
}
},
{
"files": [
"**.d.ts"
],
"files": ["**.d.ts"],
"rules": {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-empty-interface": "off",
Expand All @@ -128,36 +105,28 @@
}
},
{
"files": [
"src/helpers/*"
],
"files": ["src/helpers/*"],
"rules": {
"@typescript-eslint/naming-convention": "off"
}
},
{
"files": [
"src/dtos/*"
],
"files": ["src/dtos/*"],
"rules": {
"unicorn/filename-case": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": [
"PascalCase"
],
"format": ["PascalCase"],
"custom": {
"regex": "[A-Z]*DTO$",
"match": true
}
},
{
"selector": "typeAlias",
"format": [
"PascalCase"
],
"format": ["PascalCase"],
"custom": {
"regex": "[A-Z]*DTO$",
"match": true
Expand All @@ -168,6 +137,7 @@
}
],
"rules": {
"unicorn/prefer-math-trunc": "off",
"prettier/prettier": "error",
"jest/valid-expect": "error",
"jest/no-focused-tests": "error",
Expand All @@ -187,28 +157,16 @@
"@darraghor/nestjs-typed/injectable-should-be-provided": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@darraghor/nestjs-typed/should-specify-forbid-unknown-values": "off",
"quote-props": [
"error",
"consistent-as-needed"
],
"arrow-body-style": [
"error",
"as-needed"
],
"quote-props": ["error", "consistent-as-needed"],
"arrow-body-style": ["error", "as-needed"],
"import/no-duplicates": [
"error",
{
"prefer-inline": true
}
],
"import/consistent-type-specifier-style": [
"error",
"prefer-inline"
],
"@typescript-eslint/consistent-type-definitions": [
"error",
"interface"
],
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"import/no-extraneous-dependencies": [
"error",
{
Expand Down Expand Up @@ -291,60 +249,37 @@
"error",
{
"selector": "default",
"format": [
"camelCase",
"PascalCase",
"snake_case",
"UPPER_CASE"
],
"format": ["camelCase", "PascalCase", "snake_case", "UPPER_CASE"],
"filter": {
"regex": "^_.*$",
"match": false
}
},
{
"selector": "variable",
"format": [
"camelCase",
"UPPER_CASE"
]
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": "interface",
"format": [
"PascalCase"
],
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
},
{
"selector": "typeAlias",
"format": [
"PascalCase"
],
"format": ["PascalCase"],
"custom": {
"regex": "[A-Z]*Props$",
"match": true
}
},
{
"selector": "variable",
"types": [
"boolean"
],
"format": [
"PascalCase"
],
"prefix": [
"is",
"should",
"has",
"can",
"did",
"will"
]
"types": ["boolean"],
"format": ["PascalCase"],
"prefix": ["is", "should", "has", "can", "did", "will"]
}
],
"import/extensions": [
Expand Down Expand Up @@ -377,11 +312,7 @@
"/^utils/",
"/^constants/",
"/^styles/",
[
"parent",
"sibling",
"index"
]
["parent", "sibling", "index"]
],
"alphabetize": {
"order": "asc",
Expand Down
Loading

0 comments on commit 703475a

Please sign in to comment.