1.0.0 • Published 3 years ago

eslint-plugin-sort-keys-vue-fix v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

eslint-plugin-sort-keys-vue-fix

Fork of eslint rule that sorts keys in objects (https://eslint.org/docs/rules/sort-keys) with autofix enabled compatible with vue order-in-components

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-sort-keys-vue-fix:

npm install eslint-plugin-sort-keys-vue-fix --save-dev

Usage

Add sort-keys-vue-fix to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "sort-keys-vue-fix"
    ]
}

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

{
    "rules": {
        "sort-keys-vue-fix/sort-keys-vue-fix": "warn"
    }
}

Supported Rules

For available config options, see official vue/sort-keys reference.