Bug 1531096 Comment 4 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I am not thrilled by the eslint settings for [object-shorthand](https://eslint.org/docs/rules/object-shorthand). I found that I couldn't have an object that uses both the new method syntax and the old/standard property syntax (like "myProp: myVal").  ("error  Unexpected mix of shorthand and non-shorthand properties.")  That's needlessly limiting, IMHO.

(`object-shorthand` is currently set to "always" via `mozilla/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js`)
I am not exactly thrilled by the eslint settings for [object-shorthand](https://eslint.org/docs/rules/object-shorthand). I found that I couldn't have an object that uses both the new method syntax and the old/standard property syntax (like "myProp: myVal").  ("error  Unexpected mix of shorthand and non-shorthand properties.")  That's needlessly limiting, IMHO.

(`object-shorthand` is currently set to "always" via `mozilla/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js`)

Back to Bug 1531096 Comment 4