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

Add support for defining 2 levels deep in blocks (ie. `ava.default`) #15

Closed levibuzolic closed 4 years ago

levibuzolic commented 4 years ago
  rules: {
    'no-only-tests/no-only-tests': ['error', {
      block: ['ava.default'],
      focus: ['only']
    }]
  }

Will now raise lint errors for code that looks like:

ava.default.only(() => {})

Closes #14