1.4.1 • Published 8 months ago

@uvarovag/eslint-config-ts v1.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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

8 months ago

1.4.0

8 months ago

1.3.0

8 months ago

1.2.0

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.22

9 months ago

1.0.19

9 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.16

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago