Skip to content

Support EditorConfig #61

Closed
Closed
@wooorm

Description

Initial checklist

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., called editorconfig-to-remark-settings or so?

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙅 no/wontfixThis is not (enough of) an issue for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions