levibuzolic / eslint-plugin-no-only-tests

ESLint rule for catching focused/only test blocks
https://www.npmjs.com/package/eslint-plugin-no-only-tests
MIT License
92 stars 18 forks source link

Allow dots in blocks #14

Closed limonte closed 4 years ago

limonte commented 4 years ago

Currently, the plugin doesn't work for this code:

ava.default.only(...)

configuration:

  rules: {
    'no-only-tests/no-only-tests': ['error', {
      block: ['ava.default'],
      focus: ['only']
    }]
  }

It seems that . aren't supported in blocks.

levibuzolic commented 4 years ago

Thanks @limonte I'll take a look and see what I can do to make it work for this use case.

levibuzolic commented 4 years ago

@limonte should be fixed in v2.4.0 mind giving it a go and checking it works for you?

limonte commented 4 years ago

Well done, thank you @levibuzolic !