@uvarovag/eslint-config-ts
v1.4.1
Published
Shared ESLint 9 Flat configuration for TypeScript projects
Maintainers
Readme
eslint-config-ts
Shared ESLint 9 Flat configuration for TypeScript projects.
Installation
To use this configuration in your project, install the required dependencies:
npm install --save-dev @uvarovag/eslint-config-ts eslint@^9.20.1Usage
Step 1: Create a eslint.config.mjs file
import tsConfig from '@uvarovag/eslint-config-ts'
export default [...tsConfig]Step 2: Run ESLint
eslint '**/*.{js,jsx,ts,tsx}' --fixUse together with Prettier
Installation
To use this configuration in your project, install the necessary dependencies:
npm install --save-dev @uvarovag/prettier-config prettierStep 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
}