Skip to content

Commit 2d695c4

Browse files
committed
Refactor according to feedback
1 parent 6ea4972 commit 2d695c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rules/jsx-curly-brace-presence.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ module.exports = {
2727
{
2828
type: 'object',
2929
properties: {
30-
props: {enum: optionValues},
31-
children: {enum: optionValues}
30+
props: {enum: optionValues, default: optionNever},
31+
children: {enum: optionValues, default: optionNever}
3232
},
3333
additionalProperties: false
3434
}
@@ -116,15 +116,15 @@ module.exports = {
116116
// --------------------------------------------------------------------------
117117

118118
return {
119-
JSXExpressionContainer: function(node) {
119+
JSXExpressionContainer: node => {
120120
const {expression: {type}, parent} = node;
121121

122122
if (shouldCheckForUnnecessaryCurly(type, parent, userConfig)) {
123123
lintUnnecessaryCurly(node);
124124
}
125125
},
126126

127-
Literal: function(node) {
127+
Literal: node => {
128128
const {parent: {type: parentType}} = node;
129129

130130
if (shouldCheckForMissingCurly(parentType, userConfig)) {

0 commit comments

Comments
 (0)