1. eslint-config-react-typescript
One config to rule them all
eslint-config-react-typescript
Package: eslint-config-react-typescript
Created by: ruanyl
Last modified: Fri, 15 Jul 2022 17:52:33 GMT
Version: 1.0.10
License: MIT
Downloads: 1,144
Repository: https://github.com/ruanyl/eslint-config-react-typescript

Install

npm install eslint-config-react-typescript
yarn add eslint-config-react-typescript

Eslint lint configuration for TypeScript and React

npm
github-workflow

Installation

$ yarn add -D eslint @typescript-eslint/eslint-plugin eslint-config-react-typescript

How to use

 module.exports = {
  extends: ['eslint-config-react-typescript'],
  env: {
    node: true,
  },
  parserOptions: {
    project: 'tsconfig.json',
    sourceType: 'module',
  },
}

For React TypeScript project:

 module.exports = {
  extends: ['eslint-config-react-typescript/lib/react'],
  env: {
    browser: true,
  },
  parserOptions: {
    project: 'tsconfig.json',
    sourceType: 'module',
  },
}

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin