@prodo-ai/eslint-plugin
Prodo's custom ESLint stuff
Last updated 2 years ago by tdawes .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @prodo-ai/eslint-plugin 
SYNC missed versions from official npm registry.

eslint-plugin-prodo

Prodo's custom ESLint stuff

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-prodo:

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

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

Usage

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

{
    "plugins": [
        "prodo"
    ]
}

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

{
    "rules": {
      "prodo/sort-imports-by-path": ["error", {
        "sortOrder": ["type", "named", "unnamed"],
        "enforceBlankLine": true,
        "enforceTrailingLine": true,
        "ignoreCase": true
      }],
    }
}

Supported Rules

  • sort-imports-by-path

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |