Socket
Socket
Sign inDemoInstall

@bitovi/eslint-config

Package Overview
Dependencies
15
Maintainers
15
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bitovi/eslint-config

Bitovi's recommended set of ESLint rules


Version published
Weekly downloads
121
decreased by-9.7%
Maintainers
15
Created
Weekly downloads
 

Readme

Source

@bitovi/eslint-config

Bitovi's Recommended ESLint Rule Set

Installation

Run npm install --save-dev @bitovi/eslint-config

Usage

This package ships with several primary configs, containing our full recommendations for that stack. You will usually want to use one of these directly.

  • angular
  • react
  • node

In your Project's ESLint config file, extend one of them.

  extends: [
    "@bitovi/eslint-config/angular",
  ]

Advanced Usage

If you only want a portion of our config or want more fine-grained control, you can access each of our smaller configs direction. In your Project's ESLint config file, extend any of the available configs.

  extends: [
    "@bitovi/eslint-config/configs/rxjs",
    "@bitovi/eslint-config/configs/jest",
  ]

Available Configs

Configangularreact
angular-a11y:white_check_mark:
angular-best-practices:white_check_mark:
base:white_check_mark::white_check_mark:
import:white_check_mark:
jest:white_check_mark::white_check_mark:
karma:white_check_mark:
ngrx:white_check_mark:
react-best-practices:white_check_mark:
rxjs:white_check_mark:
typescript:white_check_mark::white_check_mark:
typescript-strict:white_check_mark:

angular-a11y

RuleError Level
@angular-eslint/template/accessibility-alt-texterror
@angular-eslint/template/accessibility-elements-contenterror
@angular-eslint/template/accessibility-label-has-associated-controlerror
@angular-eslint/template/accessibility-table-scopeerror
@angular-eslint/template/accessibility-valid-ariaerror
@angular-eslint/template/click-events-have-key-eventswarn
@angular-eslint/template/mouse-events-have-key-eventswarn
@angular-eslint/template/no-autofocuswarn
@angular-eslint/template/no-distracting-elementserror
@angular-eslint/template/no-positive-tabindexerror
@bitovi/angular/host-listener-click-events-have-key-eventswarn
@bitovi/angular/host-listener-mouse-events-have-key-eventswarn

angular-best-practices

RuleError Level
@angular-eslint/template/banana-in-boxerror
@angular-eslint/template/button-has-typewarn
@angular-eslint/template/conditional-complexitywarn
@angular-eslint/template/cyclomatic-complexitywarn
@angular-eslint/template/eqeqeqerror
@angular-eslint/template/no-anyerror
@angular-eslint/template/no-call-expressionerror
@angular-eslint/template/no-duplicate-attributeserror
@angular-eslint/template/no-negated-asyncwarn
@angular-eslint/template/use-track-by-functionwarn

base

base config includes eslint:recommended

jest

jest config includes jest/recommended and, depending if you are using angular or react, testing-library/angular or testing-library/react.

RuleError Level
jest/no-exportoff
jest/valid-expectoff

ngrx

ngrx config includes ngrx/recommended if @ngrx/store or @ngrx/component-store version is less than 14. Otherwise, ngrx config includes @ngrx/recommended.

rxjs

rxjs includes rxjs/recommended.

typescript

typescript includes @typescript-eslint/eslint-recommended and @typescript-eslint/recommended.

Connect With US

Come chat with us or ask questions in our Bitovi community Discord.

See what we're up to by following us on Twitter.

FAQs

Last updated on 13 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc