Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 528 Bytes

File metadata and controls

19 lines (17 loc) · 528 Bytes

Lesson: Linting

Todo

  1. Run Todo App
  2. Add Todo and check console log in dev tools
  3. Install and configure eslint with: npm init @eslint/config
  4. Answer question:
    • Use for -> To check syntax and find problems
    • Module type -> JavaScript modules
    • Framework -> None of these
    • TypeScript -> No
    • Environment -> Browser
    • Format -> JSON
    • Let the script install eslint as a dependency
  5. Add npm step "lint"

eslint src/**/*.js

Documentation

http://eslint.org/