3.0.0 • Published 3 years ago

eslint-plugin-pocket-fluff v3.0.0

Weekly downloads
957
License
MIT
Repository
github
Last release
3 years ago

eslint-plugin-pocket-fluff

Npm Version Node version requirements Node.js CI status

A collection of eslint rules.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-pocket-fluff:

$ npm install eslint-plugin-pocket-fluff --save-dev

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

Usage

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

{
	"plugins": ["pocket-fluff"]
}

Then configure the rules you want to use under the rules section in your .eslintrc file.

{
	"rules": {
		"pocket-fluff/no-jsx-spread": "error",
		"pocket-fluff/no-dead-code": "error"
	}
}

Current Rules

no-jsx-spread

Disallow the use of the JSX spread for perf and DX reasons. README

no-dead-code

Disallow code past its marked @removeby. README

no-reassigned-consts

Disallow Reassignments of consts and Const-named variables. README

no-react-scope-bound-assignment

Disallow reassigning external variables from inside react components. README

3.0.0

3 years ago

2.0.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago