@ganapativs/eslint-config-react

0.2.0 • Public • Published

Base ESLint config for react setup

Automagically add ESLint support to react setup by adding this package.

Install

yarn add eslint @ganapativs/eslint-config-react --dev

Enable ESLint

// Tell editor to use eslint config from '@ganapativs/eslint-config-react'
// package.json
{
    // ...
    "eslintConfig": {
      "extends": "@ganapativs/react"
    },
    // ...
}

Extend ESLint config

# create `.eslintrc` in root folder of the service
# .eslintrc
{
    "extends": "@ganapativs/react",
    "rules": {
        # custom rules here
    }
}

Publish

# Scoped packages are private by default
npm publish --access public

/@ganapativs/eslint-config-react/

    Package Sidebar

    Install

    npm i @ganapativs/eslint-config-react

    Weekly Downloads

    4

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    2.75 kB

    Total Files

    3

    Last publish

    Collaborators

    • ganapativs