testing javascript logo
    Loading

    Use pre-built ESLint Configuration using extends

    ESLint has a TON of rules you can configure for your project. But who has time to do all that? This is why ESLint has an extends configuration which you can use to base your own configuration off of other configurations. Let’s add all of ESLint’s built-in recommended rules to our project and override just the ones we want to change.

    Transcript

    Use pre-built ESLint Configuration using extends

    module imageStatic Analysis Testing JavaScript Applications
    • 1.
      Intro to Static Analysis Testing JavaScript Applications
    • 2.
      Lint JavaScript by Configuring and Running ESLint
    • 3.
      Use the ESLint Extension for VSCode
    • 4.
      Use pre-built ESLint Configuration using extends
    • 5.
      Run ESLint with npm Scripts
    • 6.
      Format Code by Installing and Running Prettier
    • 7.
      Configure Prettier
    • 8.
      Use the Prettier Extension for VSCode
    • 9.
      Disable Unnecessary ESLint Stylistic Rules with eslint-config-prettier
    • 10.
      Validate All Files are Properly Formatted with Prettier
    • 11.
      Avoid Common Errors by Installing and Configuring TypeScript
    • 12.
      Make ESLint Support TypeScript Files
    • 13.
      Validate Code in a pre-commit git Hook with husky
    • 14.
      Auto-format All Files and Validate Relevant Files in a precommit Script with lint-staged
    • 15.
      Run Multiple npm Scripts in Parallel with npm-run-all