New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-fanmiles

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-fanmiles

Fanmiles' .eslintrc as an extensible shared config

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-fanmiles

This package provides Fanmiles' .eslintrc as an extensible shared config. https://www.fanmiles.com/

Rules

Ruleset is based on the AirBnB settings, but is customized in these ways:

  • Indentation of 4 spaces
  • Includes chai-friendly-plugin, so expect(1).to.be.equal(1) is not considered as a warning/error
  • Does not encourage adding trailing commas to arrays and objects (e.g. [1,2,] is not allowed)
  • If there are jsdoc comments, check them for validity
  • Emits error if the maximum cyclomatic complexity in a program exceeds 20
  • Relax max-line-length requirements to 120 characters

Usage

Add eslint-config to your devDependencies:

$ npm i -D eslint-config-fanmiles

Now create or update .eslintrc in your project root to include the configuration.

{
    "extends": "fanmiles"
}

ReactJS specific rules are not included by default, yet.

Keywords

FAQs

Package last updated on 27 Feb 2017

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