-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding husky precommit and linting
- Loading branch information
1 parent
14b2fc1
commit ef516bd
Showing
19 changed files
with
412 additions
and
387 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bun format | ||
bun test |
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,16 +1,24 @@ | ||
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"lineWidth": 100 | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
} | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"files": { | ||
"ignoreUnknown": true, | ||
"ignore": ["dist/**"] | ||
}, | ||
"json": { | ||
"formatter": { | ||
"enabled": true | ||
} | ||
}, | ||
"formatter": { | ||
"formatWithErrors": true, | ||
"indentStyle": "space", | ||
"enabled": true, | ||
"lineWidth": 100 | ||
}, | ||
"linter": { | ||
"enabled": true | ||
} | ||
} |
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,27 +1,27 @@ | ||
{ | ||
"name": "topsort.js", | ||
"version": "1.0.0", | ||
"description": "", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"main": "src/index.ts", | ||
"author": "Márcio Barbosa <[email protected]>", | ||
"license": "UNLICENSED", | ||
"scripts": { | ||
"build": "bun build", | ||
"test": "bun test", | ||
"doctest": "bun run src/lib/doctest.test.ts", | ||
"format": "biome check", | ||
"format:fix": "biome check --write" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.8.3", | ||
"@supabase/doctest-js": "^0.1.0", | ||
"@types/bun": "^1.1.6", | ||
"msw": "^2.3.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.0.0" | ||
}, | ||
"dependencies": {} | ||
"name": "topsort.js", | ||
"version": "1.0.0", | ||
"description": "", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"main": "src/index.ts", | ||
"author": "Márcio Barbosa <[email protected]>", | ||
"license": "UNLICENSED", | ||
"scripts": { | ||
"build": "bun build", | ||
"test": "bun test", | ||
"doctest": "bun run src/lib/doctest.test.ts", | ||
"format": "biome check", | ||
"format:fix": "biome check --write" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.8.3", | ||
"@supabase/doctest-js": "^0.1.0", | ||
"@types/bun": "^1.1.6", | ||
"msw": "^2.3.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.0.0" | ||
}, | ||
"dependencies": {} | ||
} |
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,6 +1,6 @@ | ||
export const baseURL = "https://api.topsort.com"; | ||
|
||
export const apis = { | ||
auctions: "v2/auctions", | ||
events: "v2/events", | ||
auctions: "v2/auctions", | ||
events: "v2/events", | ||
}; |
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,47 +1,47 @@ | ||
interface Placement { | ||
path: string; | ||
path: string; | ||
} | ||
|
||
export interface Entity { | ||
type: "product"; | ||
id: string; | ||
type: "product"; | ||
id: string; | ||
} | ||
|
||
interface Impression { | ||
resolvedBidId?: string; | ||
entity?: Entity; | ||
additionalAttribution?: Entity; | ||
placement: Placement; | ||
occurredAt: string; | ||
opaqueUserId: string; | ||
id: string; | ||
resolvedBidId?: string; | ||
entity?: Entity; | ||
additionalAttribution?: Entity; | ||
placement: Placement; | ||
occurredAt: string; | ||
opaqueUserId: string; | ||
id: string; | ||
} | ||
|
||
interface Click { | ||
resolvedBidId?: string; | ||
entity?: Entity; | ||
additionalAttribution?: Entity; | ||
placement: Placement; | ||
occurredAt: string; | ||
opaqueUserId: string; | ||
id: string; | ||
resolvedBidId?: string; | ||
entity?: Entity; | ||
additionalAttribution?: Entity; | ||
placement: Placement; | ||
occurredAt: string; | ||
opaqueUserId: string; | ||
id: string; | ||
} | ||
|
||
interface Item { | ||
productId: string; | ||
quantity: number; | ||
unitPrice: number; | ||
productId: string; | ||
quantity: number; | ||
unitPrice: number; | ||
} | ||
|
||
interface Purchase { | ||
occurredAt: string; | ||
opaqueUserId: string; | ||
id: string; | ||
items: Item[]; | ||
occurredAt: string; | ||
opaqueUserId: string; | ||
id: string; | ||
items: Item[]; | ||
} | ||
|
||
export interface TopsortEvent { | ||
impressions?: Impression[]; | ||
clicks?: Click[]; | ||
purchases?: Purchase[]; | ||
impressions?: Impression[]; | ||
clicks?: Click[]; | ||
purchases?: Purchase[]; | ||
} |
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,4 +1,4 @@ | ||
export interface Config { | ||
apiKey: string; | ||
host?: string; | ||
apiKey: string; | ||
host?: string; | ||
} |
Oops, something went wrong.