diff --git a/etc/prettier-config/ts.js b/etc/prettier-config/ts.js index 2486c4ce95..56bb955c27 100644 --- a/etc/prettier-config/ts.js +++ b/etc/prettier-config/ts.js @@ -1,8 +1,21 @@ +/** @type {import("prettier").Config} */ module.exports = { - "tabWidth": 4, - "printWidth": 120, - "parser": "typescript", - "singleQuote": true, - "trailingComma": "none", - "bracketSpacing": true + // Basic formatting rules + tabWidth: 4, + printWidth: 120, + parser: 'typescript', + + // Coding style & quotes + singleQuote: true, + bracketSpacing: true, + + // Advanced optimizations for Git and Collaboration + // Changed from "none" to "all" to prevent unnecessary diff noise in Git + trailingComma: 'all', + + // Consistency across different OS (Windows, Linux, macOS) + endOfLine: 'lf', + + // Ensures parentheses are always used for arrow functions, aiding code clarity + arrowParens: 'always' };