Skip to content

ganapativs/eslint-config-react-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Base ESLint config for react+typescript setup

Resources

Stars

Watchers

Forks

Packages

No packages published