File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ module.exports = {
27
27
{
28
28
type : 'object' ,
29
29
properties : {
30
- props : { enum : optionValues } ,
31
- children : { enum : optionValues }
30
+ props : { enum : optionValues , default : optionNever } ,
31
+ children : { enum : optionValues , default : optionNever }
32
32
} ,
33
33
additionalProperties : false
34
34
}
@@ -116,15 +116,15 @@ module.exports = {
116
116
// --------------------------------------------------------------------------
117
117
118
118
return {
119
- JSXExpressionContainer : function ( node ) {
119
+ JSXExpressionContainer : node => {
120
120
const { expression : { type} , parent} = node ;
121
121
122
122
if ( shouldCheckForUnnecessaryCurly ( type , parent , userConfig ) ) {
123
123
lintUnnecessaryCurly ( node ) ;
124
124
}
125
125
} ,
126
126
127
- Literal : function ( node ) {
127
+ Literal : node => {
128
128
const { parent : { type : parentType } } = node ;
129
129
130
130
if ( shouldCheckForMissingCurly ( parentType , userConfig ) ) {
You can’t perform that action at this time.
0 commit comments