Type object
File match .es6importsorterrc.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/es6-import-sorter-es6importsorterrc-json/latest.json
Source https://www.schemastore.org/es6importsorterrc.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

sourcePrefixes string[]

The prefixes of your source imports. Ex: import sth from '@data' => '@' can considered as a sourcePrefix

sectionPrefix string

The prefix of your section title

sectionNames string[]

The names (which comes right after 'sectionPrefix') of your section title

startImportBlockSign string

The sign to mark the start of import block. Default is '' - the start of the file

Default: ""
endImportBlockSign string

The sign to mark the end of import block. Default is '' - the first empty line

Default: ""
statementTerminator string

The sign to mark the end of an import statement. Default is ';'

Default: ";"
preCommands string | object[]

The command list run before sorting