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

Adding optional extends in eslintrc causes error #20

Open
benjclark opened this issue Jul 5, 2018 · 1 comment
Open

Adding optional extends in eslintrc causes error #20

benjclark opened this issue Jul 5, 2018 · 1 comment

Comments

@benjclark
Copy link
Contributor

I have:

{
  "extends": [
    "@springernature/eslint-config",
    "@springernature/eslint-config/node"
  ]
}

I am using gulp-eslint
I have a repo that has mostly js files but some that are applicable as node.js files (I think).
If I use the above eslintrc then js files produce the following error as soon as I run the gulp task for linting: Parsing error: Cannot read property 'ecmaFeatures' of undefined
This is fixed by me removing "@springernature/eslint-config/node" from eslintrc

@josebolos
Copy link
Contributor

Hi Ben!

I'm not familiar with Gulp. What would be the desired behaviour here? What needs to be changed?

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

No branches or pull requests

2 participants