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
|
||||
run: yarn install --immutable
|
||||
|
||||
- name: Auto-fix formatting
|
||||
run: yarn lint:fix
|
||||
continue-on-error: true
|
||||
|
||||
- name: Check linting
|
||||
run: yarn lint
|
||||
|
||||
@@ -469,8 +469,8 @@ export function cached<V>(options: CacheOptions<V> & { keyGenerator?: (...args:
|
||||
* Wrapper for function with cache
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line prettier/prettier
|
||||
export function withCache<T extends(...args: unknown[]) => unknown>(
|
||||
// eslint-disable-next-line space-before-function-paren
|
||||
export function withCache<T extends (...args: unknown[]) => unknown>(
|
||||
fn: T,
|
||||
options: CacheOptions<ReturnType<T>> & { keyGenerator?: (...args: Parameters<T>) => string } = {}
|
||||
): T {
|
||||
|
||||
Reference in New Issue
Block a user