diff --git a/tests/rules/order.test.ts b/tests/rules/order.test.ts index a7bde29..e283556 100644 --- a/tests/rules/order.test.ts +++ b/tests/rules/order.test.ts @@ -154,6 +154,24 @@ describe('order', () => { errors: [{ messageId: 'needs-newline' }], }, + { + name: 'groups local modules together', + code: dedent` + import prettier from 'eslint-config-prettier' + import xoTypeScript from 'eslint-config-xo-typescript' + import etc from 'eslint-plugin-etc' + import stylistic from './stylistic.js' + `, + output: dedent` + import prettier from 'eslint-config-prettier' + import xoTypeScript from 'eslint-config-xo-typescript' + import etc from 'eslint-plugin-etc' + + import stylistic from './stylistic.js' + `, + errors: [{ messageId: 'needs-newline' }], + }, + { name: 'sorts local paths by dot segments', code: dedent`