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:
Renato Alcara
2026-02-15 21:59:51 -03:00
parent 8a93fd2614
commit b3ecba131d
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -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
+2 -2
View File
@@ -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 {