All files / js-import-sort/lib importSort.js

100% Statements 6/6
100% Branches 8/8
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11    2x 6x 1x 5x 1x   4x    
'use strict';
 
module.exports = (a, b) => {
  if (a.startsWith('.') && !b.startsWith('.')) {
    return 1;
  } else if (b.startsWith('.') && !a.startsWith('.')) {
    return -1;
  }
  return a.localeCompare(b);
};