@ganapativs/eslint-config-react-ts

0.2.0 • Public • Published

Base ESLint config for react+typescript setup

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

It's required to have tsconfig.json in root folder of the project

Install

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

Enable ESLint

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

Extend ESLint config

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

Publish

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

/@ganapativs/eslint-config-react-ts/

    Package Sidebar

    Install

    npm i @ganapativs/eslint-config-react-ts

    Weekly Downloads

    7

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    3.33 kB

    Total Files

    3

    Last publish

    Collaborators

    • ganapativs