From 966d9b1b68874391b467d95f6d10cdbe685d650b Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Tue, 25 Jul 2023 17:10:09 +0100 Subject: [PATCH] eslint config --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 552bc7c3..95ffbd26 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,6 +7,9 @@ module.exports = { 'airbnb/hooks', 'plugin:jest-dom/recommended', ], + parserOptions: { + ecmaVersion: 2020, + }, rules: { 'import/prefer-default-export': 0, 'import/no-named-as-default': 0, @@ -23,6 +26,9 @@ module.exports = { 'react/prop-types': 0, 'react/require-default-props': 0, 'no-await-in-loop': 'warn', + 'no-console': ['error', { + allow: ['debug', 'info', 'warn', 'error'], + }], 'no-multi-spaces': ['error', { ignoreEOLComments: true, }],