Fix integer CLI arguments (#452)

master
James Long 2017-01-24 16:07:05 -05:00 committed by GitHub
parent e13bb7dbba
commit f6708a5cca
2 changed files with 3 additions and 3 deletions

View File

@ -79,8 +79,8 @@ function getParser() {
} }
const options = { const options = {
printWidth: argv["print-width"], printWidth: argv["print-width"] && parseInt(argv["print-width"]),
tabWidth: argv["tab-width"], tabWidth: argv["tab-width"] && parseInt(argv["tab-width"]),
bracketSpacing: argv["bracket-spacing"], bracketSpacing: argv["bracket-spacing"],
parser: getParser(), parser: getParser(),
singleQuote: argv["single-quote"], singleQuote: argv["single-quote"],

View File

@ -730,7 +730,7 @@ const b = classnames({
}); });
const c = classnames({ const c = classnames({
\"some-prop\": [ \"foo\", \"bar\", \"foo\", \"bar\", \"foo\", \"bar\", \"foo\", \"bar\", \"foo\" ] \"some-prop\": [\"foo\", \"bar\", \"foo\", \"bar\", \"foo\", \"bar\", \"foo\", \"bar\", \"foo\"]
}); });
const d = classnames({ \"some-prop\": () => {} }); const d = classnames({ \"some-prop\": () => {} });