vkbansal/eslint-plugin-jsx-control-statements

Optionally disallow deprecated <Else />

stoikerty opened this issue · 2 comments

I there a way to disallow the deprecated <Else />-statement?

I've tried to add this to my .eslintrc but no luck.

  "environments": {
    "jsx-control-statements": {
      "globals": {
        "Else": false
      }
    }
  }

Try putting globals at top level in .eslintrc

"globals": {
  "Else": false
}

@vkbansal I tried that as well, both before and after these statements but it still won't work.

  "plugins": [
    "jsx-control-statements"
  ],
  "extends": [
    "plugin:jsx-control-statements/recommended"
  ],