File tree Expand file tree Collapse file tree 2 files changed +18
-20
lines changed Expand file tree Collapse file tree 2 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 1
1
import type { TSESTree } from '@typescript-eslint/types'
2
2
3
3
import type { SortingNode } from '../types/sorting-node'
4
+ import type { Options } from './sort-maps/types'
4
5
5
6
import {
6
7
partitionByCommentJsonSchema ,
@@ -30,26 +31,6 @@ import { sortNodes } from '../utils/sort-nodes'
30
31
import { complete } from '../utils/complete'
31
32
import { pairwise } from '../utils/pairwise'
32
33
33
- type Options = [
34
- Partial < {
35
- partitionByComment :
36
- | {
37
- block ?: string [ ] | boolean | string
38
- line ?: string [ ] | boolean | string
39
- }
40
- | string [ ]
41
- | boolean
42
- | string
43
- type : 'alphabetical' | 'line-length' | 'natural' | 'custom'
44
- specialCharacters : 'remove' | 'trim' | 'keep'
45
- locales : NonNullable < Intl . LocalesArgument >
46
- partitionByNewLine : boolean
47
- order : 'desc' | 'asc'
48
- ignoreCase : boolean
49
- alphabet : string
50
- } > ,
51
- ]
52
-
53
34
type MESSAGE_ID = 'unexpectedMapElementsOrder'
54
35
55
36
let defaultOptions : Required < Options [ 0 ] > = {
Original file line number Diff line number Diff line change
1
+ export type Options = Partial < {
2
+ partitionByComment :
3
+ | {
4
+ block ?: string [ ] | boolean | string
5
+ line ?: string [ ] | boolean | string
6
+ }
7
+ | string [ ]
8
+ | boolean
9
+ | string
10
+ type : 'alphabetical' | 'line-length' | 'natural' | 'custom'
11
+ specialCharacters : 'remove' | 'trim' | 'keep'
12
+ locales : NonNullable < Intl . LocalesArgument >
13
+ partitionByNewLine : boolean
14
+ order : 'desc' | 'asc'
15
+ ignoreCase : boolean
16
+ alphabet : string
17
+ } > [ ]
You can’t perform that action at this time.
0 commit comments