rapid-mutex
Version:
Lightweight and simple mutexes for JavaScript using SharedArrayBuffer.
27 lines (21 loc) • 1.07 kB
JavaScript
module.exports = {
// Code width and indentation
printWidth: 100, // Maximum line length
tabWidth: 2, // Number of spaces per tab
useTabs: false, // Use spaces instead of tabs
// Syntax preferences
semi: true, // Use semicolons at the end of statements
singleQuote: true, // Use single quotes for strings
quoteProps: 'as-needed', // Add quotes to object properties only when required
// Commas and spacing
trailingComma: 'es5', // Include trailing commas where valid in ES5 (objects, arrays, etc.)
bracketSpacing: true, // Add spaces between brackets in object literals
// Arrow function parentheses
arrowParens: 'avoid', // Avoid parentheses for single-parameter arrow functions
// Wrapping and whitespace
proseWrap: 'preserve', // Maintain existing wrapping for markdown text
htmlWhitespaceSensitivity: 'css', // Respect CSS display property when formatting HTML
// File formatting
endOfLine: 'lf', // Use Line Feed for line breaks
embeddedLanguageFormatting: 'auto', // Automatically format embedded code (e.g., in markdown)
};