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

ESlint breaks build when using console.log #1

Open
cinthialandia opened this issue Jul 1, 2019 · 2 comments
Open

ESlint breaks build when using console.log #1

cinthialandia opened this issue Jul 1, 2019 · 2 comments

Comments

@cinthialandia
Copy link

Hello, thanks for this course!!

Doing the course I found a problem when I tried to used console.log:

11:5 error Unexpected console statement no-console
13:5 error Unexpected console statement no-console

Someone help me out with this problem and explained to me that the issue was caused by the library ESlint, specifically, the rule no-console that comes with "eslint:recommended" rules.

I don't know if this is intended, but it prevents working with the examples and see the results in the console.

thanks :)

@toddmotto
Copy link
Member

Hey Cinthia! You're welcome, could you share your .eslintrc.json file? :D

@cinthialandia
Copy link
Author

Hello! This is the .eslintrc.json file:

{
  "env": {
    "browser": true,
    "es6": true
  },
  "extends": "eslint:recommended",
  "globals": {
    "Atomics": "readonly",
    "SharedArrayBuffer": "readonly"
  },
  "parserOptions": {
    "ecmaVersion": 2018,
    "sourceType": "module"
  },
  "rules": { }
}

Note: I downloaded the zip file from the Project Setup module instead of cloning this repo.

The way I solved it was adding "no-console": 0 to the set of rules.

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