eslint-plugin-sort-class-members
Advanced tools
Comparing version 1.15.0 to 1.15.1
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31056
14