0.0.1 • Published 7 years ago

eslint-plugin-straightforward v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

eslint-plugin-straightforward

adds rules for object declaration first brace and array declaration first bracket on new line

Installation

npm install eslint-plugin-straightforward --save-dev

Note : You'll first need to install ESLint if you don't have it : npm i eslint --save-dev

If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-straightforward globally.

Usage

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

{
		"plugins": [
				"straightforward"
		]
}

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

{
		"rules": {
				"straightforward/rule-name": "error"
		}
}

Supported Rules