Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Use a stricter import order
Browse files Browse the repository at this point in the history
Force the order to be builtin, external, internal, parent, sibling
instead of allowing intermingling.
  • Loading branch information
BPScott committed Oct 25, 2018
1 parent 0eb4948 commit 1196748
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
### Changed

* Updated `plugin:shopify/prettier`, `plugin:shopify/react`, and `plugin:shopify/typescript` to use `overrides` ([#173](https://github.com/Shopify/eslint-plugin-shopify/pull/173))
* Update `import/order` rule to enforce ordering of internal, parent and sibling imports ([#189](https://github.com/Shopify/eslint-plugin-shopify/pull/189))

## [25.1.0] - 2018-10-01

Expand Down
2 changes: 1 addition & 1 deletion lib/config/rules/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module.exports = {
'import/order': [
'error',
{
groups: [['builtin', 'external'], ['internal', 'parent', 'sibling']],
groups: ['builtin', 'external', 'internal', 'parent', 'sibling'],
},
],
// Enforce a newline after import statements
Expand Down

0 comments on commit 1196748

Please sign in to comment.