From 33123c354b79f7951423dd75097b11e7eb075f99 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Fri, 2 Jul 2021 19:49:55 -0600 Subject: Upgrade various dependencies to latest part 2 (#1557) * Upgrade various dependencies to latest, remove unnecessary electron-hunspell - upgrade eslint and friends to latest - remove deprecated 'node-sass' in favor of 'sass' - disable new rules from 'eslint-config-airbnb' that are conflicting with current code style - add workspace config for 'vscode' that silences 'experimentalDecorator' warning and forces 'prettier' to single quote * Run yarn lint to autofix with new ruleset and worked down lint issues to zero --- .eslintrc | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to '.eslintrc') diff --git a/.eslintrc b/.eslintrc index 9983d6970..dc397ccd1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,19 +3,29 @@ "extends": "eslint-config-airbnb", "plugins": ["jest"], "rules": { + "arrow-parens": 0, "consistent-return": 0, "no-param-reassign": 0, "import/extensions": 0, "import/no-extraneous-dependencies": 0, - "import/no-unresolved": [2, { - "ignore": ["electron"] - }], + "import/no-unresolved": [ + 2, + { + "ignore": ["electron"] + } + ], "import/prefer-default-export": 0, "linebreak-style": 0, + "react/static-property-placement": 0, + "react/state-in-constructor": 0, + "react/jsx-props-no-spreading": 0, "react/prefer-stateless-function": 0, - "react/jsx-filename-extension": [1, { - "extensions": [".js", ".jsx"] - }], + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".jsx"] + } + ], "react/forbid-prop-types": 0, "react/destructuring-assignment": 0, "prefer-destructuring": 1, @@ -32,13 +42,9 @@ "jsx-a11y/label-has-for": [ 2, { - "components": [ - "Label" - ], + "components": ["Label"], "required": { - "every": [ - "id" - ] + "every": ["id"] }, "allowChildren": false } -- cgit v1.2.3-70-g09d2