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.0 to 1.15.1

6

dist/rules/sort-class-members.js

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

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

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

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

@@ -275,3 +275,3 @@ var _sourceCode$getFirstT = sourceCode.getFirstTokens(node.key, 2),

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

@@ -278,0 +278,0 @@

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

@@ -35,3 +35,2 @@ "keywords": [

},
"dependencies": {},
"peerDependencies": {

@@ -42,3 +41,3 @@ "eslint": ">=0.8.0"

"@babel/cli": "^7.8.4",
"@babel/eslint-parser": "^7.15.8",
"@babel/eslint-parser": "^7.18.9",
"@babel/plugin-proposal-class-properties": "^7.14.5",

@@ -48,2 +47,4 @@ "@babel/plugin-proposal-decorators": "^7.15.8",

"@babel/register": "^7.9.0",
"@typescript-eslint/parser": "^5.36.2",
"babel-eslint-parser-legacy": "npm:@babel/eslint-parser@7.15.8",
"eslint": "^8.0.0",

@@ -53,3 +54,4 @@ "eslint-config-prettier": "^8.3.0",

"prettier": "^2.5.0",
"release-script": "^1.0.2"
"release-script": "^1.0.2",
"typescript": "^4.8.2"
},

@@ -56,0 +58,0 @@ "engines": {

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