JSPM

eslint-plugin-putout

6.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15072
  • Score
    100M100P100Q132863F
  • License MIT

eslint plagin for putout

Package Exports

  • eslint-plugin-putout

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-putout) 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-putout

ESLint plugin for putout with built-in rules from @putout/eslint-config.

Installation

$ npm i eslint eslint-plugin-putout -D

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

Usage

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

{
    "extends": [
        "plugin:putout/recommended",
    ],
    "plugins": [
        "putout"
    ]
}

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

{
    "rules": {
        "putout/putout": "error",
        "putout/single-property-destructuring": "error",
        "putout/multiple-properties-destructuring": "error",
        "putout/long-properties-destructuring": "error",
        "putout/destructuring-as-function-argument": "error",
        "putout/align-spaces": "error",
        "putout/newline-function-call-arguments": "error",
        "putout/function-declaration-paren-newline": "error",
        "putout/remove-newline-after-default-import": "error"
    }
}

Supported Rules