Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/eslint-plugin

Package Overview
Dependencies
Maintainers
6
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/eslint-plugin - npm Package Compare versions

Comparing version 7.12.13 to 7.13.0

2

lib/rules/no-invalid-this.js

@@ -21,3 +21,3 @@ "use strict";

while (node) {
if (node.type === "ClassPrivateMethod" || node.type === "ClassPrivateProperty" || node.type === "ClassProperty") {
if (node.type === "ClassPrivateMethod" || node.type === "ClassPrivateProperty" || node.type === "ClassProperty" || node.type === "PropertyDefinition" || node.type === "MethodDefinition" && node.key.type === "PrivateIdentifier") {
inClassMember = true;

@@ -24,0 +24,0 @@ return;

@@ -81,3 +81,3 @@ "use strict";

var _default = _eslintRuleComposer.default.joinReports([rule, context => ({
"ClassProperty, ClassPrivateProperty"(node) {
"ClassProperty, ClassPrivateProperty, PropertyDefinition"(node) {
const options = context.options[1];

@@ -84,0 +84,0 @@ const exceptOneLine = options && options.omitLastInOneLineBlock === true;

{
"name": "@babel/eslint-plugin",
"version": "7.12.13",
"version": "7.13.0",
"description": "Companion rules for @babel/eslint-parser",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc