Skip to content

Kosrotoff/eslint-config-bondarenko-style

Repository files navigation

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

ESLint documentation

Configs

Available configs:

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"
      ]
    }

License

MIT