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

expect unbound-method #340

Open
strigefleur opened this issue Sep 28, 2021 · 0 comments
Open

expect unbound-method #340

strigefleur opened this issue Sep 28, 2021 · 0 comments

Comments

@strigefleur
Copy link

Is your feature request related to a problem? Please describe.

Having expect with some spyObj call produces eslint warning unbound-method.

Describe the solution you'd like

Integrate existing rule like Jest plugin has.

Here's snippet from the link provided:

{
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: 'tsconfig.json',
    ecmaVersion: 2020,
    sourceType: 'module',
  },
  overrides: [
    {
      files: ['test/**'],
      plugins: ['jest'],
      rules: {
        // you should turn the original rule off *only* for test files
        '@typescript-eslint/unbound-method': 'off',
        'jest/unbound-method': 'error',
      },
    },
  ],
  rules: {
    '@typescript-eslint/unbound-method': 'error',
  },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant