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
Version History
| Version | Released | License |
|---|---|---|
| 1.0.0 | ISC |