From 108febc88f19c32368b343cc67a755433c8ce498 Mon Sep 17 00:00:00 2001 From: Matthias Kleine Date: Fri, 12 Nov 2021 16:12:43 +0100 Subject: [PATCH] eslint --- .eslintrc.json | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 07a8305..8b1e7fa 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,10 +1,22 @@ { + "root": true, "env": { "es6": true, "node": true, "mocha": true }, - "extends": "eslint:recommended", + "extends": [ + "eslint:recommended", + "plugin:react/recommended" + ], + "plugins": [ + "react" + ], + "settings": { + "react": { + "version": "detect" + } + }, "rules": { "indent": [ "error", @@ -15,8 +27,8 @@ ], "no-console": "off", "no-var": "error", - "prefer-const": "error", "no-trailing-spaces": "error", + "prefer-const": "error", "quotes": [ "error", "single", @@ -31,6 +43,9 @@ ] }, "parserOptions": { - "ecmaVersion": 2018 + "ecmaVersion": 2018, + "ecmaFeatures": { + "jsx": true + } } } \ No newline at end of file