-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
The following configuration
'import/order': [
'error',
{
alphabetize: {
order: 'asc'
},
groups: [
['builtin', 'external', 'internal'],
['parent', 'sibling', 'index', 'unknown']
],
'newlines-between': 'always'
}
],
leads to wrong newlines:
import { StatefulPlugin, string, boolean, object } from '@edtr-io/plugin'
import { createIcon, faCode } from '@edtr-io/ui'
import * as React from 'react'
import { createHighlightEditor } from './editor'
import { HighlightRenderer, HighlightRendererProps } from './renderer'
Deactivating alphabetize
leads to correct newlines, i.e. the config
'import/order': [
'error',
{
alphabetize: {
order: 'asc'
},
groups: [
['builtin', 'external', 'internal'],
['parent', 'sibling', 'index', 'unknown']
],
'newlines-between': 'always'
}
leads to
import { StatefulPlugin, string, boolean, object } from '@edtr-io/plugin'
import { createIcon, faCode } from '@edtr-io/ui'
import * as React from 'react'
import { createHighlightEditor } from './editor'
import { HighlightRenderer, HighlightRendererProps } from './renderer'
idpaterson, jhebb and LRNZ09