Skip to content

ivan-kalachikov/eslint-plugin-sort-keys-vue-fix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%