Skip to content

Commit 9c10319

Browse files
brmnclaude
andcommitted
fix: update biome.json for v2.4 compatibility + auto-fix lint
Schema 2.0.6→2.4.5, organizeImports→assist, include→includes. Applied biome auto-fixes (import sorting, formatting). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dc6b5d5 commit 9c10319

34 files changed

Lines changed: 1333 additions & 1163 deletions

biome.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.5/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
66
"useIgnoreFile": true
77
},
8-
"organizeImports": {
9-
"enabled": true
8+
"assist": {
9+
"actions": {
10+
"source": {
11+
"organizeImports": "on"
12+
}
13+
}
1014
},
1115
"linter": {
1216
"enabled": true,
@@ -28,7 +32,6 @@
2832
"lineWidth": 120
2933
},
3034
"files": {
31-
"include": ["src/**/*.ts", "test/**/*.ts"],
32-
"ignore": ["dist", "node_modules"]
35+
"includes": ["src/**/*.ts", "test/**/*.ts"]
3336
}
3437
}

src/api/calendar.ts

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
import type { HttpClient } from '../http.js';
1+
import type { HttpClient } from "../http.js";
22
import type {
3-
CalendarEarningsParams, CalendarEarningsResponse,
4-
CalendarTrendsParams, CalendarTrendsResponse,
5-
CalendarIposParams, CalendarIposResponse,
6-
CalendarSplitsParams, CalendarSplitsResponse,
7-
CalendarDividendsParams, CalendarDividendsData,
8-
} from '../types.js';
3+
CalendarDividendsData,
4+
CalendarDividendsParams,
5+
CalendarEarningsParams,
6+
CalendarEarningsResponse,
7+
CalendarIposParams,
8+
CalendarIposResponse,
9+
CalendarSplitsParams,
10+
CalendarSplitsResponse,
11+
CalendarTrendsParams,
12+
CalendarTrendsResponse,
13+
} from "../types.js";
914

1015
/**
1116
* Calendar API for upcoming and historical corporate events.
@@ -32,7 +37,7 @@ export class CalendarApi {
3237
* ```
3338
*/
3439
async earnings(params: CalendarEarningsParams = {}): Promise<CalendarEarningsResponse> {
35-
return this.http.get('/calendar/earnings', params);
40+
return this.http.get("/calendar/earnings", params);
3641
}
3742

3843
/**
@@ -50,7 +55,7 @@ export class CalendarApi {
5055
* ```
5156
*/
5257
async trends(params: CalendarTrendsParams): Promise<CalendarTrendsResponse> {
53-
return this.http.get('/calendar/trends', params);
58+
return this.http.get("/calendar/trends", params);
5459
}
5560

5661
/**
@@ -68,7 +73,7 @@ export class CalendarApi {
6873
* ```
6974
*/
7075
async ipos(params: CalendarIposParams = {}): Promise<CalendarIposResponse> {
71-
return this.http.get('/calendar/ipos', params);
76+
return this.http.get("/calendar/ipos", params);
7277
}
7378

7479
/**
@@ -86,7 +91,7 @@ export class CalendarApi {
8691
* ```
8792
*/
8893
async splits(params: CalendarSplitsParams = {}): Promise<CalendarSplitsResponse> {
89-
return this.http.get('/calendar/splits', params);
94+
return this.http.get("/calendar/splits", params);
9095
}
9196

9297
/**
@@ -104,6 +109,6 @@ export class CalendarApi {
104109
* ```
105110
*/
106111
async dividends(params: CalendarDividendsParams = {}): Promise<CalendarDividendsData> {
107-
return this.http.get('/calendar/dividends', params);
112+
return this.http.get("/calendar/dividends", params);
108113
}
109114
}

src/api/cboe.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { HttpClient } from '../http.js';
2-
import type { CboeIndexParams, CboeIndexItem, CboeIndexData } from '../types.js';
1+
import type { HttpClient } from "../http.js";
2+
import type { CboeIndexData, CboeIndexItem, CboeIndexParams } from "../types.js";
33

44
/**
55
* CBOE Europe indices API for index listings and historical data.
@@ -25,7 +25,7 @@ export class CboeApi {
2525
* ```
2626
*/
2727
async indices(): Promise<CboeIndexItem[]> {
28-
return this.http.get('/cboe/indices');
28+
return this.http.get("/cboe/indices");
2929
}
3030

