muenzpraeger / eslint-plugin-inclusive-language

An ESLint plugin to raise awareness for using inclusive language not only in your codebase, but in life.
MIT License
57 stars 9 forks source link

JSX text nodes support #43

Closed DimaSerhin closed 3 years ago

DimaSerhin commented 3 years ago

JSX support

Hello. Thanks for creating this plugin.

Currently I am using it in typescript app generated via create-react-app and it seems like any text node inside jsx are not linted.

I am wondering if this is something related to my setup or jsx text nodes are not supported.

Example

Screen Shot 2021-06-07 at 16 37 49
github-actions[bot] commented 3 years ago

Welcome! 👋

Thanks you for creating the issue. 🙌 I will come back to this as soon as possible.

muenzpraeger commented 3 years ago

JSX parsing comes from the JSX parser in ESLint. From what it looks like you're correct, it doesn't seem to support text nodes. As that's built-in functionality provides as-is there's not much I can do.