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
56 stars 10 forks source link

Working with vuejs/nuxt #48

Closed MrZyr0 closed 2 years ago

MrZyr0 commented 2 years ago

Hello everyone πŸ‘‹

I am very interested in this plugin for my open-source project SCT.

I want to use it for the frontend, which uses Nuxt.Js 2, but eslint does nothing.

Here is an example using the string "hey guys" as a test: The file index.vue The console output using
eslint --ext \".js,.vue\" --ignore-path .gitignore .
Capture d’écran 2021-10-23 aΜ€ 12 34 26 image
github-actions[bot] commented 2 years ago

Welcome! πŸ‘‹

Thanks you for creating the issue. πŸ™Œ I will come back to this as soon as possible.

muenzpraeger commented 2 years ago

Hey - there are a couple of things:

If you for example add const theMaster = 'test';, that will give a linting warning out-of-the-box.

MrZyr0 commented 2 years ago

Hey, sorry for the late reply.

I don't really understand why your plugin doesn't look in strings πŸ€”. Does it mean that the plugin is only useful for developers who want more inclusive code? But it doesn't impact the result for the client at all?

muenzpraeger commented 2 years ago

As mentioned before, you can lint for strings by enabling a custom configuration.

And I also mentioned that this plugin validates JavaScript code (because ESlint is a JavaScript linter). For other file types you've to investigate the usage of a custom parser for ESlint, like vue-eslint-parser.

MrZyr0 commented 2 years ago

hummm okay, thank you for your precision.

Sorry for the inconvenience