Skip to content

chore(lint): clear all eslint warnings - #6

Merged
teoboetti merged 3 commits into
masterfrom
chore/lint-cleanup
Oct 6, 2026
Merged

teoboetti merged 3 commits into
masterfrom
chore/lint-cleanup

Conversation

@teoboetti

Copy link
Copy Markdown
Owner

Summary

npm run lint went from 156 warnings to 0.

  • Code warnings (128) fixed with minimal, behaviour-preserving edits across 57 files:
    • eqeqeq: strict equality; null comparisons keep the undefined case where the type allows it.
    • no-param-reassign: parameter renamed and aliased with one let so bodies are unchanged.
    • no-await-in-loop: 15 loops that are retry, polling, or order-dependent keep their sequential await behind a disable comment with a reason. No loop was made concurrent.
    • promise/no-nesting: Android container utility flattened to async/await with the same fallback and rethrow behaviour.
    • Nested ternaries, reduce, index loops, if/else assignments, unused params, and missing return types on exported functions rewritten mechanically.
  • unicorn/filename-case (28): the existing file names are added to the rule's ignore list in .eslintrc.js instead of being renamed, to avoid case-only renames and upstream merge churn.

Verification

  • npm run lint: 0 problems
  • tsc --noEmit: clean
  • npm run build: success
  • npm test: 473 passing

Fix the 128 code warnings reported by gulp lint with minimal,
behaviour-preserving edits: strict equality, no parameter reassignment,
explicit return types on exported functions, flattened promise chains,
and reduce/for-index/nested-ternary rewrites. Loops that are retry,
polling, or order-dependent keep their sequential await behind a
no-await-in-loop disable with a reason.

Add the 28 existing file names that fail unicorn/filename-case to the
rule's ignore list rather than renaming them.
Add a CI workflow that runs lint, build, unit tests and localization
tests on pushes to master and on pull requests. Bump checkout,
setup-node and upload-artifact to v7 in both workflows and let
Dependabot keep GitHub Actions up to date weekly.
The test suites activate the extension through its dist/rn-extension
entry point, which only the webpack production build produces. Run
gulp prod-build before the dev build, matching upstream's validation
pipeline.
@teoboetti
teoboetti merged commit d55594f into master Oct 6, 2026
1 check passed
@teoboetti
teoboetti deleted the chore/lint-cleanup branch October 6, 2026 09:34
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.

1 participant