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

eslint-config-hapi

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-hapi

Shareable ESLint config for the hapi ecosystem

  • 8.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

eslint-config-hapi

Current Version Build Status via Travis CI Dependencies

Shareable ESLint config for the hapi ecosystem. To use in your project, add eslint-config-hapi and eslint-plugin-hapi to your package.json, then in your ESLint configuration add:

{
  "extends": "eslint-config-hapi"
}

ESLint will automatically insert the eslint-config-, so technically, you can just write "extends": "hapi".

Note: eslint-plugin-hapi is a plugin containing custom hapi linting rules. It is a peer dependency because of the way ESLint handles shareable configs that include plugins and custom rules (see eslint/eslint#3458 and eslint/eslint#2518 for more background).

Working with ES5

By default, eslint-config-hapi enforces several rules that require ES6 features. If you would like to use eslint-config-hapi, but are unable to abandon ES5, you can use ES5 config. To use this config, add eslint-config-hapi and eslint-plugin-hapi to your package.json. Then, in your ESLint configuration add:

{
  "extends": "eslint-config-hapi/lib/es5"
}

Keywords

FAQs

Package last updated on 29 Dec 2015

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