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

eslint-plugin-wordpress

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-wordpress

A collection of custom ESLint rules that help enforce JavaScript coding standard in the WordPress project.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
574
decreased by-15.96%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-wordpress

A collection of custom ESLint rules that help enforce JavaScript coding standard in the WordPress project.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-wordpress:

$ npm install eslint-plugin-wordpress --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-wordpress globally.

Usage

Add wordpress to the plugins section of your .eslintrc.json configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "wordpress"
    ]
}

Or add wordpress to the plugins section of your .eslintrc.js configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "wordpress"
    ]
}

Or add wordpress to the plugins section of your .eslintrc.yaml/.eslintrc.yml configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "wordpress"
    ]
}

http://eslint.org/docs/user-guide/configuring.html#configuration-file-formats

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "wordpress/space-negation-operator": 2
    }
}

Rules

Ressources

Code Sources, References

Keywords

FAQs

Package last updated on 20 Feb 2016

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