Now Paging Maciej

    eslint-plugin-sort

    2.4.0 • Public • Published

    eslint-plugin-sort

    Build status npm semantic-release

    Auto-fixable sort rules for ESLint.

    Installation

    npm

    npm install -D eslint-plugin-sort

    Yarn

    yarn add -D eslint-plugin-sort

    Usage

    After installing, add sort to your list of ESLint plugins and extend the recommended configuration. This will enable all available rules as warnings.

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

    List of Supported Rules

    : Enabled in the recommended configuration.
    🔧: Fixable with eslint --fix.

    🔧 Rule Description
    🔧 sort/destructuring-properties Sorts object destructuring properties
    🔧 sort/exports Sorts exports
    🔧 sort/export-members Sorts export members
    🔧 sort/imports Sorts imports
    🔧 sort/import-members Sorts import members
    🔧 sort/object-properties Sorts object properties
    🔧 sort/type-properties Sorts TypeScript type properties

    Install

    npm i eslint-plugin-sort

    DownloadsWeekly Downloads

    6,854

    Version

    2.4.0

    License

    ISC

    Unpacked Size

    24.4 kB

    Total Files

    15

    Last publish

    Collaborators

    • mskelton