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() {};

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-algolia

Weekly Downloads

34

Version

1.5.2

License

MIT

Unpacked Size

6.72 kB

Total Files

9

Last publish

Collaborators

  • shaejaz
  • wwalser
  • jkaho
  • mprevell97
  • louishousiaux
  • antoine.gilles
  • eventexperiences_algolia
  • jsok_algolia
  • bhinchley-algolia
  • hugowit
  • alg-admin
  • aymeric.giraudet
  • gavinwade12
  • bhcastle
  • jasonberry
  • scyganek-algolia
  • drodriguln
  • abodelot
  • leviwhalen
  • sfaiqh
  • valentindotxyz
  • fluf
  • instantsearch-bot
  • taylorcjohnson_algolia
  • pjankowski5312
  • raed-algolia
  • dylantientcheu
  • catalgolia
  • morgan-algolia
  • algabet
  • andy_ds
  • bengreenbank
  • alg-bgastinne
  • daltondickalgolia
  • jcohonner-algolia
  • robertmogos
  • mariaalungu
  • emmanuel.fortin
  • ejaldorau
  • dhaya.b
  • lukyvj
  • marielaure
  • haroenv
  • rayrutjes
  • jerska
  • samouss
  • therealwebby
  • francoischalifour
  • jonmontane
  • tkrugg
  • seafoox
  • sylvainh
  • lorrissaintgenez
  • broujo
  • e-krebs
  • kombucha
  • sylvain
  • crawler-team
  • amcdaid106
  • devinalgolia
  • jvenezia
  • otomatik
  • sophiem03
  • sarahdayan
  • maximehuang
  • guitek
  • matthewbond
  • cyril.descossy
  • tatsuro
  • danajeremy
  • mathougui
  • xavdh
  • agdavid
  • rasemotte
  • plnech
  • shortcuts
  • praagyajoshi
  • alphonseb
  • leodau
  • fabienmotte
  • sarahfranc
  • millotp