3131
/**
@@ -47,6 +47,6 @@ export class CboeApi {
4747
* ```
4848
*/
4949
async index(params: CboeIndexParams): Promise<CboeIndexData> {
50-
return this.http.get('/cboe/index', params);
50+
return this.http.get("/cboe/index", params);
5151
}
5252
}

src/api/corporate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { HttpClient } from '../http.js';
2-
import type { InsiderTransactionsParams, InsiderTransactionItem } from '../types.js';
1+
import type { HttpClient } from "../http.js";
2+
import type { InsiderTransactionItem, InsiderTransactionsParams } from "../types.js";
33

44
export class CorporateApi {
55
constructor(private http: HttpClient) {}
66

77
/** Insider transactions (SEC Form 4): GET /insider-transactions */
88
async insiderTransactions(params: InsiderTransactionsParams = {}): Promise<InsiderTransactionItem[]> {
9-
return this.http.get('/insider-transactions', params);
9+
return this.http.get("/insider-transactions", params);
1010
}
1111
}

src/api/eod.ts

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1-
import type { HttpClient } from '../http.js';
1+
import type { HttpClient } from "../http.js";
22
import type {
3-
Ticker, DateRange, EodParams, EodDataPoint, IntradayParams, IntradayDataPoint,
4-
RealTimeQuote, RealTimeParams, UsQuoteDelayedParams, UsQuoteDelayedResult,
5-
BulkEodParams, BulkEodDataPoint,
6-
DividendDataPoint, SplitDataPoint, HistoricalMarketCapPoint,
7-
TicksParams, TickDataPoint,
8-
} from '../types.js';
3+
BulkEodDataPoint,
4+
BulkEodParams,
5+
DateRange,
6+
DividendDataPoint,
7+
EodDataPoint,
8+
EodParams,
9+
HistoricalMarketCapPoint,
10+
IntradayDataPoint,
11+
IntradayParams,
12+
RealTimeParams,
13+
RealTimeQuote,
14+
SplitDataPoint,
15+
TickDataPoint,
16+
Ticker,
17+
TicksParams,
18+
UsQuoteDelayedParams,
19+
UsQuoteDelayedResult,
20+
} from "../types.js";
921

