@hetchet/eslint-plugin-sort-keys
v0.0.2
Published
Standard ESLint `sort-keys` rule doesn't allow sorting fields and there is no plan to implement it. However, personally I would find a lot of usages for such functionality, so I added fixing logic to default ESLint rule.
Downloads
3
Maintainers
Readme
Description
Standard ESLint sort-keys
rule doesn't allow sorting fields and there is no plan to implement it. However, personally I would find a lot of usages for such functionality, so I added fixing logic to default ESLint rule.
Installation
Install ESLint: npm:
npm i eslint --save-dev
yarn:yarn add -D eslint
Install plugin: npm:
npm i @hetchet/eslint-plugin-sort-keys --save-dev
yarn:yarn add -D @hetchet/eslint-plugin-sort-keys
Add to your ESLint config:
{
// ...
"plugins": ["@hetchet/sort-keys"],
"rules": {
"@hetchet/sort-keys/sort-keys": "error"
}
// ...
}
Options
Plugin supports same options as
original ESLint sort-keys
rule.