From 62c08380f15e416a237faac7baf9591216925360 Mon Sep 17 00:00:00 2001 From: Kai Vandivier Date: Thu, 23 Jan 2025 17:02:33 +0100 Subject: [PATCH] chore: fix eslint config --- .eslintrc.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6a67119..6eb93fd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,14 +1,13 @@ const { config } = require('@dhis2/cli-style') module.exports = { - extends: [config.eslint], - // Needed to add this to support ?? and ?. operators, for some reason - parserOptions: { ecmaVersion: 'latest' }, + extends: [config.eslintReact], // These are common lint errors // TODO: address lines flagged with these rules (either turn off or back on) rules: { 'import/extensions': 'warn', 'max-params': 'warn', 'no-unused-vars': 'warn', + 'react/react-in-jsx-scope': 'off', }, }