@infinumjs/eslint-config-react-ts

3.4.0 • Public • Published

eslint-config-react-ts

This package provides Infinum's ESLint React TypeScript shareable config.

Usage

  1. Install the required packages:

    npm install --save-dev eslint eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks @typescript-eslint/eslint-plugin @typescript-eslint/parser @infinumjs/eslint-config-react-ts
  2. Extend your ESLint config:

    {
    	"extends": "@infinumjs/eslint-config-react-ts",
    	"overrides": [
    		{
    			"files": ["*.ts", "*.tsx"],
    			"parserOptions": {
    				"project": ["./tsconfig.json"]
    			}
    		}
    	],
    	"parser": "@typescript-eslint/parser"
    }

License

The MIT License

Credits

@infinumjs/eslint-config-react-ts is maintained and sponsored by Infinum.

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

111

Version

3.4.0

License

MIT

Unpacked Size

2.94 kB

Total Files

5

Last publish

Collaborators

  • infinumcom
  • jjanus
  • danipavic
  • safo6m
  • fvoska
  • darkokukovec