During triage, it was determined that the current status of linter config variables is acceptable and new refinements or smashing of variables will be determined as needed.
Summary:
While the web team collaboration with the content transformation team on one of the tasks T336528, we've recognised an exciting opportunity to enhance code quality and maintainability. Our current linting rule configurations are spread across various methods and maybe files, which can lead to confusion. To tackle this, we propose implementing a fantastic method called getLinterConfig in our codebase. This method will provide configuration values for each linting rule, offering a centralized and efficient approach.
Use Cases:
- Centralized Configuration: By introducing the getLinterConfig method, we can conveniently manage and modify linting rule configurations from a single point of access.
- Collaborative Efforts: Working closely with the content transformation team, we ensure a cohesive and united approach towards improving linting rules together.
- Modularity: Embracing the centralised provider will make it a breeze to add new linting rules without disrupting other parts of the codebase.
Benefits:
- Improved Code Quality: The getLinterConfig method will empower us to uphold consistent and standardized coding practices, raising the overall code quality to new heights.
- Enhanced Productivity: Embracing this centralised approach streamlines the process of updating linting rules, saving valuable development time and effort.
Acceptance Criteria:
- The getLinterConfig method should be implemented in the codebase, bringing us closer to our goal of better linting rule configurations.
- It must effectively return configuration values for all existing linting rules, ensuring a robust solution.
- It must have the ability to return partial config per linting rule.
- Write comprehensive unit tests to ensure the correctness of the getLinterConfig method, making sure it delivers reliable results.
- Collect feedback from both the web and content transformation teams, documents notes for future iterations.