18 lines
568 B
JavaScript
18 lines
568 B
JavaScript
|
|
/**
|
||
|
|
* Shared Prettier configuration
|
||
|
|
* Python-like JavaScript: minimal punctuation, maximum clarity
|
||
|
|
*/
|
||
|
|
module.exports = {
|
||
|
|
printWidth: 100,
|
||
|
|
tabWidth: 2,
|
||
|
|
useTabs: false,
|
||
|
|
semi: false, // No semicolons - cleaner, Python-like
|
||
|
|
singleQuote: true,
|
||
|
|
quoteProps: 'as-needed',
|
||
|
|
jsxSingleQuote: true, // Consistent single quotes everywhere
|
||
|
|
trailingComma: 'all', // Always trailing commas, like Python
|
||
|
|
bracketSpacing: true,
|
||
|
|
bracketSameLine: false, // Updated from deprecated jsxBracketSameLine
|
||
|
|
arrowParens: 'avoid', // Minimal parentheses
|
||
|
|
endOfLine: 'lf',
|
||
|
|
}
|