Skip to content

Commit

Permalink
💥 refactor!: Use flat export style.
Browse files Browse the repository at this point in the history
BREAKING CHANGE: default export is gone.
  • Loading branch information
make-github-pseudonymous-again committed Jul 26, 2021
1 parent 2989e45 commit c760227
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
import sort from './sort.js';
import sortTypedDecreasing from './sortTypedDecreasing.js';
import sortTypedDecreasingOptimized from './sortTypedDecreasingOptimized.js';
import sortTypedIncreasing from './sortTypedIncreasing.js';
import sortTypedIncreasingOptimized from './sortTypedIncreasingOptimized.js';

/* eslint import/no-anonymous-default-export: [2, {"allowObject": true}] */
export default {
sort,
sortTypedDecreasing,
sortTypedDecreasingOptimized,
sortTypedIncreasing,
sortTypedIncreasingOptimized,
};

export {
sort,
sortTypedDecreasing,
sortTypedDecreasingOptimized,
sortTypedIncreasing,
sortTypedIncreasingOptimized,
};
export {default as sort} from './sort.js';
export {default as sortTypedDecreasing} from './sortTypedDecreasing.js';
export {default as sortTypedDecreasingOptimized} from './sortTypedDecreasingOptimized.js';
export {default as sortTypedIncreasing} from './sortTypedIncreasing.js';
export {default as sortTypedIncreasingOptimized} from './sortTypedIncreasingOptimized.js';

0 comments on commit c760227

Please sign in to comment.