Skip to content

What is the reason to ignore eslintrc file and use only eslint-config-react-app? #2863

Closed

Description

@someden

What is the reason to ignore eslintrc file and use only eslint-config-react-app?

Activity

  1. gaearon commented on Jul 27, 2017

    @gaearon
    Contributor

    Because we show linting errors very prominently in the terminal and browser console. If we interpreted .eslintrc, people would use some popular configs that are mostly focused on style, and are very noisy. As a result people learning React from such examples would have a very hard time digging through the noise and missing the real errors.

    Instead, we decided that we only use ESLint for finding actual mistakes. That’s what our config is about. If you want to enforce style, you can use Prettier which does this automatically.

    I hope this helps!

  2. someden commented on Jul 27, 2017

    @someden
    Author

    Ok, I understand. Do you plan to add an option for it? Maybe something like this:
    create-react-app my-app --eslint-version my-eslint-config-react-app-fork

  3. locked and limited conversation to collaborators on Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions