Skip to content

iambrandonn/eslint-plugin-prettier-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-prettier-rules

An eslint rule configuration which matches the output from prettier

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-prettier-rules:

$ npm install eslint-plugin-prettier-rules --save-dev

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

Usage

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

{
    "plugins": [
        "prettier-rules"
    ]
}

Add prettier-rules to the extends section of your .eslintrc configuration file. prettier-rules/eslint covers the stock eslint rules and prettier-rules/react adds jsx support if needed.

{
    "extends": [
        "plugin:prettier-rules/eslint",
        "plugin:prettier-rules/react"
    ]
}



About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published