Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Option to opt-out of eslint-plugin-react #279

@zcuric

Description

@zcuric

Current Behavior

tsdx supports eslint-plugin-react outof the box. If React is not used this warning pops up:

Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.

Desired Behavior

Opt-out of eslint plugins that are not in used. For example, I'm using tsdx to build a logger plugin for a specific library. I don't need .eslintrc extendingreact-app, because my work is only node related.

Suggested Solution

My suggestion is to remove any dedicated eslint plugin except the ones that are typescript and prettier related. User would manually add additional rules to the project if needed, for example eslint-plugin-vue, and configure it in the local .eslintrc. This way tsdx remains decoupled from any specific library.

Who does this impact? Who is this for?

TypeScript users that develop plugins, libraries for NodeJS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions