Shared ESLint 9 Flat configuration for TypeScript React projects.
To use this configuration in your project, install the required dependencies:
npm install --save-dev @uvarovag/eslint-config-ts-react eslint@^9.16.0
import reactConfig from '@uvarovag/eslint-config-ts-react'
export default [...reactConfig]
npx eslint '**/*.{ts,tsx}' --fix
To use this configuration in your project, install the necessary dependencies:
npm install --save-dev @uvarovag/prettier-config prettier
"@uvarovag/prettier-config"
npx prettier --write '**/*.{ts,tsx,js,json,css,html,md}'
{
"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
}