Skip to content

Conversation

@pawelangelow
Copy link
Contributor

@pawelangelow pawelangelow commented Dec 19, 2025

What

Prettier consistently handles the formatting, so let's enable it for the whole codebase. IMO it's easier to check it commit by commit:

And these are what the automatic fixes did:

Testing

yarn lint and yarn lint --fix


Note

Enable Prettier via ESLint and apply automated formatting across backend, frontend, and tests with minor lint rule/toplevel config tweaks; no functional changes.

  • Tooling/Config:
    • ESLint: Adopt plugin:prettier/recommended, remove redundant prettier plugin entries, refine rule overrides for API/UI/tests, and clean parser options; unify import/order rules.
  • Codebase-wide formatting:
    • Apply Prettier-driven reformatting to UI components, tests, mocks, styles, and Playwright helpers (line wraps, prop/layout reflow, object/array commas, imports, spacing).
    • Minor non-functional tidy-ups (consistent tooltips/text wrapping, type exports, helper signatures, styled-components and JSX normalization).
    • Backend test files similarly reformatted (string wrapping, object literals, arrays) without logic changes.

Written by Cursor Bugbot for commit 755fc10. This will update automatically on new commits. Configure here.

- Cache node_modules, redisinsight/node_modules, and redisinsight/api/node_modules
- Skip yarn install when cache is restored
- Use restore-keys for cross-branch cache fallback
- Add skip-system-deps input to install-all-build-libs action
- Skip libsecret and rpm installation for lint job
- These packages are only needed for Electron builds, not for linting
- Skip libsecret/rpm installation for lint, frontend, and backend tests
- Remove unused inputs: skip-electron-deps, skip-backend-deps, skip-postinstall
- Remove stale TODO comment
- Add lint.yml reusable workflow that runs yarn lint
- Update tests.yml to call lint workflow first
- All test jobs now depend on lint passing
Add inline eslint-disable comments for imports from api/dist
which doesn't exist in CI (clean checkout without build artifacts).
Lint is now run as a blocking step before tests start,
making this Slack-reporting-only step redundant.
- Remove redundant 'prettier' from extends arrays (already included by
  plugin:prettier/recommended)
- Remove redundant 'prettier' from plugins arrays (auto-registered by
  plugin:prettier/recommended)
- Remove deprecated createDefaultProgram option from parserOptions
@github-actions
Copy link
Contributor

Code Coverage - Integration Tests

Status Category Percentage Covered / Total
🟢 Statements 81.52% 16346/20051
🟡 Branches 64.56% 7380/11430
🟡 Functions 70.4% 2289/3251
🟢 Lines 81.16% 15380/18950

@github-actions
Copy link
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.84% 21093/25463
🟡 Branches 68.03% 8878/13051
🟡 Functions 78.03% 5781/7409
🟢 Lines 83.24% 20659/24820

Test suite run success

5487 tests passing in 704 suites.

Report generated by 🧪jest coverage report action from 755fc10

@github-actions
Copy link
Contributor

Code Coverage - Backend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 92.33% 13970/15131
🟡 Branches 74.09% 4216/5690
🟢 Functions 85.89% 2148/2501
🟢 Lines 92.14% 13357/14497

Test suite run success

3009 tests passing in 287 suites.

Report generated by 🧪jest coverage report action from 755fc10

@pawelangelow pawelangelow force-pushed the feature/run-eslint-in-ci branch from e92effd to 030f55b Compare December 19, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants