From 78b78882c40ff82aa8e8131539ca65a1f99e8e52 Mon Sep 17 00:00:00 2001 From: Philipp Metzler Date: Fri, 28 Jul 2023 20:02:00 +0200 Subject: [PATCH] Change the locale for jsx-sort-props sorts to en Sorting shall work the same for different locales. See https://github.com/jsx-eslint/eslint-plugin-react/issues/3613 --- react.js | 1 + 1 file changed, 1 insertion(+) diff --git a/react.js b/react.js index d7a28c4..2d48ab9 100644 --- a/react.js +++ b/react.js @@ -59,6 +59,7 @@ module.exports = { 'react/jsx-sort-props': [ ERROR, { + locale: 'en', ignoreCase: true, reservedFirst: ['key', 'ref'] }