Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-othree-style

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-othree-style

eslint sharable config for othree

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config-othree-style

  • semistandard + trailing comma on multiline
  • eslint-plugin-no-parameter-e

Why

I love standardjs and semistandard. But I really want trailing comma.

Trailing Comma is not allowed in old JavaScript implementations. But for a long list with tailing comma is easier to maintain.

It's easier to modify a list since every element are in the same format. Reduce the chance produces bug when copy element from old code.

Also, minifier can strip trailing commas, so don't worry about old browsers.

After several monthes later, I start to add my lint rules The first one is eslint-plugin-no-parameter-e. And I am planing to add a more powerfule empty line linter.

Usage

Because deps are based on peerDependency. We need to install all eslin config ourself.

npm install --save-dev eslint-config-othree-style eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node eslint-plugin-no-parameter-e

Add this to esling config:

{
  "extends": "othree-style"
}

Keywords

FAQs

Package last updated on 26 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc