PromucFlow_constructor/app/client/src/plugins/Linting
Ayush Pahwa 5af1bbe9f6
feat: feature flag for eslint migration (#36543)
## Description

This PR introduces a feature flag to control the ESLint migration.

Fixes #36542

## Automation

/test js sanity

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/11795470649>
> Commit: ac773e1ccb4a3e67159ac21e4abc757f5f959693
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11795470649&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.JS, @tag.Sanity`
> Spec:
> <hr>Tue, 12 Nov 2024 11:58:31 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new feature flag, `rollout_eslint_enabled`, for managing
ESLint functionality.
- Added an enumeration for linter versions, including `"JSHINT"` and
`"ESLINT"`.
- Implemented a function to dynamically determine the linter version
based on the feature flag.

- **Bug Fixes**
- Enhanced linting error handling by updating the linter version
dynamically instead of using a hardcoded value.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-11-12 17:35:28 +05:30
..
handlers chore: add telemetry for current linter (#36417) 2024-09-20 11:59:08 +08:00
lib/entity chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
linters chore: add telemetry for current linter (#36417) 2024-09-20 11:59:08 +08:00
tests chore: add telemetry for current linter (#36417) 2024-09-20 11:59:08 +08:00
utils feat: feature flag for eslint migration (#36543) 2024-11-12 17:35:28 +05:30
constants.ts feat: feature flag for eslint migration (#36543) 2024-11-12 17:35:28 +05:30
globalData.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
Linter.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
lintTree.ts chore: add telemetry for current linter (#36417) 2024-09-20 11:59:08 +08:00
types.ts chore: add telemetry for current linter (#36417) 2024-09-20 11:59:08 +08:00