File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,24 @@ describe('order', () => {
154
154
errors : [ { messageId : 'needs-newline' } ] ,
155
155
} ,
156
156
157
+ {
158
+ name : 'groups local modules together' ,
159
+ code : dedent `
160
+ import prettier from 'eslint-config-prettier'
161
+ import xoTypeScript from 'eslint-config-xo-typescript'
162
+ import etc from 'eslint-plugin-etc'
163
+ import stylistic from './stylistic.js'
164
+ ` ,
165
+ output : dedent `
166
+ import prettier from 'eslint-config-prettier'
167
+ import xoTypeScript from 'eslint-config-xo-typescript'
168
+ import etc from 'eslint-plugin-etc'
169
+
170
+ import stylistic from './stylistic.js'
171
+ ` ,
172
+ errors : [ { messageId : 'needs-newline' } ] ,
173
+ } ,
174
+
157
175
{
158
176
name : 'sorts local paths by dot segments' ,
159
177
code : dedent `
You can’t perform that action at this time.
0 commit comments