JSPM

eslint-plugin-formatting

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 124
  • Score
    100M100P100Q78507F
  • License ISC

Package Exports

  • eslint-plugin-formatting

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-formatting) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#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