~/talk

Custom ESLint Rules with Angular Schematics

Talkat AngularUP Experience 2020 · 2020-11-30..12-03· [angular, developer-experience]
slides:none on file

A custom ESLint rule detects imports from "ui/search-bar", uses the AST (via ast explorer and the TypeScript parser) to report and provide a fixer that rewrites them to "tns-core-modules/ui/search-bar", and is packaged as an ESLint plugin. A schematic reads project files via the Schematics tree, runs linter.verifyAndFix on each .ts/.js file, and overwrites changed files. Integration with ng update runs the migration automatically during package upgrades, and the demo shows the automated fixes applying successfully.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 1:45Understanding ESLint
  3. 5:03Abstract Syntax Trees
  4. 8:00Angular update workflows
  5. 9:31Building custom ESLint rules
  6. 17:11Distributing ESLint plugins
  7. 19:33Integrating into Angular
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.