style: update eslint rules (#21207)

* style: update eslint rules

* style: fix prefer-object-spread

* style: fix no-lonely-if

* fix: typescript-eslint/no-unnecessary-template-expression

* fix: sort import

* style: apply file filtering to config presets

* revert: changes on pkg

* style: revert

* style: use defineConfig

* style: reorder js plugin in eslint config

* chore: remove obsolete override

* style: fix CodeQL initialization to ensure language matrix is used
This commit is contained in:
Tony
2026-02-23 08:17:37 +08:00
committed by GitHub
parent f7bea67c63
commit 7785a7bde4
19 changed files with 715 additions and 147 deletions

View File

@@ -1,7 +1,9 @@
/* eslint-disable no-console */
import fs from 'fs-extra';
import path from 'node:path';
import { nodeFileTrace } from '@vercel/nft';
import fs from 'fs-extra';
const __dirname = import.meta.dirname;
// !!! if any new dependencies are added, update the Dockerfile !!!