Skip to content

dugokontov/eslint-plugin-formatting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ESLint-plugin-formatting

Linting rules for ESLint realted to code style formatting.

Installation

Install ESLint either locally or globally.

npm install eslint

If you installed ESLint globally, you have to install this plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-formatting

Configuration

Add plugins section and specify ESLint-plugin-formatting as a plugin in .eslintrc.

{
  "plugins": [
    "formatting"
  ]
}

Finally, enable rules that you would like to use.

{
  "rules": {
    "formatting/newline-object-in-array": 2,
    "formatting/space-after-class-name": 2
  }
}

List of supported rules

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published