Skip to content

Commit f300271

Browse files
committed
Support validators for interfaces array
1 parent 38a8719 commit f300271

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/node_modules/@stdlib/_tools/repl-txt/validate/lib/register_validators.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ function registerValidators( linter ) {
5454
'returns': [],
5555
'sections': [],
5656
'section': [],
57-
'signature': []
57+
'signature': [],
58+
'interfaces': []
5859
};
5960
config = linter.config;
6061
rules = objectKeys( config );

lib/node_modules/@stdlib/_tools/repl-txt/validate/lib/validate.js

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ function validate( str ) {
5454
debug( 'Successfully generated AST.' );
5555

5656
debug( 'Number of interfaces: %d', asts.length );
57+
for ( j = 0; j < validators.interfaces.length; j++ ) {
58+
debug( 'Rule: %s', validators.interfaces[ j ].id );
59+
validators.interfaces[ j ].validate( asts );
60+
}
5761
for ( i = 0; i < asts.length; i++ ) {
5862
debug( 'Validating interface: %d', i+1 );
5963
ast = asts[ i ];

0 commit comments

Comments
 (0)