# eslint-plugin-wordpress

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

Latest version **0.1.0** (published 2016-02-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install eslint-plugin-wordpress
pnpm add eslint-plugin-wordpress
yarn add eslint-plugin-wordpress
bun add eslint-plugin-wordpress
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-02-20 |
| First published | 2016-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Stephen Edgar |
| Maintainers | netweb |
| Keywords | code, code style, eslint, eslintplugin, eslint-plugin, eslint-plugin-wordpress, JavaScript, jscs, jshint, jslint, lint, linter, linting, standard, validate, wordpress |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-wordpress
- Repository: https://github.com/ntwb/eslint-plugin-wordpress
- Homepage: https://github.com/ntwb/eslint-plugin-wordpress#readme
- Issues: https://github.com/ntwb/eslint-plugin-wordpress/issues
- npm.io page: https://npm.io/package/eslint-plugin-wordpress

## Dependencies (1)

- [requireindex](https://npm.io/package/requireindex.md) ~1.1.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-02-20

## README

# 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](http://eslint.org):

```
$ 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:

```json
{
    "plugins": [
        "wordpress"
    ]
}
```

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

```js
{
    "plugins": [
        "wordpress"
    ]
}
```

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

```yaml
{
    "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.

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

# Rules

- [space-negation-operator](docs/rules/space-negation-operator.md): Require space after `!` negation operators. See also https://github.com/eslint/eslint/issues/5060

# Ressources

- [WordPress JavaScript coding standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/javascript/)

# Code Sources, References

- ESLint https://github.com/eslint/eslint/blob/master/tests/lib/rules/space-unary-ops.js
- ESLint https://github.com/eslint/eslint/blob/master/lib/rules/space-unary-ops.js

---
_Source: https://npm.io/package/eslint-plugin-wordpress · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
