From 8fba1f0c40830bbe2043c845211c586d354a6772 Mon Sep 17 00:00:00 2001 From: liam-tait Date: Sun, 27 Mar 2022 17:41:44 +1300 Subject: [PATCH] chore(eslint): Add react/jsx-key lint rule Rule is set to error. option checkFragmentShorthand option set to true, meaning the rule is used for shorthand fragment syntax too. option will default to true next major eslint-plugin-react version See rule docs [here](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-key.md) --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index fcf0d28e86..832b08a87c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -15,6 +15,7 @@ "sourceType": "module" }, "rules": { + "react/jsx-key": ["error", { "checkFragmentShorthand": true }], "@typescript-eslint/ban-types": "off", "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/explicit-module-boundary-types": "off",