发布

  • [OPIK-7237] [CI] fix: drop eslint v9-only --no-warn-ignored flag from fe-eslint hook (#7346)

    frostbyte_neo 发布于 2026-07-06 08:14:02 +00:00

    • [OPIK-7237] [INFRA] fix: drop eslint v9-only --no-warn-ignored flag from fe-eslint hook

    The fe-eslint pre-commit hook (scripts/precommit-fe-lint.sh) passed
    --no-warn-ignored, a flag introduced in eslint v9. The frontend pins
    eslint 8.57.0, which rejects it with a hard parse error before linting
    any file, failing 100% of FE commits and the Code Quality CI eslint gate.

    The flag guarded a "File ignored" warning that cannot fire here: there is
    no .eslintignore, no ignorePatterns in .eslintrc, and the hook only feeds
    files under apps/opik-frontend/src/. Dropping it is a behavioral no-op on
    v8 and restores green commits and CI.

    Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

    • test(precommit): assert fe-eslint omits v9-only --no-warn-ignored

    The wrapper smoke test pinned --no-warn-ignored for the FE hook, which
    locked in the OPIK-6980 bug. Flip it to assert the flag is absent (and
    --max-warnings=0 still present) so the test guards the fix. The TS SDK
    assertion is left as-is: that SDK pins eslint v9.39.2, where the flag is
    valid and genuinely suppresses the generated rest_api/** ignore warnings.

    Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com


    Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

    下载附件