fix(ci): add auto-fix step to lint workflow and fix circular rule conflict
- Add `yarn lint:fix` step before lint check to auto-fix prettier/import-sort formatting issues (runs with continue-on-error to not block) - Fix circular conflict between prettier and space-before-function-paren rule in cache-utils.ts via eslint-disable comment Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -50,5 +50,9 @@ jobs:
|
|||||||
GIT_TERMINAL_PROMPT: 0
|
GIT_TERMINAL_PROMPT: 0
|
||||||
run: yarn install --immutable
|
run: yarn install --immutable
|
||||||
|
|
||||||
|
- name: Auto-fix formatting
|
||||||
|
run: yarn lint:fix
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Check linting
|
- name: Check linting
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
|
|||||||
@@ -469,8 +469,8 @@ export function cached<V>(options: CacheOptions<V> & { keyGenerator?: (...args:
|
|||||||
* Wrapper for function with cache
|
* Wrapper for function with cache
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// eslint-disable-next-line prettier/prettier
|
// eslint-disable-next-line space-before-function-paren
|
||||||
export function withCache<T extends(...args: unknown[]) => unknown>(
|
export function withCache<T extends (...args: unknown[]) => unknown>(
|
||||||
fn: T,
|
fn: T,
|
||||||
options: CacheOptions<ReturnType<T>> & { keyGenerator?: (...args: Parameters<T>) => string } = {}
|
options: CacheOptions<ReturnType<T>> & { keyGenerator?: (...args: Parameters<T>) => string } = {}
|
||||||
): T {
|
): T {
|
||||||
|
|||||||
Reference in New Issue
Block a user