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
7,145 4
Install
npm install eslint-plugin-sort-keys-vue-fix
Latest Version:1.0.0
License:ISC
Last Updated:Dec 9, 2022
Links: GitHub  ·  npm
Maintainer: rvfakie

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.

Related Packages

eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591
@vue/eslint-plugin

Official ESLint plugin for Vue.js

19,937 4,591
@sharkykh/eslint-plugin-vue-extra

ESLint plugin, extension for eslint-plugin-vue

15,653 0
eslint-config-ecollect-vue

eCollect's Vue.js style-guide and lint rules.

3,204 0
@kikiutils/eslint-plugin-vue

Official ESLint plugin for Vue.js

2,414 4,591

Version History

Version Released License
1.0.0 ISC