Skip to content
#

eslint-plugin

eslint logo

ESLint is an extensible static-analysis tool for JavaScript and related languages that helps catch errors before they break something in production.

Here are 455 public repositories matching this topic...

leonheess
leonheess commented Aug 16, 2021

Please describe what the rule should do:
In Vue you can use test($event.detail) as well as event => test(event.detail) to achieve the same thing. 1. should be preferred.

  1. test($event.detail)
<Component
  @click="test($event.detail)"
/>
  1. event => test(event.detail)
<Component
  @click="event => test(event.detail)"
/>

**What category should

dmiller9911
dmiller9911 commented Apr 3, 2018

I was wondering if this repo would be open to a rule to enforce naming of snapshots. Options would be always | mutli | never

  • always - Enforce naming of snapshots even if there is only a singular snapshot.
  • multi - Enforce naming only if there are multiple snapshots in a test. naming from curly rule
  • never - Disallow naming of snapshots

I would be more

eslint-plugin-testing-library
Belco90
Belco90 commented Nov 1, 2021

Plugin version

v5

What problem do you want to solve?

Our current tests don't have any specific name or title to identify them. This makes it complicated to debug them, or differentiate the same test cases with different options, etc. Each test is represented by its code itself, which can be something really long, or duplicated between tests with the same code but different options

Created by Nicholas C. Zakas

Released June 2013

Latest release 6 days ago

Repository
eslint/eslint
Website
eslint.org

Related Topics

javascript linter linting