Closed
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Problem
EditorConfig defines certain code-style preferences.
Some of those can be done by the engine (charset
, insert_final_newline
).
Others by the processor (syntax-tree/mdast-util-to-markdown#51, syntax-tree/mdast-util-to-markdown#50; what about HTML though where the whitespace is part of the AST?).
Some are ambiguous (end_of_line
).
Solution
Can we load (as an option), editorconfig files, and pass their keys, camelcased, to settings?
That passes them to *-parse
and *-stringify
.
We could pass a nested object if there’s fear that it would conflict, but I don’t think it does?
Alternatives
- Custom adapter functions (e.g., passed by
remark-cli
to the engine) that transform an EditorConfig into certain settings? Could be modules, e.g., callededitorconfig-to-remark-settings
or so?