[7.0] Remove quotes option (#5154)

* remove mention of 'quotes' option from README.md

* always infer quotes option's value
This commit is contained in:
Marek Święcicki
2017-01-31 21:03:51 +01:00
committed by Henry Zhu
parent e530e3c025
commit ba0df23365
2 changed files with 1 additions and 2 deletions

View File

@@ -35,7 +35,6 @@ comments | boolean | `true` | Should comments be include
compact | boolean or `'auto'` | `opts.minified` | Set to `true` to avoid adding whitespace for formatting
minified | boolean | `false` | Should the output be minified
concise | boolean | `false` | Set to `true` to reduce whitespace (but not as much as `opts.compact`)
quotes | `'single'` or `'double'` | autodetect based on `ast.tokens` | The type of quote to use in the output
filename | string | | Used in warning messages
jsonCompatibleStrings | boolean | `false` | Set to true to run `jsesc` with "json": true to print "\u00A9" vs. "©";
Options for source maps:

View File

@@ -58,7 +58,7 @@ function normalizeOptions(code, opts, tokens): Format {
compact: opts.compact,
minified: opts.minified,
concise: opts.concise,
quotes: opts.quotes || findCommonStringDelimiter(code, tokens),
quotes: findCommonStringDelimiter(code, tokens),
jsonCompatibleStrings: opts.jsonCompatibleStrings,
indent: {
adjustMultilineComment: true,