0.0.2 • Published 5 years ago

eslint-plugin-prettiest v0.0.2

Weekly downloads
9
License
SEE LICENSE IN LI...
Repository
github
Last release
5 years ago

eslint-plugin-prettiest

ESLint plugin to "fix" prettier formatting

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-prettiest:

$ npm install eslint-plugin-prettiest --save-dev

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

Usage

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

{
  "plugins": ["prettiest"]
}

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

{
  "rules": {
    "prettiest/no-block-after-closing": 2
  }
}

Supported Rules

  • no-block-after-closing — disallow closing braces on the same line as a subsequent block