@uvarovag/eslint-config-ts-react v2.4.1
eslint-config-ts-react
Shared ESLint 9 Flat configuration for TypeScript React projects.
Installation
To use this configuration in your project, install the required dependencies:
npm install --save-dev @uvarovag/eslint-config-ts-react eslint@^9.20.1
Usage
Step 1: Create a eslint.config.mjs
file
import reactConfig from '@uvarovag/eslint-config-ts-react'
export default [...reactConfig]
Step 2: Run ESLint
eslint '**/*.{js,jsx,ts,tsx}' --fix
Use together with Prettier
Installation
To use this configuration in your project, install the necessary dependencies:
npm install --save-dev @uvarovag/prettier-config prettier
Step 1: Create a .prettierrc
file
"@uvarovag/prettier-config"
Step 2: Format your code
prettier --write '**/*.{ts,tsx,js,json,css,html,md}'
Use Prettier and ESLint in Visual Studio Code
Step 1: Install Plugins
Step 2: Add the following to settings.json in VSCode
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.requireConfig": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"eslint.experimental.useFlatConfig": true
}
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago