I use ESLint to lint TypeScript. I would like to configure ESLint such that it enforces imports to either be all on separate lines or all on a single line.
Not okay:
import {
a, b,
c,
d
} from "letters";
Okay:
import { a, b, c, d } from "letters";
Okay:
import {
a,
b,
c,
d
} from "letters";
Is this possible, and if so, how?
["error", { "allowAllPropertiesOnSameLine": true }]
. However I'm not sure will it work for imports and I was unable to find a rule like that for them. – Subkingdom