Skip to content

[Feature]: Enable object-shorthand in ESLint config #25030

@layershifter

Description

@layershifter

Library

React Components / v9 (@fluentui/react-components)

Describe the feature that you would like added

I would like to enable object-shorthand rule in our ESLint config for v9 which is currently disabled:

'object-shorthand': 'off',

Rule enforces shorthands:

var foo = {
    x: x,
    y: y,
    z: z,
};
// ⬇️⬇️⬇️
var foo = {x, y, z};

Have you discussed this feature with our team

No

Additional context

I would like to avoid manual/work suggestions in PR reviews.

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions