# Require space after negation operators (space-negation-operator)

WordPress prefers a space after the `!` negation operator, this is also done to conform to the PHP standards.


## Rule Details

The following patterns are considered warnings:

```js
!foo
```

The following patterns are not warnings:

```js
! foo
```

## Further Reading

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