Skip to content

Conversation

@raymondfeng
Copy link
Contributor

@raymondfeng raymondfeng commented Jan 11, 2018

Checklist

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Related API Documentation was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in packages/example-* were updated

"experimentalDecorators": true,
"noImplicitAny": true,
"strictNullChecks": true,

Copy link
Member

Choose a reason for hiding this comment

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

JSON files should not be linted by prettier. I find this empty line as very useful to delimit language-related flags from project-related settings.

Could you please revert this change?

"no-unused-variable": true,
"no-var-keyword": true,
"triple-equals": [true, "allow-null-check", "allow-undefined-check"],
"typeof-compare": true
Copy link
Member

Choose a reason for hiding this comment

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

Could you please explain why you are removing typeof-compare? I am sure you have good reasons, I'd just like to understand them too 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Running the upgraded version of tslint complains that typeof-compare rule is now the default since TS 2.2 and it's not needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

^^^ It even prints that warning in our CI after tests pass (Travis & AppVeyor)

- fix build break by newer version of prettier
- upgrade tool dependencies
- remove the typeof-compare tslint rule as it's default now since TS 2.2
@raymondfeng
Copy link
Contributor Author

@bajtos PTAL

@raymondfeng raymondfeng merged commit 917da5d into master Jan 11, 2018
@bajtos bajtos deleted the fix-build branch January 12, 2018 08:41
Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants