File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ function componentSourceNameCheck(context, node) {
161161
162162function componentSourceDescriptionCheck ( context , node ) {
163163 const nameProp = checkComponentIsSourceAndReturnTargetProp ( node , "description" ) ;
164- if ( ! nameProp ) return ;
165- if ( ! nameProp ? .value ? .value . startsWith ( "Emit new " ) ) {
164+ if ( ! nameProp || typeof nameProp ?. value ?. value !== 'string' ) return ;
165+ if ( ! nameProp . value . value . startsWith ( "Emit new " ) ) {
166166 context . report ( {
167167 node : nameProp ,
168168 message : "Source descriptions should start with \"Emit new\". See https://pipedream.com/docs/components/guidelines/#source-description" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " eslint-plugin-pipedream" ,
3- "version" : " 0.0.6 " ,
3+ "version" : " 0.0.7 " ,
44 "description" : " ESLint plugin for Pipedream components: https://pipedream.com/docs/components/api/" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments