import-sort
import-sort copied to clipboard
TypeError: Cannot set property 'id' of undefined
Using the command import-sort --write "src/**/*.ts{,x}".
.importsortrc
{
".ts, .tsx": {
"parser": "typescript",
"style": "module"
}
}
Okay. The README was quite misleading here.
By default, import-sort comes with these styles
This sounded like all of these styles are shipped with the import-sort-cli package but this isn't true. Only the default one is shipped.
I just ran into this too, a good fix for this issue would be a check whether the requested plugin exists and exit with an intelligent error message and error code 1 when it does not.