1022
export class EodApi {
1123
constructor(private http: HttpClient) {}
@@ -27,7 +39,7 @@ export class EodApi {
2739

2840
/** US extended delayed quotes: GET /us-quote-delayed */
2941
async usQuoteDelayed(params: UsQuoteDelayedParams = {}): Promise<UsQuoteDelayedResult[]> {
30-
return this.http.get('/us-quote-delayed', params);
42+
return this.http.get("/us-quote-delayed", params);
3143
}
3244

3345
/** Bulk EOD data for exchange: GET /eod-bulk-last-day/{exchange} */
@@ -52,6 +64,6 @@ export class EodApi {
5264

5365
/** US stock market tick data: GET /ticks */
5466
async ticks(params: TicksParams = {}): Promise<TickDataPoint[]> {
55-
return this.http.get('/ticks', params);
67+
return this.http.get("/ticks", params);
5668
}
5769
}

src/api/exchanges.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
import type { HttpClient } from '../http.js';
2-
import type { Exchange, ExchangeSymbol, ExchangeDetails, ExchangeSymbolsParams, ExchangeDetailsParams, SymbolChangeItem, DateRange } from '../types.js';
1+
import type { HttpClient } from "../http.js";
2+
import type {
3+
DateRange,
4+
Exchange,
5+
ExchangeDetails,
6+
ExchangeDetailsParams,
7+
ExchangeSymbol,
8+
ExchangeSymbolsParams,
9+
SymbolChangeItem,
10+
} from "../types.js";
311

412
/**
513
* Exchanges API for exchange listings, symbols, details, and symbol change history.
@@ -25,7 +33,7 @@ export class ExchangesApi {
2533
* ```
2634
*/
2735
async list(): Promise<Exchange[]> {
28-
return this.http.get('/exchanges-list/');
36+
return this.http.get("/exchanges-list/");
2937
}
3038

3139
/**
@@ -81,6 +89,6 @@ export class ExchangesApi {
8189
* ```
8290
*/
8391
async symbolChangeHistory(params: DateRange = {}): Promise<SymbolChangeItem[]> {
84-
return this.http.get('/symbol-change-history', params);
92+
return this.http.get("/symbol-change-history", params);
8593
}
8694
}

src/api/fundamentals.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
import type { HttpClient } from '../http.js';
2-
import type { Ticker, FundamentalsParams, FundamentalsData, BulkFundamentalsParams, BulkFundamentalsItem } from '../types.js';
1+
import type { HttpClient } from "../http.js";
2+
import type {
3+
BulkFundamentalsItem,
4+
BulkFundamentalsParams,
5+
FundamentalsData,
6+
FundamentalsParams,
7+
Ticker,
8+
} from "../types.js";
39

410
export class FundamentalsApi {
511
constructor(private http: HttpClient) {}

src/api/macro.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
import type { HttpClient } from '../http.js';
2-
import type { MacroIndicatorParams, MacroIndicatorItem, EconomicEventsParams, EconomicEventsResponse } from '../types.js';
1+
import type { HttpClient } from "../http.js";
2+
import type {
3+
EconomicEventsParams,
4+
EconomicEventsResponse,
5+
MacroIndicatorItem,
6+
MacroIndicatorParams,
7+
} from "../types.js";
38

49
export class MacroApi {
510
constructor(private http: HttpClient) {}
@@ -11,6 +16,6 @@ export class MacroApi {
1116

1217
/** Economic events calendar: GET /economic-events */
1318
async economicEvents(params: EconomicEventsParams = {}): Promise<EconomicEventsResponse> {
14-
return this.http.get('/economic-events', params);
19+
return this.http.get("/economic-events", params);
1520
}
1621
}

src/api/news.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
1-
import type { HttpClient } from '../http.js';
2-
import type { NewsParams, NewsArticle, SentimentsParams, SentimentItem, NewsWordWeightsParams, NewsWordWeight } from '../types.js';
1+
import type { HttpClient } from "../http.js";
2+
import type {
3+
NewsArticle,
4+
NewsParams,
5+
NewsWordWeight,
6+
NewsWordWeightsParams,
7+
SentimentItem,
8+
SentimentsParams,
9+
} from "../types.js";
310

411
export class NewsApi {
512
constructor(private http: HttpClient) {}
613

714
/** Financial news: GET /news */
815
async news(params: NewsParams = {}): Promise<NewsArticle[]> {
9-
return this.http.get('/news', params);
16+
return this.http.get("/news", params);
1017
}
1118

1219
/** Sentiment data: GET /sentiments */
1320
async sentiments(params: SentimentsParams = {}): Promise<Record<string, SentimentItem[]>> {
14-
return this.http.get('/sentiments', params);
21+
return this.http.get("/sentiments", params);
1522
}
1623

1724
/** News word weights: GET /news-word-weights */
1825
async newsWordWeights(params: NewsWordWeightsParams = {}): Promise<NewsWordWeight[]> {
19-
return this.http.get('/news-word-weights', params);
26+
return this.http.get("/news-word-weights", params);
2027
}
2128
}

src/api/screening.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
import type { HttpClient } from '../http.js';
2-
import type { ScreenerParams, ScreenerResponse, SearchParams, SearchResult, Ticker, IdMappingParams, IdMappingItem, TechnicalParams, TechnicalDataPoint } from '../types.js';
1+
import type { HttpClient } from "../http.js";
2+
import type {
3+
IdMappingItem,
4+
IdMappingParams,
5+
ScreenerParams,
6+
ScreenerResponse,
7+
SearchParams,
8+
SearchResult,
9+
TechnicalDataPoint,
10+
TechnicalParams,
11+
Ticker,
12+
} from "../types.js";
313

414
export class ScreeningApi {
515
constructor(private http: HttpClient) {}
616

717
/** Stock market screener: GET /screener */
818
async screener(params: ScreenerParams = {}): Promise<ScreenerResponse> {
9-
return this.http.get('/screener', params);
19+
return this.http.get("/screener", params);
1020
}
1121

1222
/** Search stocks/ETFs/bonds: GET /search/{query} */
@@ -16,7 +26,7 @@ export class ScreeningApi {
1626

1727
/** ID mapping (CUSIP/ISIN/FIGI/LEI/CIK): GET /id-mapping */
1828
async idMapping(params: IdMappingParams = {}): Promise<IdMappingItem[]> {
19-
return this.http.get('/id-mapping', params);
29+
return this.http.get("/id-mapping", params);
2030
}
2131

2232
/** Technical indicators: GET /technical/{ticker} */

0 commit comments

Comments
 (0)