File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,11 @@ module.exports = [
74
74
if ( node . visibility === 'internal' && node . parent . kind === 'library' && / ^ _ / . test ( node . name ) ) {
75
75
this . error ( node , 'Library internal functions should not have leading underscore' ) ;
76
76
}
77
- if ( node . visibility === 'public' || node . visibility === 'external' && / ^ _ / . test ( node . name ) ) {
78
- this . error ( node , 'Public and external functions should not have leading underscore' ) ;
77
+ if ( node . visibility === 'public' && / ^ _ / . test ( node . name ) ) {
78
+ this . error ( node , 'Public functions should not have leading underscore' ) ;
79
+ }
80
+ if ( node . visibility === 'external' && / ^ _ / . test ( node . name ) ) {
81
+ this . error ( node , 'External functions should not have leading underscore' ) ;
79
82
}
80
83
}
81
84
} ,
You can’t perform that action at this time.
0 commit comments