From 344e30b580bd3b5115ad820be51a4170531a637d Mon Sep 17 00:00:00 2001 From: Kate Higa Date: Thu, 21 Jul 2022 15:02:17 -0700 Subject: [PATCH] Update parser option --- lib/configs/react.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/configs/react.js b/lib/configs/react.js index 5845b799..c76d66d9 100644 --- a/lib/configs/react.js +++ b/lib/configs/react.js @@ -1,6 +1,9 @@ module.exports = { - env: { - browser: true + parserOptions: { + sourceType: 'module', + ecmaFeatures: { + jsx: true + } }, plugins: ['github', 'jsx-a11y'], extends: ['plugin:jsx-a11y/recommended'],