eslint-plugin-sort-keys-vue-fix-mod

1.0.3 • Public • Published

eslint-plugin-sort-keys-vue-fix-mod

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-mod:

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-mod"
    ]
}

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

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

Supported Rules

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

Package Sidebar

Install

npm i eslint-plugin-sort-keys-vue-fix-mod

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

65.5 kB

Total Files

9

Last publish

Collaborators

  • ivankalachikov