1- module . exports = {
2- beforeNode,
3- afterNode,
4- beforeDeclaration,
5- afterDeclaration,
6- } ;
7-
81// eslint-disable-next-line max-params
9- function beforeNode ( comments , previousNode , node , currentInitialIndex ) {
2+ export function beforeNode ( comments , previousNode , node , currentInitialIndex ) {
103 if ( ! previousNode || previousNode . type !== 'comment' ) {
114 return comments ;
125 }
@@ -29,7 +22,7 @@ function beforeNode(comments, previousNode, node, currentInitialIndex) {
2922}
3023
3124// eslint-disable-next-line max-params
32- function afterNode ( comments , nextNode , node , currentInitialIndex ) {
25+ export function afterNode ( comments , nextNode , node , currentInitialIndex ) {
3326 if ( ! nextNode || nextNode . type !== 'comment' ) {
3427 return comments ;
3528 }
@@ -47,7 +40,7 @@ function afterNode(comments, nextNode, node, currentInitialIndex) {
4740}
4841
4942// eslint-disable-next-line max-params
50- function beforeDeclaration ( comments , previousNode , nodeData , currentInitialIndex ) {
43+ export function beforeDeclaration ( comments , previousNode , nodeData , currentInitialIndex ) {
5144 if ( ! previousNode || previousNode . type !== 'comment' ) {
5245 return comments ;
5346 }
@@ -73,7 +66,7 @@ function beforeDeclaration(comments, previousNode, nodeData, currentInitialIndex
7366}
7467
7568// eslint-disable-next-line max-params
76- function afterDeclaration ( comments , nextNode , nodeData , currentInitialIndex ) {
69+ export function afterDeclaration ( comments , nextNode , nodeData , currentInitialIndex ) {
7770 if ( ! nextNode || nextNode . type !== 'comment' ) {
7871 return comments ;
7972 }
0 commit comments