Shareable ESLint config.
# Using npm
npm install --save-dev eslint-config-bondarenko-style
# Using yarn
yarn add --dev eslint-config-bondarenko-style
Required ESLint version >= 8
Available configs:
- recommended (default)
- typescript
Use the recommended config with other configs.
-
Add to your ESLint config:
{ "extends": [ "eslint-config-bondarenko-style" ] }
-
Add to your ESLint config:
{ "extends": [ "eslint-config-bondarenko-style/recommended" ] }
-
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 -
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" ] }