From 782c1a19b3020afe20e13010617ffd113502bb1b Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Mon, 28 Nov 2022 12:18:28 -0800 Subject: [PATCH] Disable new rules from ESLint-related upgrades The package version upgrades in previous commits introduced some new rules. Disabling them for now. Command used: npx eslint src --format json \ | jq -r '.[] | .messages[] | .ruleId' \ | sort | uniq --- .eslintrc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.eslintrc b/.eslintrc index b84807ad0..f1db3eb25 100644 --- a/.eslintrc +++ b/.eslintrc @@ -66,6 +66,34 @@ rules: jsx-quotes: off no-use-before-define: ["error", { "functions": false }] no-return-await: off + # <<< These were enabled by extension and plugin upgrades in https://github.com/nextstrain/auspice/pull/1602. Disabling for now. + function-paren-newline: off + import/no-cycle: off + import/no-useless-path-segments: off + import/order: off + jsx-a11y/anchor-is-valid: off + jsx-a11y/click-events-have-key-events: off + lines-between-class-members: off + max-classes-per-file: off + no-compare-neg-zero: off + no-else-return: off + no-multiple-empty-lines: off + no-restricted-globals: off + no-unused-vars: off + prefer-object-spread: off + react/button-has-type: off + react/default-props-match-prop-types: off + react/jsx-closing-tag-location: off + react/jsx-curly-brace-presence: off + react/jsx-curly-newline: off + react/jsx-one-expression-per-line: off + react/jsx-props-no-spreading: off + react/jsx-wrap-multilines: off + react/no-access-state-in-setstate: off + react/no-deprecated: off + react/no-unused-state: off + react/static-property-placement: off + # >>> parserOptions: ecmaVersion: 6 sourceType: module