Skip to content

Apply 'object-literal-key-quotes' tslint rule#19737

Merged
3 commits merged into
masterfrom
object-literal-key-quotes
Nov 7, 2017
Merged

Apply 'object-literal-key-quotes' tslint rule#19737
3 commits merged into
masterfrom
object-literal-key-quotes

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 4, 2017

No description provided.

Comment thread src/compiler/scanner.ts
}

const textToToken = createMapFromTemplate({
"abstract": SyntaxKind.AbstractKeyword,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems too much.. not sure if we even need this rule.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consistency has some value here. some of these items will have to be quoted, so let them all be quoted..

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to the consistent-as-needed option.

Comment thread src/compiler/scanner.ts
}

const textToToken = createMapFromTemplate({
"abstract": SyntaxKind.AbstractKeyword,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consistency has some value here. some of these items will have to be quoted, so let them all be quoted..

Copy link
Copy Markdown
Contributor

@mhegazy mhegazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@ghost ghost merged commit 40efd1b into master Nov 7, 2017
@ghost ghost deleted the object-literal-key-quotes branch November 7, 2017 02:13
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant