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

eslint-plugin-sort-class-members

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-sort-class-members - npm Package Compare versions

Comparing version 1.15.1 to 1.15.2

12

dist/rules/sort-class-members.js

@@ -227,3 +227,5 @@ "use strict";

var classMemberNodes = classDeclaration.body.body;
var members = classMemberNodes.map(function (member, i) {
var members = classMemberNodes.filter(function (x) {
return x.key;
}).map(function (member, i) {
return _objectSpread(_objectSpread({}, getMemberInfo(member, sourceCode)), {}, {

@@ -243,3 +245,3 @@ id: String(i)

function getMemberInfo(node, sourceCode) {
var priv = node.key.type === 'PrivateName' || node.key.type === 'PrivateIdentifier';
var isPrivate = node.key.type === 'PrivateName' || node.key.type === 'PrivateIdentifier';
var name;

@@ -257,3 +259,3 @@ var type;

if (priv) {
if (isPrivate) {
name = "#".concat(node.key.id ? node.key.id.name : node.key.name);

@@ -276,3 +278,3 @@ } else {

} else {
name = priv ? "#".concat(node.key.id ? node.key.id.name : node.key.name) : node.key.name;
name = isPrivate ? "#".concat(node.key.id ? node.key.id.name : node.key.name) : node.key.name;
}

@@ -290,3 +292,3 @@

async: async,
"private": priv,
"private": isPrivate,
kind: node.kind,

@@ -293,0 +295,0 @@ propertyType: propertyType,

{
"name": "eslint-plugin-sort-class-members",
"version": "1.15.1",
"version": "1.15.2",
"description": "ESLint rule for enforcing consistent ES6 class member order.",

@@ -5,0 +5,0 @@ "keywords": [

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