chore: Implement updated coding standards and TS migrations (frontend codebase setup) #9562
3,882
−212
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.
Update ESLint configurations and introduce new rulesets to align with the newly established coding standards. This ensures enhanced code quality, maintainability, and performance across all development tiers. Includes adjustments to React-specific performance rules and backend logical complexity management.
Integrating the
eslint-plugin-sonarjs
,eslint-plugin-react-perf
, and thecomplexity
rule from ESLint into coding standards: improve code quality, performance, and maintainability. Here are key points explaining how each of these tools contributes to upholding the new coding standards:1. eslint-plugin-sonarjs
2. eslint-plugin-react-perf
3. Complexity Rule (eslint-plugin-complexity)
Server-side Configuration:
eslint-plugin-sonarjs
is included to ensure that both existing and new server-side code adheres to new standards of logic and maintainability.max-lines-per-function
andcomplexity
needs to be updated as per requirementFrontend Configuration:
eslint-plugin-sonarjs
,eslint-plugin-react-perf
is used to focus on the performance aspects of React components, crucial for frontend applications where user interaction and speed are key.complexity
rule is also crucial for managing the logic complexity in interactive UIs, ensuring that components are both efficient and maintainable.