requireImportAlphabetized

Requires imports to be alphabetised

Types: Boolean

Values: true to require imports to be ordered (A-Z)

Example

"requireImportAlphabetized": true
Valid
import a from 'a';
import c from 'c';
import z from 'z';
Invalid
import a from 'a';
import z from 'z';
import c from 'c';
Rule source
Test source