From 5adff61d8934dbe5d5e59f9dadcabdd902a9b9d3 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Fri, 11 Feb 2022 15:33:20 +0100 Subject: [PATCH] webui: install eslint-config-standard-jsx to align with what starter-kit [1] does [1] https://github.com/cockpit-project/starter-kit/ --- ui/webui/.eslintrc.json | 2 +- ui/webui/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/webui/.eslintrc.json b/ui/webui/.eslintrc.json index 5ed4efdaf1f..44a9de761e1 100644 --- a/ui/webui/.eslintrc.json +++ b/ui/webui/.eslintrc.json @@ -4,7 +4,7 @@ "browser": true, "es6": true }, - "extends": ["eslint:recommended", "standard", "standard-react", "plugin:react/recommended"], + "extends": ["eslint:recommended", "standard", "standard-jsx", "standard-react"], "parser": "@babel/eslint-parser", "parserOptions": { "ecmaVersion": "7", diff --git a/ui/webui/package.json b/ui/webui/package.json index 3ba332a4f45..878c989a0b7 100644 --- a/ui/webui/package.json +++ b/ui/webui/package.json @@ -25,6 +25,7 @@ "deep-equal": "2.0.5", "eslint": "^7.10.0", "eslint-config-standard": "^16.0.3", + "eslint-config-standard-jsx": "^10.0.0", "eslint-config-standard-react": "^11.0.1", "eslint-plugin-flowtype": "^5.2.0", "eslint-plugin-import": "^2.22.1",