Repository navigation
[FSSDK-13494] Update dev dependencies and move to ESLint flat config - #1194
Open
Raju Ahmed (raju-opti) wants to merge 2 commits into
Open
Raju Ahmed (raju-opti) wants to merge 2 commits into
Raju Ahmed (raju-opti) wants to merge 2 commits into
Conversation
- ESLint 8 -> 10 with eslint.config.js (replaces .eslintrc.js and .eslintignore); typescript-eslint 8 replaces @typescript-eslint/* 5. Local rules are registered as an inline plugin, so eslint-plugin-local-rules is removed. - mocha 10 -> 11.8 and nyc 15 -> 17.1, the newest versions that still support Node 18. - Remove unused coveralls-next, ts-loader and webpack. coveralls-next pinned js-yaml 4.2.0; mocha now gets 4.3.2. - Bump @types/node, happy-dom, minimatch, vite, and webdriverio in tests/browser. - Fix code flagged by the new lint rules, including two `not.toHaveBeenCalled` assertions in the decision service spec that never ran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 1 Pipeline job failed
Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 87545e5 | Docs | View more details | Give us feedback! |
…mocha-lcov-reporter - Run `npm update --save`: dev dependencies move to the newest versions their current ranges allow (e.g. rolldown 1.3.3, netinfo 11.5.2, nise 6.1.5, tslib 2.9.1, typescript 4.9.5), and the lockfile picks up newer transitive versions. - Remove mocha-lcov-reporter. Nothing uses it; coverage/lcov.info comes from nyc's lcov reporter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates dev tooling and removes unused dev dependencies. npm audit drops from 26 findings (14 high) to 10 (1 high). Nothing changes for SDK users.
eslint.config.jsreplaces.eslintrc.jsand.eslintignore.typescript-eslint8 replaces@typescript-eslint/*5. The local rules are registered as an inline plugin, soeslint-plugin-local-rulesis removed. v8 renamedno-var-requirestono-require-imports, so the disable comments are updated.no-explicit-anyandno-unused-varsstay warnings; v8's recommended config made them errors.expect(...).not.toHaveBeenCalledlines indecision_service/index.spec.tswere missing(), so they never asserted anything. They now run and pass. Also twoprefer-constfixes inoptimizely_config.tsand anunknowntype inodp_segment_api_manager.ts.coveralls-next: CI uploads coverage with the Coveralls action. It also pinnedjs-yamlto 4.2.0, which had high-severity advisories; mocha now gets 4.3.2.mocha-lcov-reporter:coverage/lcov.infocomes from nyc's lcov reporter.ts-loaderandwebpack: the build istsc+ rolldown.@types/node20,happy-dom21,minimatch11,vite6.4.6, andwebdriverio10 intests/browser. The remaining dev dependencies move to the newest versions their current ranges allow (npm update --save; e.g. rolldown 1.3.3, typescript 4.9.5), and the lockfile picks up newer transitive versions.Node 18 risk:
eslint10,@eslint/js10,happy-dom21 andminimatch11 all declare Node 20+ inengines. Theunit_testsjob runs vitest (happy-dom environment) and lint on Node 18. The Node 18 job on this PR will show whether they still work there. Thenpm updateadds no new Node 20+ packages to that job; the new ones are eslint 10's own dependencies, rolldown's WASM fallback (build only), and react-native, which already needed Node 22.Test plan
npm testpasses (815 mocha, 1137 vitest, lint with no errors), andnpm run buildpasses.npm run coverallswritescoverage/lcov.infofor the Coveralls step.Issues
🤖 Generated with Claude Code