restrictedAssignment to '{{object}}.{{property}}' is not permitted.small-rules/no-restricted-property-assignmentDisallow assignment to restricted object properties.
restrictedAssignment to '{{object}}.{{property}}' is not permitted.restrictedCustom{{message}}This rule accepts one options object after the severity.
_G.__DEV__ = true;_G.__PROD__ = true;This rule blocks writes to selected properties on selected objects. It reports direct assignments, compound
assignments, and update expressions such as ++ or –. Reading the same property
remains allowed.
Each restriction pairs an object pattern with one or more property patterns. Literal names and glob patterns
can cover families of globals or properties. The object must be a direct identifier such as _G;
a nested expression such as container._G.DEV does not match.
Computed string properties are checked by default. Set checkComputed to false to
exclude code such as _G[“DEV”] = true. Dynamic keys cannot match because their property
name is unknown during linting.
The restrictions array is required. Each restriction can supply a diagnostic
message; otherwise, the rule reports the matched object and property names. Use
allowFiles for filenames or glob patterns that are permitted to perform these writes.