Giter Club home page Giter Club logo

eslint-config-hipo-react's Introduction

@hipo/eslint-config-react

Baker's shareable ESLint configuations for REACT & JSX.

Installation

npm i --save-dev @hipo/eslint-config-react

Usage

Set your eslint config to:

{
  "extends": ["@hipo/eslint-config-react"]
}

FOR JS USERS: If you are using JS in your project, you may want to add react/prop-types:"error" to your eslint config.

eslint-config-hipo-react's People

Contributors

bilgeyucel avatar bedirhankaradogan avatar yasincaliskan avatar yigiterdev avatar mucahit avatar tatata96 avatar

Watchers

James Cloos avatar Oktay avatar  avatar Burak Güneli avatar  avatar

eslint-config-hipo-react's Issues

Fix outdated peerDependencies

The eslint peer dependency version should be updated. It is currently at 6.1.0.

npm WARN [email protected] requires a peer of eslint@^4.0.0 but none is installed. You must install peer dependencies yourself.

Wrap strings with curly braces

We need to add a rule to force wrap strings with curly braces in JSX/TSX files.

Maybe prettier does that, let's do some research.

Expected behavior

✅This should be valid

<Button text={"Click Me"}/>

<span>{"Ready"}</span>

❌This shouldn't be valid

<Button text="Click Me"/>

<span>Ready</span>

Getting a ton of "Definition for rule 'react/...' was not found"

"devDependencies": {
    "eslint": "^5.6.0",
    "eslint-config-hipo-base": "github:Hipo/eslint-config-hipo-base",
    "eslint-config-hipo-react": "github:Hipo/eslint-config-hipo-react",
    "eslint-plugin-react": "^7.12.4"
  }
"eslintConfig": {
    "extends": [
      "eslint-config-hipo-base",
      "eslint-config-hipo-react"
    ],
    "env": {
      "browser": true,
      "node": true
    }
  }

But I get a ton of errors related to what's in the title. Attached is a sample output.
sample.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.