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.18.0 to 1.19.0

3

dist/rules/schema.js

@@ -25,2 +25,5 @@ "use strict";

},
sortInterfaces: {
type: 'boolean'
},
accessorPairPositioning: {

@@ -27,0 +30,0 @@ "enum": ['getThenSet', 'setThenGet', 'together', 'any']

@@ -53,2 +53,3 @@ "use strict";

var stopAfterFirst = !!options.stopAfterFirstProblem;
var sortInterfaces = !!options.sortInterfaces;
var accessorPairPositioning = options.accessorPairPositioning || 'getThenSet';

@@ -134,2 +135,7 @@ var order = options.order || [];

rules.ClassExpression = rules.ClassDeclaration;
if (sortInterfaces) {
rules.TSInterfaceDeclaration = rules.ClassDeclaration;
}
return rules;

@@ -262,3 +268,3 @@ }

if (node.type === 'ClassProperty' || node.type === 'ClassPrivateProperty' || node.type === 'PropertyDefinition' || node.type === 'PrivateIdentifier' || node.type === 'TSAbstractPropertyDefinition') {
if (node.type === 'ClassProperty' || node.type === 'ClassPrivateProperty' || node.type === 'PropertyDefinition' || node.type === 'PrivateIdentifier' || node.type === 'TSAbstractPropertyDefinition' || node.type === 'TSPropertySignature') {
type = 'property';

@@ -265,0 +271,0 @@

2

package.json
{
"name": "eslint-plugin-sort-class-members",
"version": "1.18.0",
"version": "1.19.0",
"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