Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History
 
 

eslint-rules

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PostHog JS Custom ESLint rules

This package contains custom ESLint rules for PostHog's JS codebase.

For example, we have a number of functions that check types like _isNull or isBoolean. In most projects these don't help very much but since posthog-js is bundled and included in many different projects, we want to ensure the bundle size is as small as possible. Moving to these functions reduced bundle by 1%, so we use a set of custom linters to ensure we don't accidentally add new code that does not use these helpers.