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

eslint-config-wpcalypso

Package Overview
Dependencies
Maintainers
43
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-wpcalypso

ESLint configuration following WordPress.com's Calypso JavaScript Coding Guidelines

  • 6.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
43
Created
Source

Eslint config wpcalypso

An ESLint configuration following WordPress.com's "Calypso" JavaScript Coding Guidelines.

Usage

You should install this configuration and peer dependencies as devDependencies in your project:

yarn add --dev eslint-config-wpcalypso eslint eslint-plugin-wpcalypso

If you're planning to use the React superset of rules, you should also install eslint-plugin-react:

yarn add --dev eslint-plugin-react

Next, simply extend the configuration from your project's .eslintrc file:

"extends": "wpcalypso"

Or, if your project uses React and you want to opt in to additional React-specific rules, extend the React superset:

"extends": "wpcalypso/react"

Refer to the ESLint documentation on Shareable Configs for more information.

Suggesting Changes

Want to suggest a change to our style guide? Edit the JavaScript Coding Guidelines on the Automattic/wp-calypso repository and submit a pull request.

Want to revise the ESLint rules used here? Edit the index.js file and submit a pull request.

License

GNU General Public License v2.0 or later.

Keywords

FAQs

Package last updated on 07 Jul 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