no-document-cookie
Added in v0.9.1Configuration
rslint.config.ts
Rule Details
Disallow assigning to document.cookie directly. Constructing cookie strings
by hand is error-prone; prefer the Cookie Store API or a cookie library.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
The rule follows aliases of the global document object and its standard
global-object forms, so these assignments are also reported: