Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore-precise #114

Closed
WillSquire opened this issue Feb 1, 2019 · 1 comment
Closed

ignore-precise #114

WillSquire opened this issue Feb 1, 2019 · 1 comment

Comments

@WillSquire
Copy link

WillSquire commented Feb 1, 2019

Related issue to #99, except it would be handy to ignore Jest's global functions with precise matches instead. Using the following implementation in tslint.json at the moment:

"no-expression-statement": [
  true,
  {
    "ignore-prefix": [
      "afterAll",
      "afterEach",
      "beforeAll",
      "beforeEach",
      "describe",
      "expect",
      "test",
      "wrapper"
    ] // ignore jest
  }
]

Jest's "it" function was also on the list (shorthand for the test function), however it had to be removed due to the amount of names it could affect. ignore-precise would certainly make code less verbose in this use case.

EDIT: Included a more complete set of functions

@RebeccaStevens
Copy link
Collaborator

Closed via #137

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

Successfully merging a pull request may close this issue.

2 participants