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.2.1
  • latest
  • 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, with except:

  • Includes chai-friendly-plugin, so expect(1).to.be.equal(1) is not considered as a warning/error

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.

When using NPM v2.x

There are some fundamental differences in the way packages are installed when using NPM v2.x compared to later versions. Since release v1.1, the previously "missing" dependencies are provided as "peerDependencies" which are implicitly installed in this NPM version.

Have a look at https://github.com/npm/npm/blob/master/CHANGELOG.md#user-content-flat-flat-flat for the exact details.

When using Nodejs 4.x

At the time of writing, the applied eslint rules include "'use strict' is unnecessary inside of modules". This can cause issues with older node versions, and/or when not transpiling with babel, etc. See https://github.com/jshint/jshint/issues/924, https://github.com/eslint/eslint/issues/3306, http://stackoverflow.com/questions/32791507/node-js-and-eslint-disagree-on-use-strict, etc.

To be on the safe side: Either use a nodejs release which no longer has es6-features hidden behind command line flags, or make sure to execute code with the 'strict-mode' flag like this: node --use_strict <path/to/file>.

Keywords

FAQs

Package last updated on 06 Jun 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