1.4.1 • Published 5 months ago
@uvarovag/eslint-config-ts v1.4.1
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.1
Usage
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}' --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
}
1.4.1
5 months ago
1.4.0
5 months ago
1.3.0
5 months ago
1.2.0
6 months ago
1.1.1
6 months ago
1.1.0
6 months ago
1.0.22
6 months ago
1.0.19
7 months ago
1.0.18
7 months ago
1.0.17
7 months ago
1.0.21
7 months ago
1.0.20
7 months ago
1.0.16
8 months ago
1.0.15
8 months ago
1.0.14
8 months ago
1.0.13
8 months ago
1.0.12
8 months ago
1.0.11
8 months ago
1.0.10
8 months ago
1.0.9
8 months ago
1.0.8
8 months ago
1.0.7
8 months ago
1.0.6
8 months ago
1.0.5
8 months ago
1.0.4
8 months ago
1.0.3
8 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago