RoyLee1224 commented on PR #51666:
URL: https://github.com/apache/airflow/pull/51666#issuecomment-2968110996

   According to 
[eslint-plugin-i18next](https://github.com/edvardchen/eslint-plugin-i18next/blob/main/docs/rules/no-literal-string.md#exclude-and-include),
 seems like we can use `include` to identify those strings, for example:
   
   ```
   "jsx-attributes": {
       "include": ["label", "title", "placeholder", "aria-label"]
   },
   mode: "jsx-only"
   ```
   
   
   I've tested the `jsx-attributes` locally:
   ![CleanShot 2025-06-13 at 04 17 
31@2x](https://github.com/user-attachments/assets/f6bf54d6-eec6-4f85-be22-6fa2c7f7684d)
   
   
   But I found that `mode: "jsx-only"` and `markupOnly: true` cannot be enabled 
at the same time. Perhaps we could switch to `jsx-only` mode when we need to 
perform these more specific checks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to