ESLint Quickstart – find errors automatically



ESLint is the standard solution for linting your JavaScript projects. It’s never been easier to add ESLint to your project.

In this short guide you’ll learn how to get up and running with ESLint in under 5 minutes.

Video by Harry Wolff.

Harry has a YouTube channel about JavaScript: https://www.youtube.com/channel/UCgdeMp2ZBnovi12THmLc47g

Learn to code for free and get a developer job: https://www.freecodecamp.com

Read hundreds of articles on programming: https://medium.freecodecamp.com

And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp

source

This Post Has 23 Comments

  1. Yogxoth

    Do I need eslint if I'm already using tsserver (CoC)?

  2. Divine

    vscode doesnot highlight any lint related warnings for me. why is that?

  3. Please find the ts code which is resulting in 24 problems and unable to solve it.

    ————————————————-

    async onmousemove(textToDisplay: string, elementToMouseHover: ElementFinder) {

    it('mouse hover on ' + textToDisplay, async () => {

    await browser.wait(ExpectedConditions.elementToBeClickable(elementToMouseHover));

    await browser.driver.actions().mouseMove(elementToMouseHover).perform();

    return;

    });

    }

    ————————————————-

    ',' expected.

    Cannot find name 'async'.

    Expected 1-3 arguments, but got 6.

    Cannot find name 'textToDisplay'.

    'string' only refers to a type, but is being used as a value here.

    Cannot find name 'elementToMouseHover'.

    Parameter '(Missing)' implicitly has an 'any' type.

    ————————————————-

    ————————————————-

    Please share your comments to resolve the errors.

  4. Filip Moniuszko

    I am wondering why all tutorials I watch don't work on my pc. I get always errors and I cannot proceed…

  5. djgrin17

    Great explanation! Thank you for help with eslint basics!

  6. Jay Cardenas

    vscode eslint extension is already installed here, right?

  7. Burak

    Thank you for ending with a semicolon.

  8. Ikram Zidane

    Hi Harry, what is the theme that you are using for your vscode?

  9. Aryan

    why there isn't an extension for this already?

  10. Yash

    hi, how do people have the branch name they are on shown in the terminal like you do "git:(master)" is it a mac only thing or some external package?

  11. N. Amin R.

    I'm new in js, node.js and vscode. For intellisense Currently starting with free tabnine. Which intellisense are you using in this tutorial?

  12. Yehia Shouman

    thanks for the video but i guess its better to have vscode in fullscreen and minimize your camera stream

  13. tarunjyot kaur

    Hey, I am getting TypeError: Failed to load plugin 'jest' declared in '.eslintrc': Class extends value undefined is not a constructor or null. Please help.

Leave a Reply