File tree 2 files changed +2
-2
lines changed
lib/node_modules/@stdlib/_tools/eslint/rules
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ function main( context ) {
108
108
match = RE_REQUIRE . exec ( tag . description ) ;
109
109
if ( match ) {
110
110
// The main export should be required last, so no `require` calls should follow:
111
- if ( match . index !== tag . description . lastIndexOf ( 'require' ) ) {
111
+ if ( match . index !== tag . description . lastIndexOf ( 'require( ' ) ) {
112
112
report ( 'Example code of main export should require itself last, i.e. contain `require( \'@' + modulePath + '\' )` as the last `require` call' , loc ) ;
113
113
}
114
114
} else {
Original file line number Diff line number Diff line change 19
19
'use strict' ;
20
20
21
21
/**
22
- * ESLint rule enforcing spaces in `require() ` statements.
22
+ * ESLint rule enforcing spaces in `require` statements.
23
23
*
24
24
* @module @stdlib /_tools/eslint/rules/require-spaces
25
25
*
You can’t perform that action at this time.
0 commit comments