UNPKG

@studyworld/code

Version:

Набор конфигов для `prettier` и `eslint`

18 lines (17 loc) 1.26 kB
module.exports = { printWidth: 120, // line length that the printer will wrap on tabWidth: 4, // number of spaces per indentation-level useTabs: false, // Indent lines with tabs instead of spaces semi: true, // Print semicolons at the ends of statements singleQuote: true, // Use single quotes instead of double quotes quoteProps: 'as-needed', // Change when properties in objects are quoted jsxSingleQuote: false, // Use single quotes instead of double quotes in JSX trailingComma: 'all', // Print trailing commas wherever possible when multi-line. (A single-line array, for example, never gets trailing commas.) bracketSpacing: true, // Print spaces between brackets in object literals jsxBracketSameLine: false, // Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). arrowParens: 'always', // Include parentheses around a sole arrow function parameter rangeStart: 0, // Format only a segment of a file rangeEnd: Infinity, // Format only a segment of a file endOfLine: 'lf', // line endings embeddedLanguageFormatting: 'auto', // Control whether Prettier formats quoted code embedded in the file };