Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const options: SupportOptions = {
category: CATEGORY_GLOBAL,
type: 'int',
default: 80,
description: 'The line length where Prettier will try wrap.',
description: 'The line length where Prettier will try to wrap.',
range: { start: 0, end: Number.POSITIVE_INFINITY, step: 1 }
},
tabWidth: {
Expand Down
4 changes: 2 additions & 2 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function parse(text, _parsers, options = _parsers) {
ctx.value = options.singleQuote ? `hex'${value}'` : `hex"${value}"`;
},
Conditional(ctx) {
// TODO: while the behaviour is not stable, it should be behind the
// TODO: while the behavior is not stable, it should be behind the
// experimentalTernaries flag.
if (options.experimentalTernaries) {
// We can remove parentheses only because we are sure that the
Expand Down Expand Up @@ -91,7 +91,7 @@ function parse(text, _parsers, options = _parsers) {
ctx.left = tryHug(ctx.left, ['*', '/', '%']);
break;
case '**':
// If the compiler has not been given as an option using we leave
// If the compiler has not been given as an option we leave
// a**b**c.
if (!compiler) break;

Expand Down
2 changes: 1 addition & 1 deletion src/slangSolidityParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function parse(
options
);

// Because of comments being extracted like a russian doll, the order needs
// Because of comments being extracted like a Russian doll, the order needs
// to be fixed at the end.
parsed.comments = clearComments().sort((a, b) => a.loc.start - b.loc.start);
clearOffsets();
Expand Down