1.4.1 • Published 4 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
4 months ago
1.4.0
4 months ago
1.3.0
4 months ago
1.2.0
5 months ago
1.1.1
5 months ago
1.1.0
5 months ago
1.0.22
5 months ago
1.0.19
6 months ago
1.0.18
6 months ago
1.0.17
6 months ago
1.0.21
6 months ago
1.0.20
6 months ago
1.0.16
7 months ago
1.0.15
7 months ago
1.0.14
7 months ago
1.0.13
7 months ago
1.0.12
7 months ago
1.0.11
7 months ago
1.0.10
7 months ago
1.0.9
7 months ago
1.0.8
7 months ago
1.0.7
7 months ago
1.0.6
7 months ago
1.0.5
7 months ago
1.0.4
7 months ago
1.0.3
7 months ago
1.0.2
7 months ago
1.0.1
7 months ago
1.0.0
7 months ago