Neocon Propaganda Machine

    @bitovi/eslint-config

    1.4.1 • Public • Published

    @bitovi/eslint-config

    Bitovi's Recommended ESLint Rule Set

    Installation

    Run npm install --save-dev @bitovi/eslint-config or npm i -D @bitovi/eslint-config

    Usage

    In your Project's ESLint config file, extend any of the available rules.

      extends: [
        '@bitovi/eslint-config/angular', // includes all angular recommended rules, see Available Rules below
        '@bitovi/eslint-config/rules/rxjs', // for specific rule usage, in this example the rxjs rules
      ]
    

    Available Rules

    Rule angular react
    angular-a11y
    angular-best-practices
    base
    jest
    jsx
    karma
    ngrx
    rxjs
    typescript

    angular-a11y

    Rule Error Level
    @angular-eslint/template/accessibility-alt-text error
    @angular-eslint/template/accessibility-elements-content error
    @angular-eslint/template/accessibility-label-has-associated-control error
    @angular-eslint/template/accessibility-table-scope error
    @angular-eslint/template/accessibility-valid-aria error
    @angular-eslint/template/click-events-have-key-events warn
    @angular-eslint/template/mouse-events-have-key-events warn
    @angular-eslint/template/no-autofocus warn
    @angular-eslint/template/no-distracting-elements error
    @angular-eslint/template/no-positive-tabindex error
    @bitovi/angular/host-listener-click-events-have-key-events warn
    @bitovi/angular/host-listener-mouse-events-have-key-events warn

    angular-best-practices

    Rule Error Level
    @angular-eslint/template/banana-in-box error
    @angular-eslint/template/button-has-type warn
    @angular-eslint/template/conditional-complexity warn
    @angular-eslint/template/cyclomatic-complexity warn
    @angular-eslint/template/eqeqeq error
    @angular-eslint/template/no-any error
    @angular-eslint/template/no-call-expression error
    @angular-eslint/template/no-duplicate-attributes error
    @angular-eslint/template/no-negated-async warn
    @angular-eslint/template/use-track-by-function warn

    base

    base rule includes eslint:recommended

    jest

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

    Rule Error Level
    jest/no-export off
    jest/valid-expect off

    karma

    to-do

    ngrx

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

    rxjs

    rxjs includes rxjs/recommended.

    typescript

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

    Keywords

    none

    Install

    npm i @bitovi/eslint-config

    DownloadsWeekly Downloads

    3

    Version

    1.4.1

    License

    MIT

    Unpacked Size

    15.6 kB

    Total Files

    19

    Last publish

    Collaborators

    • bitovi-os
    • bitovi-core-os
    • mickmcgrath13
    • phillipskevin
    • tehfedaykin
    • rlmcneary2
    • mhaynie_bitovi
    • fabioemoutinho
    • christopherjbaker
    • justinbmeyer
    • cherif_b
    • connorg
    • jazzy_michael
    • alishouman