npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eslint-plugin-readable

v0.0.4

Published

Make your JavaScript more readable

Downloads

9

Readme

eslint-plugin-readable

Make your JavaScript more readable.

total downloads of eslint-plugin-readable eslint-plugin-readable's License latest version of eslint-plugin-readable coverage status of github.com/YounGoat/eslint-plugin-readable dependencies of github.com/YounGoat/eslint-plugin-readable devDependencies of github.com/YounGoat/eslint-plugin-readable build status of github.com/YounGoat/eslint-plugin-readable star github.com/YounGoat/eslint-plugin-readable

Links

Rules

Notes:

  1. Option name "-" means the rule's option may be a direct value instead of an object.
  2. Default value "-" means that this option has no default value.

readable/const-name

Require const name to be UPPER_CASE.

| Option Type | Name | Default Value | Desc | | :------------- | :------------- | :------------- | :------------- | | Array | except | - | const names to be ignored |

readable/function-lines

Require number of lines in a function to be no more than max.

| Option Type | Name | Default Value | Desc | | :------------- | :------------- | :------------- | :------------- | | number | - | 40 | max lines each function | | number | max | 40 | max lines each function | | boolean | skipBlankLines | true | whether to skip blank lines | | boolean | skipComments | true | whether to skip comments |

readable/function-name

Require function name to be camelCase.

| Option Type | Name | Default Value | Desc | | :------------- | :------------- | :------------- | :------------- | | Array | except | - | function names to be ignored |

readable/loop-counter

Require counter variable used in for-statement to be single lowercase character.

readable/loop-nesting

Require depth of loop nesting to be LE a fixed number.

| Option Type | Name | Default Value | Desc | | :------------- | :------------- | :------------- | :------------- | | number | - | 4 | max depth of loops | | number | max | 4 | max depth of loops |

readable/param-number

Require number of function params to be LE a fixed number.

| Option Type | Name | Default Value | Desc | | :------------- | :------------- | :------------- | :------------- | | number | - | 4 | max length of parameters | | number | max | 4 | max length of parameters |

readable/property-name

Require property name to be camelCase.

| Option Type | Name | Default Value | Desc | | :------------- | :------------- | :------------- | :------------- | | Array | except | - | property names to be ignored |

readable/space-in-brackets

Require matching spaces inside brackets couple.

readable/space-in-parens

Require matching spaces inside parenthese couple.

readable/var-name

Require property name to be camelCase.

| Option Type | Name | Default Value | Desc | | :------------- | :------------- | :------------- | :------------- | | Array | except | - | variable names to be ignored |