Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsupported typescript version #53

Closed
tylerthehaas opened this issue Dec 3, 2019 · 3 comments · Fixed by #63
Closed

unsupported typescript version #53

tylerthehaas opened this issue Dec 3, 2019 · 3 comments · Fixed by #63
Labels

Comments

@tylerthehaas
Copy link

@tylerthehaas tylerthehaas commented Dec 3, 2019

getting the following warning on typescript v3.7.2

WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.2.1 <3.6.0

YOUR TYPESCRIPT VERSION: 3.7.2

Please only submit bug reports when using the officially supported version.

here is my eslint config file

{
  "env": {
    "browser": true,
    "jest": true,
    "node": true,
    "es6": true
  },
  "extends": [
    "airbnb-typescript",
    "airbnb/hooks",
    "prettier",
    "prettier/@typescript-eslint",
    "prettier/react"
  ],
  "globals": {
    "window": true,
    "env": true
  },
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "ecmaVersion": 2018,
    "sourceType": "module",
    "project": "./tsconfig.json"
  },
  "plugins": ["@typescript-eslint", "jsx-a11y", "prettier", "react-hooks"],
  "settings": {
    "import/resolver": {
      "typescript": {}
    },
    "import/ignore": [".js", ".jsx"]
  },
  "rules": {
    "class-methods-use-this": "off",
    "consistent-return": [
      "error",
      {
        "treatUndefinedAsUnspecified": true
      }
    ],
    "global-require": "off",
    "import/prefer-default-export": 0,
    "import/no-named-as-default": 0,
    "import/no-cycle": 0,
    "indent": 0,
    "one-var": 0,
    "one-var-declaration-per-line": 0,
    "no-alert": 0,
    "no-use-before-define": "off",
    "import/no-extraneous-dependencies": "off",
    "no-nested-ternary": "off",
    "no-shadow": 0,
    "no-underscore-dangle": 0,
    "no-unneeded-ternary": "off",
    "prefer-const": [2],
    "prettier/prettier": ["error"],
    "react/jsx-filename-extension": "off",
    "react/prop-types": "off",
    "react/jsx-indent": "off",
    "react/jsx-one-expression-per-line": "off",
    "react/jsx-wrap-multilines": "off",
    "react/destructuring-assignment": "off",
    "react/no-array-index-key": "off",
    "jsx-a11y/no-noninteractive-tabindex": [
      "error",
      {
        "roles": ["region"]
      }
    ],
    "space-before-function-paren": 0,
    "strict": 0,
    "trailing-comma": [
      "error",
      {
        "multiline": {
          "objects": "always",
          "arrays": "always"
        },
        "esSpecCompliant": true
      }
    ]
  }
}
@jumpman255
Copy link

@jumpman255 jumpman255 commented Jan 29, 2020

I get the same warning. I also get errors about some rules not being found using typescript 3.7.5 and the base version.

@iamturns
Copy link
Owner

@iamturns iamturns commented Feb 9, 2020

🎉 This issue has been resolved in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@evangalen
Copy link

@evangalen evangalen commented Jan 7, 2021

@iamturns this issue is reintroduced when using a recent version on TypeScript (in my case 4.1.3).

Instead of bumping the (pinned) version of "@typescript-eslint/parser", would it not be better to make "@typescript-eslint/parser" a peer dependency (just like "@typescript-eslint/eslint-plugin", as described in issue #158)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants