chore: formatting cleanup and dependency pruning [v8]#1439
Merged
chore: formatting cleanup and dependency pruning [v8]#1439
Conversation
Globals are already defined in eslint.config.mjs for .cjs files.
Contributor
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR performs maintenance cleanup by removing unused dependencies and standardizing code formatting across the codebase. All removed dependencies (@types/cookie, @types/glob, @types/qs, baseline-browser-mapping, glob, nock, supertest) were verified to be unused in the current codebase.
Key Changes:
- Removed 7 unused devDependencies from
package.json, reducing package footprint - Removed deprecated
/* eslint-env node */comments from Jest configuration files (globals are already defined in ESLint config for.cjsfiles) - Standardized interface formatting across 30+ interface declarations, consolidating multi-line
extendsclauses to single lines for consistency - Applied consistent code formatting to test files and serializers
Impact:
- Smaller dependency tree and faster
npm install - Improved code consistency and readability
- No functional changes to the codebase
- All changes are purely cosmetic/maintenance
Confidence Score: 5/5
- This PR is safe to merge with no risk - purely cosmetic changes with no functional impact
- Score reflects that this is a low-risk maintenance PR with only formatting changes and dependency removals. All removed dependencies were verified as unused, and formatting changes are purely cosmetic with no logic modifications. No custom security rules were violated.
- No files require special attention
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| package.json | 5/5 | Removed 7 unused devDependencies that are no longer referenced in the codebase |
| package-lock.json | 5/5 | Automatically updated to reflect removal of 7 devDependencies from package.json |
| src/common/interfaces/event.interface.ts | 5/5 | Consolidated interface declarations to single lines for better readability |
| src/api-keys/interfaces/create-organization-api-key-options.interface.ts | 5/5 | Reformatted interface with added eslint disable comment for empty object type |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant Lint as ESLint/Prettier
participant Deps as Package Manager
participant Code as TypeScript Interfaces
Dev->>Deps: Remove unused devDependencies
Note over Deps: Remove @types/cookie, @types/glob,<br/>@types/qs, baseline-browser-mapping,<br/>glob, nock, supertest
Deps->>Deps: Update package-lock.json
Dev->>Lint: Remove deprecated eslint-env comments
Note over Lint: Comments removed from .cjs files<br/>(globals already in config)
Dev->>Code: Run formatter on interfaces
Note over Code: Consolidate multi-line interface<br/>declarations to single lines
Code->>Lint: Apply formatting rules
Lint->>Code: Format event.interface.ts (30+ interfaces)
Lint->>Code: Format user-management interfaces
Lint->>Code: Format serializers & spec files
Code->>Dev: All formatting applied
Dev->>Dev: Clean, consistent codebase
mattgd
approved these changes
Jan 8, 2026
nicknisi
added a commit
that referenced
this pull request
Jan 9, 2026
## Summary - Remove unused devDependencies: `@types/cookie`, `@types/glob`, `@types/qs`, `baseline-browser-mapping`, `glob`, `nock`, `supertest` - Remove deprecated `/* eslint-env node */` comments (globals already defined in eslint config for `.cjs` files) - Fix formatting/linting issues across interface files and serializers
nicknisi
added a commit
that referenced
this pull request
Jan 12, 2026
## Summary - Remove unused devDependencies: `@types/cookie`, `@types/glob`, `@types/qs`, `baseline-browser-mapping`, `glob`, `nock`, `supertest` - Remove deprecated `/* eslint-env node */` comments (globals already defined in eslint config for `.cjs` files) - Fix formatting/linting issues across interface files and serializers
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
@types/cookie,@types/glob,@types/qs,baseline-browser-mapping,glob,nock,supertest/* eslint-env node */comments (globals already defined in eslint config for.cjsfiles)