We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relates to #3
eslint-plugin-sort-keys-fix: 1.1.0 Node.js: 13.7.0
npm i -D babel-eslint eslint eslint-plugin-sort-keys-fix
.eslintrc
{ "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 8, "sourceType": "module", }, "plugins": [ "sort-keys-fix" ], "env": { "browser": true, "es6": true, }, "rules": { "sort-keys-fix/sort-keys-fix": "error" } }
var z = {} var obj = {b:1, ...z, a:1}
No violations
ESLint: Expected object keys to be in ascending order. 'a' should be before 'b'.(sort-keys-fix/sort-keys-fix)
It's problematic in cases where we want to allow overriding some in the target object
function foo(overridings) { const target = {b: 7, ...overridings, a: 5} }
Also, current behavior causes bugs like described in #2 (comment)
The text was updated successfully, but these errors were encountered:
Thx @pahan35 . Released in 1.1.1.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Relates to #3
Versions
eslint-plugin-sort-keys-fix: 1.1.0
Node.js: 13.7.0
Dependencies
npm i -D babel-eslint eslint eslint-plugin-sort-keys-fix
.eslintrc
Code to reproduce
Expected
No violations
Actual
Motivation
It's problematic in cases where we want to allow overriding some in the target object
Also, current behavior causes bugs like described in #2 (comment)
The text was updated successfully, but these errors were encountered: