-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix examples & enums #778
Closed
dirtycajunrice
wants to merge
11
commits into
main
from
11-21-fix_direct-listings_get-all_example_and_add_descriptions_to_status_enum
Closed
Fix examples & enums #778
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a21f7a7
Fix direct-listings/get-all example and add descriptions to status enum
dirtycajunrice 549660b
fix descriptions, examples, and response types
dirtycajunrice 3d43a81
eslint upgrade + fixes
dirtycajunrice de0d56f
fix weird generator spacing
dirtycajunrice 2de5fd1
fix write descriptions in direct listings
dirtycajunrice 8cbda94
details
dirtycajunrice a6cb6b9
add missing txOverrides and headers to all write calls for english au…
dirtycajunrice 498f02a
rebuild sdk
dirtycajunrice ea22ae6
revert script change for now
dirtycajunrice 18f5888
ran biome check --write
dirtycajunrice bb4fb51
revert all changes in sdk
dirtycajunrice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,3 +152,6 @@ https | |
# Auto generated OpenAPI file | ||
openapi.json | ||
.aider* | ||
|
||
# jetbrains | ||
.idea |
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,37 @@ | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [ | ||
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"), | ||
{ | ||
plugins: { | ||
"@typescript-eslint": typescriptEslint, | ||
}, | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
}, | ||
|
||
rules: { | ||
"no-console": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
|
||
"@typescript-eslint/no-unused-vars": ["error", { | ||
argsIgnorePattern: "^_", | ||
}], | ||
}, | ||
}, | ||
]; |
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 |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
"dev:infra": "docker compose -f ./docker-compose.yml up -d", | ||
"dev:db": "yarn prisma:setup:dev", | ||
"dev:run": "npx nodemon --watch 'src/**/*.ts' --exec 'npx tsx ./src/index.ts' --files src/index.ts", | ||
"build": "rm -rf dist && tsc -p ./tsconfig.json --outDir dist", | ||
"prebuild": "rm -r dist", | ||
"build": "tsc -p ./tsconfig.json --outDir dist", | ||
"build:docker": "docker build . -f Dockerfile -t prod", | ||
"generate:sdk": "npx tsx ./src/scripts/generate-sdk && cd ./sdk && yarn build", | ||
"prisma:setup:dev": "npx tsx ./src/scripts/setup-db.ts", | ||
|
@@ -22,6 +23,7 @@ | |
"start:docker": "docker compose --profile engine --env-file ./.env up --remove-orphans", | ||
"start:docker-force-build": "docker compose --profile engine --env-file ./.env up --remove-orphans --build", | ||
"lint:fix": "eslint --fix 'src/**/*.ts'", | ||
"lint:fix:sdk": "eslint --fix 'sdk/src/**/*.ts", | ||
"test:unit": "vitest", | ||
"test:coverage": "vitest run --coverage", | ||
"copy-files": "cp -r ./src/prisma ./dist/" | ||
|
@@ -84,11 +86,11 @@ | |
"@types/pg": "^8.6.6", | ||
"@types/uuid": "^9.0.1", | ||
"@types/ws": "^8.5.5", | ||
"@typescript-eslint/eslint-plugin": "^5.55.0", | ||
"@typescript-eslint/parser": "^5.55.0", | ||
"@typescript-eslint/eslint-plugin": "^8.15.0", | ||
"@typescript-eslint/parser": "^8.15.0", | ||
"@vitest/coverage-v8": "^2.0.3", | ||
"eslint": "^9.3.0", | ||
"eslint-config-prettier": "^8.7.0", | ||
"eslint": "^9.15.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"openapi-typescript-codegen": "^0.25.0", | ||
"prettier": "^2.8.7", | ||
"typescript": "^5.1.3", | ||
|
@@ -113,5 +115,6 @@ | |
"micromatch": ">=4.0.8", | ||
"secp256k1": ">=4.0.4", | ||
"ws": ">=8.17.1" | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610" | ||
} |
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,3 +1,5 @@ | ||
{ | ||
"presets": ["@babel/preset-typescript"] | ||
"presets": [ | ||
"@babel/preset-typescript" | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use biomejs as standard and had removed eslint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didnt add anything, i just migrated the existing config that already existed to one that didnt break.