1.3.0 • Published 10 months ago

eslint-plugin-collation v1.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

ESLint plugin for making your code easier to read, with autofix and TypeScript support

Installation

npm install eslint eslint-plugin-collation @typescript-eslint/parser --save-dev

Usage

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

{
    "parser": "@typescript-eslint/parser",
    "plugins": ["collation"],
    "rules": {
        "collation/group-exports": "warn",
        "collation/no-default-export": "warn",
        "collation/no-inline-export": "warn",
        "collation/sort-dependency-list": "warn",
        "collation/sort-exports": "warn"
    }
}

:warning: You will need to specify @typescript-eslint/parser in your .eslintrc file even if you aren't using TypeScript.

Rules

RuleDescriptionFixable
collation/group-exportsConsolidates multiple export statements:wrench:
collation/no-default-exportEnforces exports to be named:wrench:
collation/no-inline-exportEnforces exports to appear at the end of the file:wrench:
collation/prefer-importEnforces imports from a preferred module over another, such as for tree-shaking purposes or wrapping a library.:wrench:
collation/sort-dependency-listSorts React dependency lists:wrench:
collation/sort-exportsSorts specifiers in an export statement:wrench:

For documentation and examples for the available rules, see Rules

1.3.0

10 months ago

1.2.3

12 months ago

1.2.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.5

1 year ago

1.1.2

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago