> For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt.

# jsx-equals-spacing

[Added in v0.3.0](https://github.com/web-infra-dev/rslint/releases/tag/v0.3.0)
## Configuration


```ts title=rslint.config.ts
import { defineConfig, reactPlugin } from '@rslint/core';

export default defineConfig([
  reactPlugin.configs.recommended,
  {
    rules: {
      'react/jsx-equals-spacing': 'error',
    },
  },
]);
```

## Rule Details

Enforce or disallow spaces around the `=` sign in JSX attributes.

Examples of **incorrect** code with the default `"never"` option:

```jsx
<Foo name = "value" />
<Foo name= "value" />
<Foo name ="value" />
```

Examples of **correct** code with the default `"never"` option:

```jsx
<Foo name="value" />
```

## Options

- `"never"` (default): Disallow spaces around `=`.
- `"always"`: Require one space on each side of `=`.

## Original Documentation

- [eslint-plugin-react: jsx-equals-spacing](https://github.com/jsx-eslint/eslint-plugin-react/blob/v7.37.5/docs/rules/jsx-equals-spacing.md)
- [Source code](https://github.com/jsx-eslint/eslint-plugin-react/blob/v7.37.5/lib/rules/jsx-equals-spacing.js)
