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

@zonedigital/eslint-config-zone

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zonedigital/eslint-config-zone

This package provides Zone's JavaScript style guide as an extensible shared config.

  • 5.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@zonedigital/eslint-config-zone

Part of Zone Frontend npm downloads

This package provides Zone's JavaScript style guide as an extensible shared config.

Installation

npm i @zonedigital/eslint-config-zone

Usage

Add the Zone rules to your eslint config. Be sure to add as the last item.

{
  "extends": [..., "@zonedigital/eslint-config-zone"],
  // ... project config here, if any ...
}

Compat

This config uses eslint-plugin-compat. It lints the browser compatibility of your code via Browserslist (see Zone's browserslist package). Potential browser compatibility issues will be shown as warnings. If you're using babel-env and it is using the same browserslist config to automatically add these polyfills, you can silence the warnings - see Adding polyfills section below.

Adding polyfills

If for example you are using fetch and it is not supported by all the browsers in your support matrix then you can add a polyfill. To tell the linter you have done this, add a reference to the polyfill.

Keywords

FAQs

Package last updated on 16 Nov 2020

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