Fix integer CLI arguments (#452)
parent
e13bb7dbba
commit
f6708a5cca
|
@ -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"],
|
||||||
|
|
|
@ -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\": () => {} });
|
||||||
|
|
Loading…
Reference in New Issue