From 4d140b3832a47843401725e793c896ca9e7efbe9 Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Fri, 30 Sep 2022 14:56:50 +0200 Subject: [PATCH] chore: enable object-shorthand in ESLint --- ...eslint-plugin-ec734cab-e66a-4e3e-8678-7123ea508e1e.json | 7 +++++++ packages/eslint-plugin/src/configs/core.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 change/@fluentui-eslint-plugin-ec734cab-e66a-4e3e-8678-7123ea508e1e.json diff --git a/change/@fluentui-eslint-plugin-ec734cab-e66a-4e3e-8678-7123ea508e1e.json b/change/@fluentui-eslint-plugin-ec734cab-e66a-4e3e-8678-7123ea508e1e.json new file mode 100644 index 0000000000000..cd823ce5beecc --- /dev/null +++ b/change/@fluentui-eslint-plugin-ec734cab-e66a-4e3e-8678-7123ea508e1e.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: enable object-shorthand in ESLint", + "packageName": "@fluentui/eslint-plugin", + "email": "olfedias@microsoft.com", + "dependentChangeType": "none" +} diff --git a/packages/eslint-plugin/src/configs/core.js b/packages/eslint-plugin/src/configs/core.js index b6a69150c2b9b..95f9c7535af14 100644 --- a/packages/eslint-plugin/src/configs/core.js +++ b/packages/eslint-plugin/src/configs/core.js @@ -124,7 +124,7 @@ const config = { 'no-useless-escape': 'off', 'no-useless-rename': 'off', 'no-useless-return': 'off', - 'object-shorthand': 'off', + 'object-shorthand': 'warn', 'operator-assignment': 'off', 'prefer-destructuring': 'off', 'prefer-template': 'off',