Converts an editorconfig-parsed object to a Prettier configuration object. This package bridges EditorConfig settings (like indentation, line endings, and max line length) into equivalent Prettier options. The current stable version is 1.0.0, with no recent releases. It is a small utility with zero dependencies, primarily used in build tools that combine EditorConfig with Prettier. Key differentiator: it automates the mapping between both standards, reducing manual configuration duplication. Suitable for Node.js environments, released as a CommonJS module.
npm install editorconfig-to-prettierVerified import paths — ran on the pinned version, not inferred.
Parses an .editorconfig file and converts it to Prettier configuration options.
Ensure your EditorConfig properties are supported (indent_style, indent_size, tab_width, end_of_line, max_line_length, insert_final_newline).
Use separate tools for reverse conversion if needed.
Handle boolean values manually or use a more comprehensive converter.
Consider using @types/editorconfig-to-prettier if available, or declare module manually.
Change to: import editorconfigToPrettier from 'editorconfig-to-prettier'
Run: npm install editorconfig-to-prettier
Add 'type': 'module' to package.json or use require() instead.
No dependency data recorded yet.