-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to opt-out of eslint-plugin-react #279
Comments
@zcuric, I looked into this and noticed that, in order to remove the warning thrown by And also, we can't remove If @jaredpalmer is on board with this, I'd like to work on a change, but I'm not sure if it's worth. The warning is harmless anyway. |
@arthurdenner Sadly, I'm not experienced in TS that much for a proper contribution to the project, but from what I see, this could be done. |
@zcuric, as I said, it definitely can be done. If you want to work on it, you just have to change the ESLint config that is created on the |
As I understand, react-app is part of dependencies for templates. I think if you move ./src to sub directory and manage dependencies for project in separate package.json from templates, you can get rid of stuff which is not directly required by tsdx itself. I have tried to get rid of react-app myself, but without restructuring directories I could not do it myself. |
@arthurdenner i'd be happy to accept a PR for this |
Current Behavior
tsdx
supportseslint-plugin-react
outof the box. If React is not used this warning pops up:Desired Behavior
Opt-out of
eslint
plugins that are not in used. For example, I'm usingtsdx
to build a logger plugin for a specific library. I don't need.eslintrc
extendingreact-app
, because my work is onlynode
related.Suggested Solution
My suggestion is to remove any dedicated
eslint
plugin except the ones that aretypescript
andprettier
related. User would manually add additional rules to the project if needed, for exampleeslint-plugin-vue
, and configure it in the local.eslintrc
. This waytsdx
remains decoupled from any specific library.Who does this impact? Who is this for?
TypeScript users that develop plugins, libraries for NodeJS.
The text was updated successfully, but these errors were encountered: