The Wayback Machine - https://web.archive.org/web/20210921114351/https://github.com/topics/eslint
Skip to content
#

ESLint

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 7,667 public repositories matching this topic...

pubmikeb
pubmikeb commented Aug 16, 2021

Please describe what the rule should do:
Starting V8 v.9.3, Object.prototype.hasOwnProperty.call can be replaced with an alias/syntax sugar Object.hasOwn, which is much more read-friendly. Further information: https://v8.dev/features/object-has-own

What new ECMAScript feature does this rule relate to?
Promoting using of an alias/syntax sugar Object.hasOwn instead of `Object.prot

❄️ A React-Native Android iOS Starter App/ BoilerPlate / Example with Redux, RN Router, & Jest with the Snowflake Hapi Server running locally or on RedHat OpenShift for the backend, or a Parse Server running locally or remotely on Heroku
  • Updated Mar 7, 2019
  • JavaScript
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

Created by Nicholas C. Zakas

Released June 2013

Latest release about 2 months ago

Repository
eslint/eslint
Website
eslint.org

Related Topics

javascript linter linting