Tslint: Task: simplify uses of `createFailure`

Created on 14 Dec 2016  路  5Comments  路  Source: palantir/tslint

As of #1845, noUnusedVariableRule.ts and objectLiteralKeyQuotesRule.ts are the only rules using createFailure directly. We should look into simplifying these.

edit: other rules using createFailure:

  • [x] banTypesRules.ts
  • [x] importSpacingRule.ts
  • [x] noFloatingPromisesRule.ts
  • [x] noStringThrowRule.ts
Refactor

Most helpful comment

we can remove the deprecated functions now.

All 5 comments

we can remove the deprecated functions now.

having second thoughts on removing the deprecated functions, which would break almost all 3rd party rules. I think we should leave these in.

@nchen63 that's a good point; let's add a deprecation warning in the console in 5.0 though?

taking out of 5.0 release since we can deprecate later in 5.x, and we're still using the addFailure in some files

fair enough

Was this page helpful?
0 / 5 - 0 ratings