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.
For feat: #1564
Description
Key Adjustments
Suppress Irrelevant Warnings
"no-warning-comments": "off"
Current:
"no-warning-comments": "error"
Change: Set to
"off"
to preventTODO
,FIXME
, and other notes from triggering CI/CD errors.Reason: These comments are typically reminders and are not critical for CI/CD.
"no-debugger": 0 and "no-console": "off"
Current:
"no-debugger": 1
Change: Set
"no-debugger"
to0
and"no-console": "off"
to avoid flagging debugging and console statements.Reason: Debug and console statements may be intentional for development and usually harmless in non-production branches.
Enable Soft Warnings Instead of Errors
"no-empty": 0
Current:
"no-empty": 1
Change: Set
"no-empty"
to0
to allow empty blocks where intentional.Reason: Empty blocks can occur during early development or debugging stages.
"no-unused-expressions": 0
Current:
"no-unused-expressions": 1
Change: Set to
0
if unused expressions are placeholders or not crucial.Reason: Reduces noise from expressions commonly used in development.
Enable Consistent Warning Levels
"no-invalid-regexp": 2
Current:
"no-invalid-regexp": 1
Change: Set to
2
for strict checking of regular expressions.Reason: Ensures invalid regexes, which can cause crashes, are consistently flagged as errors.
"no-fallthrough": 2
Current:
"no-fallthrough": 1
Change: Set to
2
to ensure proper documentation of intentional fall-through in switch statements.Reason: Helps avoid unintended behavior, essential for a stable CLI.
Disable Non-Essential Rules Temporarily
Current: Set to enforce spacing and padding.
Change: Set to
0
to ignore multiple empty lines and padded blocks.Reason: These are stylistic and not essential for functionality-focused CI/CD checks.
Doc I referred : https://typescript-eslint.io/rules/
PS: I am new in understanding this code repo and workflow there are high chances of wrong understanding from my end, but I will improve as per the requirement.