Socket
Socket
Sign inDemoInstall

eslint-plugin-member-order

Package Overview
Dependencies
88
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-member-order

ESLint rule for enforcing consistent ES6 class member order.


Version published
Weekly downloads
242
decreased by-15.38%
Maintainers
1
Install size
10.8 kB
Created
Weekly downloads
 

Readme

Source

build status test coverage

eslint-plugin-member-order

ESLint rule for enforcing consistent ES6 class member order.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-member-order:

$ npm i eslint-plugin-member-order --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-member-order globally.

Usage

Add member-order to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
	"plugins": [
		"member-order"
	]
}

Then configure the rules you want to use under the rules section.

{
	"rules": {
		"member-order": [2, {
			"order": [
				"[static-properties]",
				"[static-methods]",
				"[properties]",
				"[conventional-private-properties]",
				"constructor",
				"[methods]",
				"[conventional-private-methods]"
			]
		}]
	}
}

Keywords

FAQs

Last updated on 11 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc