This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 noRestrictedGlobals
rule doesn't allow to specify restricted globals
#4628
Labels
Environment information
What happened?
rome.json
filestyle/noRestrictedGlobals
rule."noRestrictedGlobals": { "level": "warn", "options": ["window"] }
)Only
event
anderror
global variables from constant are being restricted."options" field is ignored.
Expected result
Global names listed in the "options" field are restricted because documentation says "Disallowing usage of specific global variables can be useful if you want to allow a set of global variables by enabling an environment, but still want to disallow some of those."
Code of Conduct
The text was updated successfully, but these errors were encountered: