Prettier कॉन्फ़िग जेनरेटर और प्लेग्राउंड

Prettier latest लोड हो रहा है…

Prettier विकल्प संदर्भ

नीचे दिया गया हर विकल्प ऊपर के जेनरेटर में उपलब्ध है। दिखाए गए डिफ़ॉल्ट Prettier 3.9.6 के हैं।

bracketSameLineBracket Same Line

where the closing angle bracket of a multi-line tag lands

डिफ़ॉल्ट
false
CLI फ़्लैग
--bracket-same-line

bracketSpacingBracket Spacing

the spaces inside object braces, and everywhere they follow

डिफ़ॉल्ट
true
CLI फ़्लैग
--no-bracket-spacing

objectWrapObject Wrap

Prettier's one deliberate escape hatch, and how to switch it off

डिफ़ॉल्ट
"preserve"
CLI फ़्लैग
--object-wrap
स्वीकृत मान
preservecollapse

proseWrapProse Wrap

how Markdown paragraphs are wrapped, and why the default leaves them alone

डिफ़ॉल्ट
"preserve"
CLI फ़्लैग
--prose-wrap
स्वीकृत मान
alwaysneverpreserve

singleAttributePerLineSingle Attribute Per Line

one attribute per line, for markup diffs that read like code diffs

डिफ़ॉल्ट
false
CLI फ़्लैग
--single-attribute-per-line

singleQuoteSingle Quote

a preference Prettier overrides whenever escaping would suffer

डिफ़ॉल्ट
false
CLI फ़्लैग
--single-quote

embeddedLanguageFormattingEmbedded Language Formatting

formatting the CSS, HTML and GraphQL hiding inside your template literals

डिफ़ॉल्ट
"auto"
CLI फ़्लैग
--embedded-language-formatting
स्वीकृत मान
autooff

endOfLineEnd Of Line

line endings, and the Windows diff problem this option was created to end

डिफ़ॉल्ट
"lf"
CLI फ़्लैग
--end-of-line
स्वीकृत मान
lfcrlfcrauto

printWidthPrint Width

the width Prettier aims for, not a hard limit

डिफ़ॉल्ट
80
CLI फ़्लैग
--print-width

tabWidthTab Width

how wide one indentation level is, in columns

डिफ़ॉल्ट
2
CLI फ़्लैग
--tab-width

useTabsUse Tabs

tabs for indentation, and why accessibility is the strongest argument

डिफ़ॉल्ट
false
CLI फ़्लैग
--use-tabs

htmlWhitespaceSensitivityHtml Whitespace Sensitivity

the option that stops Prettier changing how your page renders

डिफ़ॉल्ट
"css"
CLI फ़्लैग
--html-whitespace-sensitivity
स्वीकृत मान
cssstrictignore

vueIndentScriptAndStyleVue Indent Script And Style

whether a Vue SFC indents inside its script and style blocks

डिफ़ॉल्ट
false
CLI फ़्लैग
--vue-indent-script-and-style

arrowParensArrow Parens

parentheses around a lone arrow parameter, and the edit cost of leaving them off

डिफ़ॉल्ट
"always"
CLI फ़्लैग
--arrow-parens
स्वीकृत मान
alwaysavoid

experimentalOperatorPositionExperimental Operator Position

whether a wrapped operator trails the line above or leads the line below

डिफ़ॉल्ट
"end"
CLI फ़्लैग
--experimental-operator-position
स्वीकृत मान
startend

experimentalTernariesExperimental Ternaries

an opt-in answer to Prettier's longest-running formatting argument

डिफ़ॉल्ट
false
CLI फ़्लैग
--experimental-ternaries

jsxSingleQuoteJsx Single Quote

quote style for JSX attributes, kept separate from your JavaScript strings

डिफ़ॉल्ट
false
CLI फ़्लैग
--jsx-single-quote

quotePropsQuote Props

when object keys get quoted, and the consistency option most people want

डिफ़ॉल्ट
"as-needed"
CLI फ़्लैग
--quote-props
स्वीकृत मान
as-neededconsistentpreserve

semiSemi

semicolons, and the ASI hazards behind the default

डिफ़ॉल्ट
true
CLI फ़्लैग
--no-semi

trailingCommaTrailing Comma

the option that exists to make diffs smaller

डिफ़ॉल्ट
"all"
CLI फ़्लैग
--trailing-comma
स्वीकृत मान
alles5none

checkIgnorePragmaCheck Ignore Pragma

lets a file opt itself out of formatting entirely

डिफ़ॉल्ट
false
CLI फ़्लैग
--check-ignore-pragma

cursorOffsetCursor Offset

the option that stops format-on-save losing your place

डिफ़ॉल्ट
-1
CLI फ़्लैग
--cursor-offset

insertPragmaInsert Pragma

stamps a @format marker on every file Prettier formats

डिफ़ॉल्ट
false
CLI फ़्लैग
--insert-pragma

rangeEndRange End

the exclusive end of a partial format

डिफ़ॉल्ट
CLI फ़्लैग
--range-end

rangeStartRange Start

the start of a partial format, and how Format Selection actually works

डिफ़ॉल्ट
0
CLI फ़्लैग
--range-start

requirePragmaRequire Pragma

the option that lets a huge codebase adopt Prettier one file at a time

डिफ़ॉल्ट
false
CLI फ़्लैग
--require-pragma