Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 517 Bytes

File metadata and controls

19 lines (17 loc) · 517 Bytes

Lesson: Linting

Todo

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

eslint src/**/*.js

Documentation

http://eslint.org/