diff --git a/.changeset/wild-mayflies-vanish.md b/.changeset/wild-mayflies-vanish.md new file mode 100644 index 0000000..3c3fa01 --- /dev/null +++ b/.changeset/wild-mayflies-vanish.md @@ -0,0 +1,28 @@ +--- +'eslint-config-seek': minor +--- + +Adds [react/jsx-curly-brace-presence][docs] as an error. +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 +- ++ +``` +```diff +// Unecessary braces around string child +- {'Hello'} ++ Hello +``` +```diff +// Mandatory braces around prop expression +-