eslint-plugin-algolia

1.5.2 • Public • Published

eslint-plugin-algolia

Specific rules that were made by Algolia, mostly for Algolia's project

Usage

npm install --dev eslint-plugin-algolia

yarn add -D eslint-plugin-algolia

Eslint

If you are looking for our shared config, check out eslint-config-algolia instead.

Rules

func-style-toplevel

Will enforce function declaration at the top level of a file.

{
  "rules": {
    "func-style-toplevel": "error"
  }
}

Valid

function bar() {}

if (any) {
  // no longer at top level
  const foo = () => {};
}

Invalid

const foo = () => {};

const foo = function() {};

const foo = function bar() {};

/eslint-plugin-algolia/

    Package Sidebar

    Install

    npm i eslint-plugin-algolia

    Weekly Downloads

    43

    Version

    1.5.2

    License

    MIT

    Unpacked Size

    6.72 kB

    Total Files

    9

    Last publish

    Collaborators

    • lukyvj
    • ejaldorau
    • haroenv
    • rayrutjes
    • jerska
    • samouss
    • therealwebby
    • francoischalifour
    • tkrugg
    • seafoox
    • sylvainh
    • lorrissaintgenez
    • broujo
    • e-krebs
    • kombucha
    • sylvain
    • crawler-team
    • amcdaid106
    • devinalgolia
    • jvenezia
    • otomatik
    • sarahdayan
    • maximehuang
    • guitek
    • matthewbond
    • shaejaz
    • cyril.descossy
    • tatsuro
    • mathougui
    • xavdh
    • agdavid
    • rasemotte
    • plnech
    • shortcuts
    • praagyajoshi
    • alphonseb
    • leodau
    • fabienmotte
    • sarahfranc
    • millotp
    • daltondickalgolia
    • dhaya.b
    • bengreenbank
    • algabet
    • alg-bgastinne
    • emmanuel.fortin
    • dylantientcheu
    • andy_ds
    • robertmogos
    • jcohonner-algolia
    • catalgolia
    • raed-algolia
    • aymeric.giraudet
    • pjankowski5312
    • valentindotxyz
    • eventexperiences_algolia
    • taylorcjohnson_algolia
    • sfaiqh
    • instantsearch-bot
    • fluf
    • leviwhalen
    • abodelot
    • mprevell97
    • jkaho
    • antoine.gilles
    • wwalser
    • bhinchley-algolia
    • louishousiaux
    • jsok_algolia
    • alg-admin
    • hugowit
    • drodriguln
    • scyganek-algolia
    • jasonberry
    • bhcastle
    • gavinwade12
    • algthomasbritton
    • vascobettencourt
    • mariaaalungu
    • cdhawke-algolia
    • felipe-bernal
    • morgan-algolia2
    • julia-francais
    • jcalgo
    • aallam.alg
    • arlnbrln
    • minjaslavkovic
    • cmarguta-algolia
    • harsharora-algolia
    • blaineventurine
    • sarahdayanalgolia
    • georgios.bourikas