@@ -32,7 +32,7 @@ const resolveImport = (context, node, { value, range }, currentPackage) => {
3232 return { node, value, path, start, end, currentPackage } ;
3333} ;
3434
35- const pathToImport = path => {
35+ const pathToImport = ( path ) => {
3636 if ( path === '' ) return '.' ;
3737
3838 const normalized = normalize ( path ) . replace ( / \\ / g, '/' ) ;
@@ -42,7 +42,7 @@ const pathToImport = path => {
4242 return normalized ;
4343} ;
4444
45- const findCurrentPackage = context =>
45+ const findCurrentPackage = ( context ) =>
4646 packages . find ( ( { location } ) => isSubPath ( location , context . getFilename ( ) ) ) ;
4747
4848const getImport = ( context , callback ) => {
@@ -51,10 +51,10 @@ const getImport = (context, callback) => {
5151 if ( ! currentPackage ) return { } ;
5252
5353 return {
54- ImportDeclaration : node => {
54+ ImportDeclaration : ( node ) => {
5555 callback ( resolveImport ( context , node , node . source , currentPackage ) ) ;
5656 } ,
57- CallExpression : node => {
57+ CallExpression : ( node ) => {
5858 if (
5959 node . arguments . length > 0 &&
6060 node . arguments [ 0 ] . type === 'Literal' &&
@@ -66,7 +66,7 @@ const getImport = (context, callback) => {
6666 ) ;
6767 }
6868 } ,
69- ImportExpression : node => {
69+ ImportExpression : ( node ) => {
7070 callback ( resolveImport ( context , node , node . source , currentPackage ) ) ;
7171 } ,
7272 } ;
0 commit comments