Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 22, 2023
1 parent 762f864 commit e4bc75c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 29 deletions.
28 changes: 0 additions & 28 deletions .changeset/wild-mayflies-vanish.md

This file was deleted.

31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# eslint-config-seek

## 12.1.0

### Minor Changes

- Adds [react/jsx-curly-brace-presence][docs] as an error. ([#130](https://github.com/seek-oss/eslint-config-seek/pull/130))
This removes unnecessary braces around strings in props and children.

It also enforces braces around expressions in props and children.

[docs]: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-brace-presence.md

### Examples

```diff
// Unecessary braces around string prop
- <Column width={'content'}>
+ <Column width="content">
```

```diff
// Unecessary braces around string child
- <Text>{'Hello'}</Text>
+ <Text>Hello</Text>
```

```diff
// Mandatory braces around prop expression
- <Button icon=<IconSearch />>
+ <Button icon={<IconSearch />}>
```

## 12.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-seek",
"version": "12.0.1",
"version": "12.1.0",
"description": "ESLint configuration used by SEEK",
"main": "index.js",
"files": [
Expand Down

0 comments on commit e4bc75c

Please sign in to comment.