Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

eslint-plugin-algolia

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

Install

npm i eslint-plugin-algolia

DownloadsWeekly Downloads

172

Version

2.0.0

License

MIT

Unpacked Size

6.68 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar