Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

ESLint 6 #137

Closed
b-my opened this issue Jul 16, 2019 · 2 comments
Closed

ESLint 6 #137

b-my opened this issue Jul 16, 2019 · 2 comments

Comments

@b-my
Copy link

b-my commented Jul 16, 2019

We are migrating our application to typescript. For a while we will have a mixed codebase of javascript and typescript. We would like to lint both types of file in the same way. To do this we would use the overrides -> extends functionality in the .eslintrc something like this:

  "overrides": [
    {
      "files": ["*.ts", "*.tsx"],
      "parser": "@typescript-eslint/parser",
      "plugins": ["@typescript-eslint"],
      "extends": [
        "plugin:@typescript-eslint/eslint-recommended",
        "plugin:@typescript-eslint/recommended",
        "prettier/@typescript-eslint"
      ],
     ...

This functionality only works correctly in eslint 6+ (issue here). Are there plans to update the version of eslint used here to version 6? Can I submit a PR to do this?

@lolgab
Copy link
Contributor

lolgab commented Jul 18, 2019

Hi @b-my,
We did update ESLint right before the new version 6 was released.
We are very interested on updating it but, it's not the first tool to update in out schedule.
PRs are welcome, but, being it a major version upgrade, we will have to test it throughly before merging to be sure it doesn't affect existing users.

@b-my
Copy link
Author

b-my commented Jul 19, 2019

I have managed to find a workaround using the current version of eslint. For anyone experiencing a similar problem I used this suggestion.

@b-my b-my closed this as completed Jul 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants