1.1.2 • Published 1 month ago
eslint-config-bondarenko-style v1.1.2
eslint-config-bondarenko-style
Shareable ESLint config.
Installation
# Using npm
npm install --save-dev eslint-config-bondarenko-style
# Using yarn
yarn add --dev eslint-config-bondarenko-style
Required ESLint version >= 8
Configs
Available configs:
- recommended (default)
- typescript
Use the recommended config with other configs.
Usage
default
1) Add to your ESLint config:
{
"extends": [
"eslint-config-bondarenko-style"
]
}
recommended
1) Add to your ESLint config:
{
"extends": [
"eslint-config-bondarenko-style/recommended"
]
}
typescript
1) Install required dependencies:
#Using npm
npm install --save-dev typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser
# Using yarn
yarn add --dev typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser
Required versions: typescript >= 4 @typescript-eslint/eslint-plugin >= 5 @typescript-eslint/parser >= 5
2) Add to your ESLint config:
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": [
"eslint-config-bondarenko-style/recommended",
"eslint-config-bondarenko-style/typescript"
]
}